#43301 [Opn]: mbstring crash cgi
ID: 43301
User updated by: yoy dot noneoff at dfgh dot net
Reported By: yoy dot noneoff at dfgh dot net
Status: Open
Bug Type: mbstring related
Operating System: win xp sp2
PHP Version: 5.3CVS-2007-11-15 (CVS)
New Comment:
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');
?>
Previous Comments:
------------------------------------------------------------------------
[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
Thread (8 messages)