php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45482 some big5 Chinese character lead to Parse error
Submitted: 2008-07-11 10:08 UTC Modified: 2008-07-19 01:00 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: yournana at gmail dot com Assigned:
Status: No Feedback Package: mbstring related
PHP Version: 5.2.6 OS: windows/unix
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: yournana at gmail dot com
New email:
PHP Version: OS:

 

 [2008-07-11 10:08 UTC] yournana at gmail dot com
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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-07-11 10:18 UTC] yournana at gmail dot com
you must change the "&#27743;&#38748;&#20446;" back to real characters...
 [2008-07-11 13:55 UTC] jani@php.net
Did you enable multibyte support in your build? 
In *nix you need to use --enable-zend-multibyte in your configure line.
I don't know what the option is in win32 configure though. :)
 [2008-07-19 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jan 15 15:01:31 2025 UTC