[PEAR-BUG] Bug #16978 [Opn->Csd]: Non-ASCII variables should be allowed in templetes.
[email protected] Fri, 21 Nov 2014 05:31:04 +0000 (GMT)
| Newsgroups | php.pear.bugs |
|---|---|
| Message-ID | <[email protected]> |
Edit report at https://pear.php.net/bugs/bug.php?id=16978&edit=1 ID: 16978 Updated by: [email protected] Reported By: kikuchan at uranus dot dti dot ne dot jp Summary: Non-ASCII variables should be allowed in templetes. -Status: Open +Status: Closed Type: Bug Package: HTML_Template_Flexy Package Version: Unknown PHP Version: Irrelevant -Assigned To: +Assigned To: alan_k Roadmap Versions: New Comment: -Status: Open +Status: Closed -Assigned To: +Assigned To: alan_k Thank you for your bug report. This issue has been fixed in the latest released version of the package, which you can download at http://pear.php.net/get/ Previous Comments: ------------------------------------------------------------------------ [2010-01-11 14:51:38] kikuchan Yeah, it works! Thanks alot, Alan. Regards kikuchan ------------------------------------------------------------------------ [2010-01-11 06:49:28] alan_k Ok - built with mono rather than dotgnu can you check that it works ok. http://svn.php.net/repository/pear/packages/HTML_Template_Flexy/trunk/Flexy/To kenizer.php Regards Alan ------------------------------------------------------------------------ [2010-01-08 16:01:03] kikuchan Here is a simple test script. # according to the script, rev293237 is totally broken... # because it returns 'Text' for {a}... it should be 'Var'. <?php //require_once 'Tokenizer_r186368.php'; //require_once 'Tokenizer_r293237.php'; require_once 'Tokenizer_proposal.php'; function token($token, $value, $line, $charPos) { //printf("%s : %s\n", $token, $value); printf("%s\n", $token); } $data = "{a}{b}{\200}{d}"; $tokenizer = HTML_Template_Flexy_Tokenizer::construct($data, array( 'token_factory' => 'token', )); while ($tokenizer->yylex() !== false) ; ------------------------------------------------------------------------ [2010-01-08 15:05:45] kikuchan Added #patch bug:16978;patch:Tokenizer.php.gz.uu;revision:1262963145;. ------------------------------------------------------------------------ [2010-01-08 15:02:06] kikuchan Your Tokenizer.php didn't work for me either. But, I regenerate Tokenizer.php from your latest Tokenizer.lex, it works fine for me. This is what I actually did. % cvs -z3 -d:pserver:[email protected]:/cvsroot/php-sharp co -P phpLex % cd phpLex % sh build % wget http://svn.php.net/repository/pear/packages/HTML_Template_Flexy/trunk/Flexy/Tokenizer.lex % mono ./phpLex.exe Tokenizer.lex I think the latest version of phpLex can handle non-ascii characters. I will attach the regenerated Tokenizer.php to make sure. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://pear.php.net/bugs/bug.php?id=16978 -- Edit this bug report at https://pear.php.net/bugs/bug.php?id=16978&edit=1