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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 29 09:01:28 2024 UTC