Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 3.7.2

Request #17095 Token for variable variables
Submitted: 2010-02-13 09:41 UTC
From: youngian Assigned: squiz
Status: Closed Package: PHP_CodeSniffer (version 1.2.2)
PHP Version: Irrelevant OS:
Roadmaps: (Not assigned)    
Subscription  


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 49 - 36 = ?

 
 [2010-02-13 09:41 UTC] youngian (Ian Young)
Description: ------------ The tokenizer gets confused by variable variables. Attached is a patch that recognizes the first '$' as a T_DOLLAR token (the rest of the variable is parsed as a T_VARIABLE, as usual).

Comments

 [2010-02-13 09:42 UTC] youngian (Ian Young)
 [2010-02-18 05:28 UTC] squiz (Greg Sherwood)
-Status: Open +Status: Closed -Assigned To: +Assigned To: squiz
Patch applied in SVN. Thanks for submitting.