|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2014-04-13 11:35 UTC] tyrael@php.net
-Status: Open
+Status: Wont fix
[2014-04-13 11:35 UTC] tyrael@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 18 01:00:01 2025 UTC |
Description: ------------ Currently when mkdir() finds that the directory already exists it triggers E_WARNING. IMHO this is unnecessarily high severity, as the error is generally harmless. The whole point of this function is to make the directory exist. I suggest lowering the severity to E_NOTICE. Test script: --------------- <?php mkdir("test"); mkdir("test"); Expected result: ---------------- Notice: mkdir(): File exists Actual result: -------------- Warning: mkdir(): File exists