Skip to content

Commit 503e49f

Browse files
author
Ilia Alshanetsky
committed
Fixed test.
1 parent f29964e commit 503e49f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ext/standard/tests/file/bug22414.phpt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
Bug #22414: passthru() does not read data correctly
33
--SKIPIF--
44
<?php
5-
if (empty(@shell_exec("which cat")) {
6-
dir('skip cat binary needed for this test is not avaliable');
5+
$cat_path = @shell_exec("which cat");
6+
if (empty($cat_path)) {
7+
die('skip cat binary needed for this test is not avaliable');
78
}
89
?>
910
--POST--

0 commit comments

Comments
 (0)