[wp-trac] [WordPress Trac] #42265: get_filesystem_method() isn't unique enough

WordPress Trac noreply at wordpress.org
Wed Oct 18 23:00:53 UTC 2017


#42265: get_filesystem_method() isn't unique enough
----------------------------+------------------------------------------
 Reporter:  bikecrazyy      |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Filesystem API  |     Version:  2.5
 Severity:  normal          |  Resolution:
 Keywords:                  |     Focuses:  administration, performance
----------------------------+------------------------------------------

Comment (by bikecrazyy):

 Replying to [comment:1 pross]:
 > Why not use `microtime()` instead of `time()`

 There are many ways of fixing it for sure, I choose to just add some bytes
 to the end but you might be able to do microtime, I haven't tested to see
 if it will have a collision in the name but I did test uniqid()

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


More information about the wp-trac mailing list