|  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
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.


Add a Patch

Pull Requests

Add a Pull Request


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]
Does it happen on latest snapshot from 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]
Thus closing.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Jul 19 09:01:28 2024 UTC