pajoye          Sun Aug 17 13:07:06 2008 UTC

  Modified files:              
    /php-src/ext/standard/tests/general_functions       bug41518.phpt 
  Log:
  - fix test (portable), use . as basedir and create the tmp dir in the test 
directory
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/general_functions/bug41518.phpt?r1=1.3&r2=1.4&diff_format=u
Index: php-src/ext/standard/tests/general_functions/bug41518.phpt
diff -u php-src/ext/standard/tests/general_functions/bug41518.phpt:1.3 
php-src/ext/standard/tests/general_functions/bug41518.phpt:1.4
--- php-src/ext/standard/tests/general_functions/bug41518.phpt:1.3      Tue May 
27 00:04:31 2008
+++ php-src/ext/standard/tests/general_functions/bug41518.phpt  Sun Aug 17 
13:07:06 2008
@@ -3,13 +3,14 @@
 --SKIPIF--
 <?php
 /* let's use /tmp here */
-$tmp_dir = "/tmp";
-if (!is_dir($tmp_dir) || realpath($tmp_dir) !== $tmp_dir) {
+$tmp_dir = __DIR__ . '/tmp';
+mkdir($tmp_dir);
+if (!is_dir($tmp_dir)) {
        die("skip");
 }
 ?>
 --INI--
-open_basedir=/tmp/
+open_basedir=.
 --FILE--
 <?php
 
@@ -21,7 +22,7 @@
 var_dump(file_exists($tmp_file."nosuchfile")); //doesn't exist
 
 @unlink($tmp_file);
-
[EMAIL PROTECTED]($tmp_dir);
 echo "Done\n";
 ?>
 --EXPECT--



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to