[wp-trac] [WordPress Trac] #60855: wp_mkdir_p can error when simultaneous requests attempt to create the same directory

WordPress Trac noreply at wordpress.org
Mon May 20 14:30:20 UTC 2024


#60855: wp_mkdir_p can error when simultaneous requests attempt to create the same
directory
--------------------------+------------------------------
 Reporter:  grantmkin     |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by siliconforks):

 If the problem is that the recursive version of `mkdir()` (with third
 argument `true`) is buggy, an alternative is to simply avoid using
 recursive `mkdir()` and implement the recursion in PHP code.

 (I'm not sure if this is actually worth doing, though, given that the PHP
 bug is said to be fixed in version 8.1, and older versions of PHP will
 probably not be supported by WordPress for very much longer.)

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/60855#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list