tony2001                Thu Oct 19 12:07:07 2006 UTC

  Added files:                 (Branch: PHP_5_2)
    /php-src/ext/standard/tests/file    mkdir-006.phpt 
  Log:
  add new test by Pierre
  
  

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/mkdir-006.phpt?view=markup&rev=1.1
Index: php-src/ext/standard/tests/file/mkdir-006.phpt
+++ php-src/ext/standard/tests/file/mkdir-006.phpt
--TEST--
recursive mkdir() with unclean paths
--SKIPIF--
<?php
if (substr(PHP_OS, 0, 3) != 'WIN') {
    die('skip only for Windows');
}
?>
--FILE--
<?php
chdir(dirname(__FILE__));
$dirpath = "./tmp/foo//bar/logs";
mkdir($dirpath, 0777, true);

if (is_dir($dirpath)) {
    echo "Ok.\n";
} else {
    echo "Failed.\n";
}
rmdir("./tmp/foo/bar/logs");
rmdir("./tmp/foo/bar/");
rmdir("./tmp/foo/");
rmdir("./tmp/");
?>
--EXPECT--
Ok.

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

Reply via email to