php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #42074 Compile fails with a certain Kanji and document in Shift JIS
Submitted: 2007-07-23 05:49 UTC Modified: 2007-07-23 09:14 UTC
From: cs at tequila dot co dot jp Assigned:
Status: Wont fix Package: *Languages/Translation
PHP Version: 5.2.3 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: cs at tequila dot co dot jp
New email:
PHP Version: OS:

 

 [2007-07-23 05:49 UTC] cs at tequila dot co dot jp
Description:
------------
If the document itself is saved in Shift_JIS and the kanji for talent (nou) 能 is used at the end of a string then you get all kind of compile errors. But if you put any character after this kanji, then the compile succeeds.

Reproduce code:
---------------
<?
	header("Content-type: text/html; charset=ShiftJIS");
	$var = '&#33021;';

	echo $var.'<br>';
?>

Actual result:
--------------
Parse error: syntax error, unexpected '>' in kanji_test_1.php on line 5

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-07-23 09:14 UTC] jani@php.net
This will be fixed for PHP 6. (and maybe it works if you build PHP using --enable-zend-multibyte)
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Tue Oct 20 07:01:23 2020 UTC