php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8124 ereg causes page to fail
Submitted: 2000-12-05 11:37 UTC Modified: 2000-12-12 07:42 UTC
From: binkleym at nukote dot com Assigned:
Status: Closed Package: *Regular Expressions
PHP Version: 4.0.3pl1 OS: Debian Woody (with latest update
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: binkleym at nukote dot com
New email:
PHP Version: OS:

 

 [2000-12-05 11:37 UTC] binkleym at nukote dot com
I installed Debian Woody/PHP 4 on a clean machine, and apt-get dist-upgrade'd to the latest files.  Ereg and ereg_replace will cause the page to fail.  Here's an example program:

<?
   $a = "Hello Mars!";
   $a = ereg_replace("Mars", "World", $a);
   echo $a;
?>

When I load this page in IE 5.0, I get a "The Page Cannot Be Displayed" error.  If I comment out the ereg line it works fine.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-12-05 12:30 UTC] binkleym at nukote dot com
I'll take this one
 [2000-12-11 05:26 UTC] stas@php.net
Does it happen on latest snapshot from snaps.php.net? If so,
what are your configure options? Is there any errors on
apache log? 
 [2000-12-12 07:40 UTC] binkleym at nukote dot com
it was fixed in apache. So current woody is OK.



Petr Cech
 [2000-12-12 07:42 UTC] stas@php.net
Thus closing.
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Tue Dec 07 15:03:33 2021 UTC