[buddypress-trac] [BuddyPress] #4016: PHP Parse error: syntax error, unexpected T_STRING

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Tue Feb 28 13:06:10 UTC 2012


#4016: PHP Parse error:  syntax error, unexpected T_STRING
------------------------------+--------------------
 Reporter:  j.conti           |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  1.5.5
Component:  Warnings/Notices  |     Version:  1.5.3
 Severity:  minor             |  Resolution:
 Keywords:                    |
------------------------------+--------------------
Changes (by boonebgorges):

 * severity:  normal => minor


Comment:

 Good find. The issue is specific to the syntax of create_function() and
 the way that we're concatenating the content of the function. The good
 news is that it'll only affect instances where plugins are registering
 their own messages in $bp->signup->errors, which is probably very few.

 I'm going to fix this by adding our own addslashes()/stripslashes(), but
 it'll break what you've done in WangGuard - the content will be double-
 slashed. So you'll have to remove your own addslashes(). Hope that's OK!
 Thanks for your help tracking this down.

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4016#comment:6>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list