From:             yournana at gmail dot com
Operating system: windows/unix
PHP version:      5.2.6
PHP Bug Type:     Recode related
Bug description:  some big5 Chinese character lead to Parse error

Description:
------------
when I writting php script in big5 encoding , I find a strange thing , I
simply type 

<?php
echo "&#27743;&#38748;&#20446;" ;
?>

in big5 encoding,it show me a 

Parse error: syntax error, unexpected $end in D:\lab\bug\test.php on line
3

than I change encoding to utf-8, it works fine, the key cahracter is
'&#20446;',also the same as some other special characters, it's a bug ?


Reproduce code:
---------------
<?php
echo "&#27743;&#38748;&#20446;" ;
?>

[big5 encoding]

Expected result:
----------------
just show the [&#27743;&#38748;&#20446;]

Actual result:
--------------
syntax error, unexpected $end in D:\lab\bug\test.php on line 3

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

Reply via email to