diff options
| -rw-r--r-- | ext/standard/tests/file/bug22414.phpt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/standard/tests/file/bug22414.phpt b/ext/standard/tests/file/bug22414.phpt index c67ae2ed66..809ce50014 100644 --- a/ext/standard/tests/file/bug22414.phpt +++ b/ext/standard/tests/file/bug22414.phpt @@ -2,8 +2,9 @@ Bug #22414: passthru() does not read data correctly --SKIPIF-- <?php - if (empty(@shell_exec("which cat")) { - dir('skip cat binary needed for this test is not avaliable'); + $cat_path = @shell_exec("which cat"); + if (empty($cat_path)) { + die('skip cat binary needed for this test is not avaliable'); } ?> --POST-- |
