ID:               27675
 Comment by:       nick at linuxmail dot org
 Reported By:      marcel at korton dot nl
 Status:           Open
 Bug Type:         Strings related
 Operating System: win XP
 PHP Version:      5.0.0RC1
 New Comment:

I've noticed this only seems to crash when the replacement string is
not the same length as the searched-for string.


Previous Comments:
------------------------------------------------------------------------

[2004-03-24 10:24:38] marcel at korton dot nl

Description:
------------
str_ireplace gives an unexpected result

Reproduce code:
---------------
<?php

$strResult = '/*<B>i see this</B>*/';



echo $strResult;



$strResult = str_ireplace('/*<B>', '<B>', $strResult );

        

echo $strResult;

?>



Expected result:
----------------
<B>i see this</B>*/'



Actual result:
--------------
PHP has encountered an Access Violation at 00CB7C21/*i see this*/


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=27675&edit=1

Reply via email to