]> granicus.if.org Git - php/commitdiff
MFH
authorJani Taskinen <jani@php.net>
Mon, 28 Apr 2008 12:30:33 +0000 (12:30 +0000)
committerJani Taskinen <jani@php.net>
Mon, 28 Apr 2008 12:30:33 +0000 (12:30 +0000)
ext/standard/tests/file/bug22414.phpt

index b60b865e742497805532d3827e552f48afa541d0..f5036daa8c32f5479d5636b2bea39357e3fbe5c9 100644 (file)
@@ -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);