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

Bug #84 Lexing of method arguments off-by-one
Submitted: 2003-10-10 01:49 UTC
From: jwadsack at wadsack-allen dot com Assigned: alan_k
Status: Closed Package: HTML_Template_Flexy
PHP Version: 4.3.1 OS: Linux
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


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 : 5 + 46 = ?

 
 [2003-10-10 01:49 UTC] jwadsack at wadsack-allen dot com
Description: ------------ HTML/Template/Flexy/Tokenizer.php: 2402c2402 < $t = substr($this->yytext(),0,-1); --- > $t = $this->yytext(); The effect of this bug is that any single-character argument sent to a method call is deleted, resulting in the element parser sending the object instead of the variable. Reproduce code: --------------- {foreach:list,i}{method(i)}{end:} Expected result: ---------------- <?php foreach( $t->list as $i ) { $t->method($i) } ?> Actual result: -------------- <?php foreach( $t->list as $i ) { $t->method($t) } ?> (Note $t not $i as the argument)

Comments

 [2003-10-10 03:09 UTC] alan_k
Can you check that the lastest CVS version has the same problem (looks like it probably does). - Will try and look at this later today. Thanks Alan
 [2003-10-10 09:04 UTC] alan_k
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better.