go to bug id or search bugs for
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.
Notice: mkdir(): File exists
Warning: mkdir(): File exists
Add a Patch
Add a Pull Request
mkdir failing can be a serious issue when you pass a specific $mode and if the directory already exists, the mode won't be changed for that.
putting all this aside, this is how it work since the beginning, so I don't really see it worthwile to change it without any significant gain.
if you are not interested in the success of the mkdir call, or why exactly it failed, you can call it with the error supression(@) operator.
if you still think that you want to push this change, please write an rfc and start a discussion on the mailing list to gauge what others think about this idea.