|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-03-17 19:27 UTC] tony2001@php.net
[2005-03-26 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 05 15:00:01 2025 UTC |
Description: ------------ If, the copy-function is called with copy (dirname(__FILE__) . '/anyname', '/path/to/new/place'); on windows-systems thtis will result in i.e. copy (c:\temp\my_subdir/anyname .... this is not handled correctly, so the file won't be copied. it's not just related to 4.3.10, 4.3.x, 4.2.x, maybe elder versions. for solutions, that should work independet to the OS installed it's necassary to use copy (str_replace("\\", "/", dirname(__FILE__)) . '/anyname', '/path/to/new/place'); instead. it would be nice not to need this. or is there an undocumented parameter for windows to get slash instead of the BS ? same behaviour with move_uploaded_file, move. include works fine without str_replace. Reproduce code: --------------- see description