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
Have you experienced this issue?
Rate the importance of this bug to you:

 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2019 The PHP Group
All rights reserved.
Last updated: Mon Aug 19 12:01:26 2019 UTC