ID: 32349 Updated by: php-bugs@lists.php.net Reported By: zamorov at edinorog dot ru -Status: Feedback +Status: No Feedback Bug Type: Filesystem function related Operating System: FreeBSD PHP Version: php4-STABLE-200503181130 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-03-20 11:42:05] [EMAIL PROTECTED] On unix "\name\containing\slashes" is a perfectly valid *directory or file* name, so why do we have to force users not to use such names? ------------------------------------------------------------------------ [2005-03-20 11:28:32] zamorov at edinorog dot ru Sample. I'm upload file from windows to unix. $_FILES[etc]['name'] contain path with backslash, but basename understand only forward slash. Use $imageName =& array_pop(split('/', strtr($_FILES['image']['name'], array('\\' => '/')))); rather than $imageName =& basename($_FILES['image']['name']); wise choice? ------------------------------------------------------------------------ [2005-03-18 15:08:24] [EMAIL PROTECTED] Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php Qutiong php.net/basename "On Windows, both slash (/) and backslash (\) are used as directory separator character. In other environments, it is the forward slash (/)." ------------------------------------------------------------------------ [2005-03-18 14:41:29] zamorov at edinorog dot ru That problem remained open. ------------------------------------------------------------------------ [2005-03-17 09:34:06] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/32349 -- Edit this bug report at http://bugs.php.net/?id=32349&edit=1