ID: 41985 Updated by: [EMAIL PROTECTED] Reported By: marc dot bau at gmx dot net -Status: Open +Status: Bogus Bug Type: Filesystem function related Operating System: Windows PHP Version: 5.2.3 New Comment:
http://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.double Previous Comments: ------------------------------------------------------------------------ [2007-07-13 06:12:45] marc dot bau at gmx dot net What are you talking about? Writing write code once, run everywhere? This is currently not possible and therefor this is for sure a bug. Rename is not working the same way on all OS'es and this is why i filed this bug. I don't like to workaround in a shit way like described in http://us.php.net/manual/en/function.rename.php#56576. This one produces a PHP error that is logged in my CMS. So let's fix this to make PHP work in the same way on all OS without dirty hacks. You may fix this in the way of #56576 PHP *internally*, but don't make me to hack around outside and create crappy code around. ------------------------------------------------------------------------ [2007-07-12 22:50:59] [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 \\t has a special meaning in strings with double quotes. ------------------------------------------------------------------------ [2007-07-12 22:26:51] marc dot bau at gmx dot net Description: ------------ The "rename" in PHP doesn't work as expected on Windows. Reproduce code: --------------- <?php rename("C:\temp\tmp_file.txt.new", "C:\temp\tmp_file.txt"); ?> Expected result: ---------------- successful rename completed. Actual result: -------------- 1. rename isn't working 2. C:\temp\tmp_file.txt is not replaced with C:\temp\tmp_file.txt.new 3. C:\temp\tmp_file.txt.new not moved to C:\temp\tmp_file.txt ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=41985&edit=1