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  


 [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] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2003-10-10 09:04 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!