[buddypress-trac] [BuddyPress Trac] #7925: Nouveau: $this inside a closure doesn't work in PHP 5.3

buddypress-trac noreply at wordpress.org
Mon Jul 16 20:14:04 UTC 2018


#7925: Nouveau: $this inside a closure doesn't work in PHP 5.3
--------------------------+---------------------
 Reporter:  boonebgorges  |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  high          |   Milestone:  3.2.0
Component:  Templates     |     Version:  3.0.0
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+---------------------
Changes (by r-a-y):

 * keywords:   => has-patch


Comment:

 Gah, you can blame me for this.

 Attached patch replaces `$this` with the `bp_nouveau()` singleton
 function, which should address this issue.  I don't have a PHP 5.3 rig to
 test this on at the moment, but it works in PHP 7.2.

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7925#comment:1>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list