|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-08-12 16:44 UTC] jani@php.net
[2008-08-20 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 08:00:01 2025 UTC |
Description: ------------ Shift_JIS encoded characters in PHP script cause an error. A tiny script causes the problem. It is based on php6/tests/unicode/enc-SJIS.phpt. For UTF-8 or EUC-JP encoded script, it works fine. Reproduce code: --------------- enc-SJIS.php <?php ini_set("unicode.script_encoding", "SJIS"); include("enc-SJIS.inc"); ?> enc-SJIS.inc <?php function тест() { echo "тест - ok\n"; } тест(); ?> Expected result: ---------------- тест - ok Actual result: -------------- Warning: Illegal or truncated character in input: offset 0, state=0 in C:\php6\enc-SJIS.inc on line 2 Parse error: syntax error, unexpected $end, expecting T_STRING in C:\php6\enc-SJIS.inc on line 2