Bug #64149 [Opn->Fbk]: Multi-byte char contains 0x5C as second byte causes syntax error
| From: | rasmus@php.net | Date: | Tue, 05 Feb 2013 04:00:09 +0000 |
| Subject: | Bug #64149 [Opn->Fbk]: Multi-byte char contains 0x5C as second byte causes syntax error | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-176444@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=64149&edit=1
ID: 64149
Updated by: rasmus@php.net
Reported by: mukarami dot kazuo at jp dot fujitsu dot com
Summary: Multi-byte char contains 0x5C as second byte causes
syntax error
-Status: Open
+Status: Feedback
Type: Bug
Package: mbstring related
Operating System: windows7 professional 32bit
PHP Version: 5.4.11
Block user comment: N
Private report: N
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2013-02-05 03:34:30] 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
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=64149&edit=1