#33273 [NEW]: Use of certain kanji characters make PHP crash
| From: | lars dot jensen at careercross dot com | Date: | Wed, 08 Jun 2005 08:47:10 +0000 |
| Subject: | #33273 [NEW]: Use of certain kanji characters make PHP crash | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-80035@lists.php.net to get a copy of this message | ||
From: lars dot jensen at careercross dot com
Operating system: FreeBSD 5.3
PHP version: 5.0.3
PHP Bug Type: Arrays related
Bug description: Use of certain kanji characters make PHP crash
Description:
------------
Certain Kanji direct in source seems to be a problem - wanted to use a
small array for some simple language changes between english / japanese,
but with these given kanji's it fail.
Viewing the Kanji's as ascii, they both hold " in it, but closing the
array strings using ', it shouldnt affect the strings.
Example provided at http://www.ebenkyo.com/bug.php
/ Lars
Reproduce code:
---------------
As the code holds kanji characters, use this page to see the source.
Please ensure to see the page using shift_jis encoding
http://www.ebenkyo.com/bug_source.php
Expected result:
----------------
The array not to fail with given Kanji's. Most Kanji sequences seem to
work.
Actual result:
--------------
Parse error: parse error, unexpected T_STRING, expecting ')' in
/usr/local/www/www.ebenkyo.com/bug.php on line 4
or similar
--
Edit bug report at http://bugs.php.net/?id=33273&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33273&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33273&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33273&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=33273&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=33273&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=33273&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=33273&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=33273&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=33273&r=support
Expected behavior: http://bugs.php.net/fix.php?id=33273&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=33273&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=33273&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=33273&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33273&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=33273&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=33273&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=33273&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=33273&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=33273&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=33273&r=mysqlcfg