php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27947 str_ireplace // winxp // apache 2.0.49
Submitted: 2004-04-10 17:45 UTC Modified: 2004-04-10 23:26 UTC
From: efesar at unm dot edu Assigned:
Status: Not a bug Package: Reproducible crash
PHP Version: 5.0.0RC1 OS: Windows XP Pro SP1
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: efesar at unm dot edu
New email:
PHP Version: OS:

 

 [2004-04-10 17:45 UTC] efesar at unm dot edu
Description:
------------
$tmp = str_ireplace( "HHHH", "h", "HHHHHHHH" );

str_ireplace is broken.

if i put this in a script by itself, this crashes apache2 instantly. 

it did cause this on BETA3 ... 

when i run it with str_replace, it works fine. 

Reproduce code:
---------------
$tmp = str_ireplace( "HHHH", "h", "HHHHHHHH" );

Expected result:
----------------
a case insensitive replace

Actual result:
--------------
apache 2.0.49 crashes (even after a perfectly clean install)

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-04-10 18:01 UTC] derick@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip
 [2004-04-10 18:38 UTC] efesar at unm dot edu
Okay, it seems to be fixed in CVS. I can't reproduce the crash anymore.
 [2004-04-10 23:26 UTC] pollita@php.net
Duplicate of an earlier bug.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 13 18:01:32 2025 UTC