#41179 [Opn->Fbk]: Crash when script_encoding is set to Shift_JIS of SJIS-win
| From: | tony2001@php.net | Date: | Tue, 24 Apr 2007 14:23:18 +0000 |
| Subject: | #41179 [Opn->Fbk]: Crash when script_encoding is set to Shift_JIS of SJIS-win | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-111854@lists.php.net to get a copy of this message | ||
ID: 41179
Updated by: tony2001@php.net
Reported By: joe at asial dot co dot jp
-Status: Open
+Status: Feedback
Bug Type: Scripting Engine problem
Operating System: CentOS 4.4
PHP Version: 5.2.1
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.2-win32-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2007-04-24 14:19:58] joe at asial dot co dot jp
Description:
------------
If php is compiled with --enable-zend-multibyte and setting
script_encoding to SJIS or Shift_JIS, some script crash the apache
process.
There is no error when running the same script by CLI PHP.
Thank you.
Reproduce code:
---------------
<html>
<head>
<title>test</title>
</head>
<body>
¢¤¦¨©«¯±
Ì§Ì¨ÌªÌªÌ«Æ¬Æ¨ÆÆªÆ®
Ë߬ËߨËßËߪËß®
hogehoge hogehoge aaa
ιÞιްu°° ²²
¢¢¢¢¢¢¢¢°°°°°¢¢¢¢°¢°¢°¢°¢°¢°¢°¢
±²³´µ°¶·¸¹º°»¼½¾¿°
§¨©ª«¶Þ·Þ¸Þ¹ÞºÞ»Þ¼Þ½Þ¾Þ¿ÞÀÞÁÞÂÞÃÞÄÞÊÞËÞÌÞÍÞÎÞ¢ÊßËßÌßÍßÎߣůÇÈÉhogehoge
</body></html>
Expected result:
----------------
¢¤¦¨©«¯±
Ì§Ì¨ÌªÌªÌ«Æ¬Æ¨ÆÆªÆ®
Ë߬ËߨËßËߪËß®
hogehoge hogehoge aaa
ιÞιްu°° ²²
¢¢¢¢¢¢¢¢°°°°°¢¢¢¢°¢°¢°¢°¢°¢°¢°¢
±²³´µ°¶·¸¹º°»¼½¾¿°
§¨©ª«¶Þ·Þ¸Þ¹ÞºÞ»Þ¼Þ½Þ¾Þ¿ÞÀÞÁÞÂÞÃÞÄÞÊÞËÞÌÞÍÞÎÞ¢ÊßËßÌßÍßÎߣůÇÈÉhogehoge
Actual result:
--------------
Segmentation fault.
Apache error log
----
zend_mm_heap corrupted
----
or
----
[Tue Apr 24 22:53:07 2007] [notice] child pid 15135 exit signal
Segmentation fault (11)
----
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=41179&edit=1