ID: 29274 Updated by: php-bugs@lists.php.net Reported By: ca50015 at yahoo dot com -Status: Feedback +Status: No Feedback Bug Type: Filesystem function related Operating System: windows 98 se PHP Version: 5.0.0 New Comment:
No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". Previous Comments: ------------------------------------------------------------------------ [2005-02-15 00:57:20] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.0-win32-latest.zip ------------------------------------------------------------------------ [2004-07-20 10:59:57] ca50015 at yahoo dot com Description: ------------ mkdir() wont work properly when its parameter is a numeric string Reproduce code: --------------- <?php $path = array('1/0/0001', '1/1/0001'); $cwd = getcwd(); foreach ($path as $p) { $p = explode('/', $p); foreach ($p as $dir_name) { if (! is_dir("./$dir_name")) { mkdir("./$dir_name"); } chdir("./$dir_name"); } chdir($cwd); } ?> Expected result: ---------------- It should create two directory trees under current dir: 1/0/0001 1/1/0001 Actual result: -------------- and the result is: 1/0/0001 (correct) 1/0001 (should be '1/1/0001') ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=29274&edit=1