|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2004-08-23 14:41 UTC] arnoud at procurios dot nl
Description:
------------
The 'mkdir' function doesn't function correctly on Windows when the path contains forward slashes. The part of the path with the forward slashes doesn't get created.
Reproduce code:
---------------
<?
mkdir('c:\a\b\c\d', 0775, true);
mkdir('c:\e\f\g/h', 0775, true);
?>
Expected result:
----------------
Two directories should have been created:
c:\a\b\c\d, and
c:\e\f\g\h
Actual result:
--------------
Actual directories being created:
c:\a\b\c\d, and
C:\e\f
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 21:00:01 2025 UTC |
As far as I can see, PHP has nothing to do with it, as PHP just calls mkdir(supplied path). And PHP doesn't use DIRECTORY_SEPARATOR with mkdir(), but your system's mkdir() is failing to create directory "g/h". On the other side "g\h" is valid name for directory on Linux and mkdir("g\h") successfully creates it. Marking this report as bogus.