From:             [EMAIL PROTECTED]
Operating system: Windows Vista
PHP version:      6CVS-2008-06-12 (CVS)
PHP Bug Type:     Unicode Engine related
Bug description:  Shfift_JIS encoded characters in PHP script cause an error. 

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 &#1090;&#1077;&#1089;&#1090;() {
  echo "&#1090;&#1077;&#1089;&#1090; - ok\n";
}

&#1090;&#1077;&#1089;&#1090;();
?>


Expected result:
----------------
&#1090;&#1077;&#1089;&#1090; - 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


-- 
Edit bug report at http://bugs.php.net/?id=45248&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=45248&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=45248&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=45248&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=45248&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=45248&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=45248&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=45248&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=45248&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=45248&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=45248&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=45248&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=45248&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=45248&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=45248&r=php4
Daylight Savings:             http://bugs.php.net/fix.php?id=45248&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=45248&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=45248&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=45248&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=45248&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=45248&r=mysqlcfg

Reply via email to