[wp-trac] [WordPress Trac] #13437: Segfault in function admin_url when not using casting (string)

WordPress Trac wp-trac at lists.automattic.com
Wed May 19 00:15:10 UTC 2010


#13437: Segfault in function admin_url when not using casting (string)
--------------------------+-------------------------------------------------
 Reporter:  dz0ny         |        Owner:          
     Type:  defect (bug)  |       Status:  reopened
 Priority:  normal        |    Milestone:          
Component:  Multisite     |      Version:  3.0     
 Severity:  normal        |   Resolution:          
 Keywords:  has-patch     |  
--------------------------+-------------------------------------------------

Comment(by dz0ny):

 @hakre, no patch doesn't work, I've even tried,

 {{{
 function get_admin_url( $blog_id = null, $path = '', $scheme = 'admin' ) {
         return "";
 }
 }}}

 and it would still chrash the php process.

 @nacin backlog before crash http://pastebin.org/250792
 vardump of get_admin_url

 {{{
 string(61) "http://www.prirocnikporoka.si/wp-admin/css/colors-classic.css"
 string(59) "http://www.prirocnikporoka.si/wp-admin/css/colors-fresh.css"
 }}}

 I can't give you the backlog after chrash, becouse even loading the page
 without casting chrashes the php process.

 I think the problem lies somewhere in PHP stack, as php developer puts it

 {{{
 Analysis:
 When convert_to_string in function() is called to convert object to
 string,
 function::__toString is called and on the course of the execution the
 variable stack is reallocated. However haystack variable still points to
 the
 old stack location, which means any access to it will produce the UMR.
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/13437#comment:10>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list