[wp-trac] [WordPress Trac] #35058: PHP Fatal when map_deep tries to work on an object that has a property by reference

WordPress Trac noreply at wordpress.org
Sun Dec 13 20:47:39 UTC 2015


#35058: PHP Fatal when map_deep tries to work on an object that has a property by
reference
--------------------------+------------------------------
 Reporter:  jeff@…        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Formatting    |     Version:  4.4
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by jeff@…):

 Changing


 {{{
 foreach ( $value as &$item ) {
 }}}


 to


 {{{
 foreach ( $value as $item ) {
 }}}


 Avoids the fatal error. But I am not sure I grasp the original intent of
 changing the $item to by reference.

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


More information about the wp-trac mailing list