php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #64149 Multi-byte char contains 0x5C as second byte causes syntax error
Submitted: 2013-02-05 03:34 UTC Modified: 2013-02-18 00:36 UTC
From: mukarami dot kazuo at jp dot fujitsu dot com Assigned:
Status: No Feedback Package: mbstring related
PHP Version: 5.4.11 OS: windows7 professional 32bit
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: mukarami dot kazuo at jp dot fujitsu dot com
New email:
PHP Version: OS:

 

 [2013-02-05 03:34 UTC] mukarami dot kazuo at jp dot fujitsu dot com
Description:
------------
Multi-byte character contains 0x5C as second byte causes syntax error at
Literal constant value.
Japanese Shift-Jis Code 42 Characters contain 0x5C as second byte.
for example Jananese-character 0x95,0x5C means  word "table".

print("X"); causes syntax error. (X is 0x95,0x5c)

however
 print(trim("X ")); not causes syntax error.
 


Test script:
---------------
can not write literal constant value in Japanaese character 
to this farme.

print("X");

X is multi-byte character contains  0x95 and 0x5C 


Patches

php5.4.11buildjan62013 (last revision 2013-02-05 03:38 UTC by mukarami dot kazuo at jp dot fujitsu dot com)

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-02-05 04:00 UTC] rasmus@php.net
-Status: Open +Status: Feedback
 [2013-02-05 04:00 UTC] rasmus@php.net
0x5C is a low-ascii \ which is likely the source of this problem.
In your php.ini file try adding:

zend.script_encoding= "Shift-JIS"

And let us know if that fixes your problem.
 [2013-02-18 00:36 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 28 00:01:28 2024 UTC