]> granicus.if.org Git - php/commitdiff
fix test: no crap left behind
authorJani Taskinen <jani@php.net>
Mon, 25 Aug 2008 13:40:33 +0000 (13:40 +0000)
committerJani Taskinen <jani@php.net>
Mon, 25 Aug 2008 13:40:33 +0000 (13:40 +0000)
ext/standard/tests/general_functions/bug41518.phpt

index 097ba029174b796bbba595b276d38203695c629b..4a3858b4eaa054b58a651cecbff82b6aae72b4de 100644 (file)
@@ -2,8 +2,7 @@
 Bug #41518 (file_exists() warns of open_basedir restriction on non-existent file)
 --SKIPIF--
 <?php
-/* let's use /tmp here */
-$tmp_dir = __DIR__ . '/tmp';
+$tmp_dir = __DIR__ . '/bug41518';
 mkdir($tmp_dir);
 if (!is_dir($tmp_dir)) {
        die("skip");
@@ -14,7 +13,7 @@ open_basedir=.
 --FILE--
 <?php
 
-$tmp_dir = "/tmp";
+$tmp_dir = __DIR__ . "/bug41518/";
 $tmp_file = $tmp_dir."/bug41418.tmp";
 
 touch($tmp_file);