php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1135 When using str_replace() to insert "-" or "." it crashes.
Submitted: 1999-02-10 05:13 UTC Modified: 1999-02-21 16:05 UTC
From: enjenco at tutus dot se Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 3.0.6 OS: FreeBSD
Private report: No CVE-ID: None
 [1999-02-10 05:13 UTC] enjenco at tutus dot se
<script language="php">

$Alias = "This.is.a.test";
$Alias = str_replace("004712",".",str_replace(".","004712",$Alias));
</script>

Apache 1.3.4 error_log:
httpd in realloc(): warning: chunk is already free.
httpd: [Wed Feb 10 10:41:07 1999] [notice] child pid 6585 exit signal Segmentation fault (11)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-02-21 16:05 UTC] jim
Fixed in latest CVS.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 19:01:33 2024 UTC