diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2003-02-25 16:27:51 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2003-02-25 16:27:51 +0000 |
commit | 503e49feae11ae3ae305636d3371c8ae13f53d82 (patch) | |
tree | 9e117f7f234adab8adaf826076d4cc0ffeea520c | |
parent | f29964e2bac13b1f01337725fddff4282102019b (diff) | |
download | php-git-503e49feae11ae3ae305636d3371c8ae13f53d82.tar.gz |
Fixed test.
-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-- |