]> granicus.if.org Git - php/commitdiff
Do not hardcode php path.
authorIlia Alshanetsky <iliaa@php.net>
Sat, 19 Apr 2003 18:10:54 +0000 (18:10 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Sat, 19 Apr 2003 18:10:54 +0000 (18:10 +0000)
ext/standard/tests/file/bug22414.phpt

index 6902b643b15de84e129a14d1a1361d805819db97..a1462958d6cf6120019d29167a477864a37c936e 100644 (file)
@@ -21,7 +21,7 @@ Bug #22414: passthru() does not read data correctly
        /* Binary Data Test */
        @unlink($pwd . '/passthru_test');
        
-       $cmd = "sapi/cli/php -r \\\" readfile(@getenv(TEST_PHP_EXECUTABLE)); \\\"";
+       $cmd = $php . " -r \\\" readfile(@getenv(TEST_PHP_EXECUTABLE)); \\\"";
        $cmd = $php . ' -r \' passthru("'.$cmd.'"); \' > ' . $pwd . '/passthru_test';
        exec($cmd);