ID: 43301 Updated by: [EMAIL PROTECTED] Reported By: yoy dot noneoff at dfgh dot net -Status: Open +Status: Feedback Bug Type: mbstring related Operating System: win xp sp2 PHP Version: 5.3CVS-2007-11-15 (CVS) New Comment:
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. Previous Comments: ------------------------------------------------------------------------ [2007-11-15 20:03:45] yoy dot noneoff at dfgh dot net correct Reproduce code: --------------- <?php $ptr = 'hello'; $txt = <<<doc hello, I have got a cr*sh on you doc; echo mb_ereg_replace($ptr,'$1',$txt,'e'); ?> ------------------------------------------------------------------------ [2007-11-15 01:35:30] yoy dot noneoff at dfgh dot net 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 this bug report at http://bugs.php.net/?id=43301&edit=1
