From: Ilia Alshanetsky Date: Sat, 19 Apr 2003 18:10:54 +0000 (+0000) Subject: Do not hardcode php path. X-Git-Tag: SPL_ALPHA~149 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6bc4ce43d0fe4878fd38a661100fac81178dc476;p=php Do not hardcode php path. --- diff --git a/ext/standard/tests/file/bug22414.phpt b/ext/standard/tests/file/bug22414.phpt index 6902b643b1..a1462958d6 100644 --- a/ext/standard/tests/file/bug22414.phpt +++ b/ext/standard/tests/file/bug22414.phpt @@ -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);