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

WordPress Trac noreply at wordpress.org
Tue Apr 28 04:42:10 UTC 2015


#32135: wp_tempnam() recursive broken code
-----------------------------+--------------------
 Reporter:  cloudware        |       Owner:
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  4.2.2
Component:  Upgrade/Install  |     Version:  4.2
 Severity:  major            |  Resolution:
 Keywords:                   |     Focuses:
-----------------------------+--------------------
Changes (by SergeyBiryukov):

 * component:  General => Upgrade/Install
 * milestone:  Awaiting Review => 4.2.2


Old description:

> 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.

New description:

 ref. https://wordpress.org/support/topic/unable-to-update-plugins-after-
 upgrade-to-42?replies=11#post-6871167

 see [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#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list