#27675 [Com]: Access Violation
| From: | nick at linuxmail dot org | Date: | Fri, 26 Mar 2004 01:00:15 +0000 |
| Subject: | #27675 [Com]: Access Violation | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-56858@lists.php.net to get a copy of this message | ||
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