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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 17:01:37 2024 UTC