]> granicus.if.org Git - php/commitdiff
- fix test init
authorPierre Joye <pajoye@php.net>
Sat, 30 Jan 2010 21:12:20 +0000 (21:12 +0000)
committerPierre Joye <pajoye@php.net>
Sat, 30 Jan 2010 21:12:20 +0000 (21:12 +0000)
ext/standard/tests/file/windows_links/bug48746.phpt

index fd365113dc61448bfbc14f1101f4b5294f2caf55..6c88c6319c3ffd10ccc84403f7fe8209d44311aa 100644 (file)
@@ -19,7 +19,7 @@ if (count($output) == 0) {
 <?php\r
 $old_dir = __DIR__;\r
 $dirname = __DIR__ . "\\mnt\\test\\directory";\r
-exec("mkdir " . $dirname, $output, $ret_val);\r
+mkdir($dirname, 0700, true);\r
 chdir(__DIR__ . "\\mnt\\test");\r
 $drive = substr(__DIR__, 0, 2);\r
 $pathwithoutdrive = substr(__DIR__, 2);\r
@@ -36,6 +36,7 @@ var_dump(is_dir("$fullpath"));
 var_dump(is_readable("mklink_junction"));\r
 var_dump(is_writeable("$fullpath"));\r
 chdir($old_dir);\r
+\r
 rmdir(__DIR__ . "\\mnt\\test\\directory");\r
 rmdir(__DIR__ . "\\mnt\\test\\mklink_junction");\r
 rmdir(__DIR__ . "\\mnt\\test\\mounted_volume");\r
@@ -51,4 +52,4 @@ bool(true)
 bool(true)\r
 bool(true)\r
 bool(true)\r
-bool(true)
+bool(true)\r