From: cs at tequila dot co dot jp Operating system: Linux PHP version: 5.2.3 PHP Bug Type: *Languages/Translation Bug description: Compile fails with a certain Kanji and document in Shift JIS
Description: ------------ If the document itself is saved in Shift_JIS and the kanji for talent (nou) 能 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 = '能'; echo $var.'<br>'; ?> Actual result: -------------- Parse error: syntax error, unexpected '>' in kanji_test_1.php on line 5 -- Edit bug report at http://bugs.php.net/?id=42074&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42074&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42074&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42074&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=42074&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=42074&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=42074&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=42074&r=needscript Try newer version: http://bugs.php.net/fix.php?id=42074&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=42074&r=support Expected behavior: http://bugs.php.net/fix.php?id=42074&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=42074&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=42074&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=42074&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42074&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=42074&r=dst IIS Stability: http://bugs.php.net/fix.php?id=42074&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=42074&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=42074&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=42074&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=42074&r=mysqlcfg