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

Bug #4699 Needs to mention backslash-output behaviour
Submitted: 2005-06-29 06:44 UTC
From: sr at baghus dot net Assigned: pajoye
Status: Bogus Package: HTML_Template_IT
PHP Version: 4.3.11 OS: Linux
Roadmaps: (Not assigned)    
Subscription  
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes. If this is not your bug, you can add a comment by following this link. If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
2006-02-17 11:52 UTC
Package:
Bug Type:
Summary:
From: sr at baghus dot net
New email:
PHP Version: Package Version: OS:

 

 [2005-06-29 06:44 UTC] sr at baghus dot net
Description: ------------ The template system needs "\\\$" to print out "\$" instead of "\\$" as needed by phps echo. Furthermore, this is only the case with $. Other backslashified characters will output just fine: "\." outputs as "\.", no need for double or tripple backslashes. This bit me while making and editor for regular expressions... \$ in the ruleset was always transformed to $ and the perl code evaluating the regexps died. This happens with HTML-Template-IT version 1.10. Reproduce code: --------------- $template->setVariable( 'test1', "\$" ); $template->setVariable( 'test2', "\\$" ); $template->setVariable( 'test3', "\\\$" ); $template->setVariable( 'test4', "\." ); Expected result: ---------------- test1 -> $ test2 -> \$ test3 -> \\$ test4 -> . Actual result: -------------- test1 -> $ test2 -> $ test3 -> \$ test4 -> \.

Comments

 [2006-02-17 11:52 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!