]> granicus.if.org Git - php/commitdiff
- make it portable
authorPierre Joye <pajoye@php.net>
Thu, 21 Aug 2008 09:43:38 +0000 (09:43 +0000)
committerPierre Joye <pajoye@php.net>
Thu, 21 Aug 2008 09:43:38 +0000 (09:43 +0000)
ext/standard/tests/file/bug22414.phpt

index a120fa54b56d0bc34007802e744967617b9d2603..27cd4a6aa9682c9054151d8a4bdee0a728b0cb57 100644 (file)
@@ -4,10 +4,9 @@ Bug #22414 (passthru() does not read data correctly)
 output_handler=
 --FILE--
 <?php
-
        $php = getenv('TEST_PHP_EXECUTABLE');
-       $tmpfile = tempnam('/tmp', 'phpt');
-       
+       $tmpfile = tempnam(__DIR__, 'phpt');
+
        /* Regular Data Test */
        passthru($php . ' -n -r " echo \"HELLO\"; "');