php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #41140 str_ireplace crash the server
Submitted: 2007-04-19 18:50 UTC Modified: 2007-04-19 19:39 UTC
From: m dot cacote at free dot fr Assigned:
Status: Closed Package: Reproducible crash
PHP Version: 5.2.1 OS: Windows XP
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: m dot cacote at free dot fr
New email:
PHP Version: OS:

 

 [2007-04-19 18:50 UTC] m dot cacote at free dot fr
Description:
------------
The server crash after the use of str_ireplace, but the srcipt works fine with str_replace or if y use shorter subject parameter

Reproduce code:
---------------
echo str_ireplace(array('a', 'b'), '', 'cdefghijklmnopqrstuvwxyz');

Expected result:
----------------
cdefghijklmnopqrstuvwxyz

Actual result:
--------------
the script loop with no end

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-04-19 18:53 UTC] derick@php.net
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-04-19 19:07 UTC] m dot cacote at free dot fr
I have tried but the problem is the same.
 [2007-04-19 19:26 UTC] m dot cacote at free dot fr
It works fine with the new release !!!

I have not installed correctly the version of php.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Apr 02 17:00:01 2026 UTC