]> granicus.if.org Git - php/commitdiff
Fixed test.
authorIlia Alshanetsky <iliaa@php.net>
Tue, 25 Feb 2003 16:27:51 +0000 (16:27 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Tue, 25 Feb 2003 16:27:51 +0000 (16:27 +0000)
ext/standard/tests/file/bug22414.phpt

index c67ae2ed66e65150f354bf04cb0d42705d22a9b5..809ce50014d9250d0179aba19f0a377fd62d6249 100644 (file)
@@ -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--