#42074 [Opn->WFx]: Compile fails with a certain Kanji and document in Shift JIS

From: Date: Mon, 23 Jul 2007 09:14:30 +0000
Subject: #42074 [Opn->WFx]: Compile fails with a certain Kanji and document in Shift JIS
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969377104@lists.php.net to get a copy of this message
ID: 42074 Updated by: jani@php.net Reported By: cs at tequila dot co dot jp -Status: Open +Status: Wont fix Bug Type: *Languages/Translation Operating System: Linux PHP Version: 5.2.3 New Comment: This will be fixed for PHP 6. (and maybe it works if you build PHP using --enable-zend-multibyte) Previous Comments: ------------------------------------------------------------------------ [2007-07-23 05:49:50] cs at tequila dot co dot jp Description: ------------ If the document itself is saved in Shift_JIS and the kanji for talent (nou) &#33021; is used at the end of a string then you get all kind of compile errors. But if you put any character after this kanji, then the compile succeeds. Reproduce code: --------------- <? header("Content-type: text/html; charset=ShiftJIS"); $var = '&#33021;'; echo $var.'<br>'; ?> Actual result: -------------- Parse error: syntax error, unexpected '>' in kanji_test_1.php on line 5 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=42074&edit=1

« previous php.doc (#969377104) next »