From: yoy dot noneoff at dfgh dot net Operating system: win xp sp2 PHP version: 5.3CVS-2007-11-15 (CVS) PHP Bug Type: mbstring related Bug description: mbstring crash cgi
Description: ------------ php crash on mbstring(php_mbstring.dll) when runnign as CGI. 'e' flag/option and $replacement parameter contian php-expression with syntax error. problem not present when php loaded as module(Apache) Parse error is thrown. applay on the latest php 5.3 and also on php 5.2 Reproduce code: --------------- <?php $ptr = 'hello'; $txt = <<<doc hello, I have got a cr*sh on you doc; echo C($ptr,'$1',$txt,'e'); ?> Expected result: ---------------- see Parse Error, similer to php loaded as module. Actual result: -------------- crash error AppName: php-cgi.exe AppVer: 5.3.0.0 ModName: php_mbstring.dll ModVer: 5.3.0.0 Offset: 00031595 -- Edit bug report at http://bugs.php.net/?id=43301&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=43301&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=43301&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=43301&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=43301&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=43301&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=43301&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=43301&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=43301&r=needscript Try newer version: http://bugs.php.net/fix.php?id=43301&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=43301&r=support Expected behavior: http://bugs.php.net/fix.php?id=43301&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=43301&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=43301&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=43301&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=43301&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=43301&r=dst IIS Stability: http://bugs.php.net/fix.php?id=43301&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=43301&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=43301&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=43301&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=43301&r=mysqlcfg
