php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #41179 Crash when script_encoding is set to Shift_JIS of SJIS-win
Submitted: 2007-04-24 14:19 UTC Modified: 2007-05-26 01:00 UTC
From: joe at asial dot co dot jp Assigned:
Status: No Feedback Package: Scripting Engine problem
PHP Version: 5.2.1 OS: CentOS 4.4
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: joe at asial dot co dot jp
New email:
PHP Version: OS:

 

 [2007-04-24 14:19 UTC] 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)
----


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-04-24 14:23 UTC] tony2001@php.net
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


 [2007-05-02 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2007-05-15 05:58 UTC] joe at asial dot co dot jp
I'm sorry for no feedback.

I tried snapshot and php 5.2.2, but same error is occured.
 [2007-05-18 14:40 UTC] tony2001@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.

Can't reproduce.
 [2007-05-26 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 06 19:01:36 2025 UTC