ID:               40943
 Updated by:       [EMAIL PROTECTED]
 Reported By:      dzoukr at dzoukr dot cz
-Status:           Open
+Status:           Feedback
 Bug Type:         Reproducible crash
 Operating System: Windows XP SP2
 PHP Version:      5.2.1
 New Comment:

You can expect it to be fixed in the snapshot.
To install it just download the .zip and unpack it.


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

[2007-03-29 08:25:50] dzoukr at dzoukr dot cz

Ok, I will try it asap. But I have to find out first, how to re-install
PHP on Wamp server (this is bundle of PHP+MySQL+Apache2). ;-) Can I
expect this bug will be fixed in next PHP stable release version?

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

[2007-03-29 08:14:47] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip



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

[2007-03-29 06:52:45] dzoukr at dzoukr dot cz

Description:
------------
Hi guys, yesterday I found a bug, which has been making me mad for a
long time. I found out that function str_ireplace() in current version
(5.2.1) on Apache2 (WinXP SP2) crashes server. I looked in release log,
where is something about buffer overflow for str_replace(), but it seems
that function str_ireplace() has been forgotten. It happens on
multi-using this function.

Reproduce code:
---------------
<?php
$string = "not so long text, maybe less than 1000 chars";
$result = str_ireplace("A", "B", $string);
$result = str_ireplace("B", "C", $result);
$result = str_ireplace("C", "D", $result);
$result = str_ireplace("D", "E", $result);
$result = str_ireplace("E", "F", $result);
?>

Expected result:
----------------
String with replaced chars

Actual result:
--------------
Apache crashes - browser says, that connection with server has been
corrupted during page loading!


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


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

Reply via email to