diff options
| author | Jani Taskinen <jani@php.net> | 2008-04-28 12:30:33 +0000 |
|---|---|---|
| committer | Jani Taskinen <jani@php.net> | 2008-04-28 12:30:33 +0000 |
| commit | f2c9167ebb836c0957cf6e170773ab1b1350bcfb (patch) | |
| tree | 1024f7c87d88e37310ef29a07927a3d756cd4c3c /ext | |
| parent | 0ccb772f100ef356814b418a8b809a5c42d600ed (diff) | |
| download | php-git-f2c9167ebb836c0957cf6e170773ab1b1350bcfb.tar.gz | |
MFH
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/standard/tests/file/bug22414.phpt | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/ext/standard/tests/file/bug22414.phpt b/ext/standard/tests/file/bug22414.phpt index b60b865e74..f5036daa8c 100644 --- a/ext/standard/tests/file/bug22414.phpt +++ b/ext/standard/tests/file/bug22414.phpt @@ -8,20 +8,21 @@ output_handler= $php = getenv('TEST_PHP_EXECUTABLE'); $tmpfile = tempnam('/tmp', 'phpt'); + $args = ' -n -dsafe_mode=off '; /* Regular Data Test */ - passthru($php . ' -n -r " echo \"HELLO\"; "'); + passthru($php . $args . ' -r " echo \"HELLO\"; "'); echo "\n"; /* Binary Data Test */ if (substr(PHP_OS, 0, 3) != 'WIN') { - $cmd = $php . ' -n -r \"readfile(@getenv(\'TEST_PHP_EXECUTABLE\')); \"'; - $cmd = $php . ' -n -r \' passthru("'.$cmd.'"); \' > '.$tmpfile ; + $cmd = $php . $args . ' -r \"readfile(@getenv(\'TEST_PHP_EXECUTABLE\')); \"'; + $cmd = $php . $args . ' -r \' passthru("'.$cmd.'"); \' > '.$tmpfile ; } else { - $cmd = $php . ' -n -r \"readfile(@getenv(\\\\\\"TEST_PHP_EXECUTABLE\\\\\\")); \"'; - $cmd = $php . ' -n -r " passthru(\''.$cmd.'\');" > '.$tmpfile ; + $cmd = $php . $args . ' -r \"readfile(@getenv(\\\\\\"TEST_PHP_EXECUTABLE\\\\\\")); \"'; + $cmd = $php . $args . ' -r " passthru(\''.$cmd.'\');" > '.$tmpfile ; } exec($cmd); |
