#41179 [NEW]: Crash when script_encoding is set to Shift_JIS of SJIS-win

From: Date: Tue, 24 Apr 2007 14:19:58 +0000
Subject: #41179 [NEW]: Crash when script_encoding is set to Shift_JIS of SJIS-win
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-111853@lists.php.net to get a copy of this message
From: joe at asial dot co dot jp Operating system: CentOS 4.4 PHP version: 5.2.1 PHP Bug Type: Scripting Engine problem Bug description: Crash when script_encoding is set to Shift_JIS of SJIS-win 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 bug report at http://bugs.php.net/?id=41179&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41179&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41179&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41179&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=41179&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=41179&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=41179&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=41179&r=needscript Try newer version: http://bugs.php.net/fix.php?id=41179&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=41179&r=support Expected behavior: http://bugs.php.net/fix.php?id=41179&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=41179&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=41179&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=41179&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41179&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=41179&r=dst IIS Stability: http://bugs.php.net/fix.php?id=41179&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=41179&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=41179&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=41179&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=41179&r=mysqlcfg

« previous php.bugs (#111853) next »