[wp-trac] [WordPress Trac] #32135: wp_tempnam() recursive broken code

WordPress Trac noreply at wordpress.org
Sat Apr 25 20:39:31 UTC 2015


#32135: wp_tempnam() recursive broken code
--------------------------+-----------------------------
 Reporter:  cloudware     |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  4.2
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 ref. https://wordpress.org/support/topic/unable-to-update-plugins-after-
 upgrade-to-42?replies=11#post-6871167

 see https://core.trac.wordpress.org/changeset/31936

 "If the folder is falsey, use it's (sic) parent directory name instead"

 this self-calling function is broken when wordpress requires maintenance
 mode to be set... calling wp_tempnam("/.maintenance",""); recurses until
 PHP fatally runs out of memory.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32135>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list