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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
34 + 33 = ?
Subscribe to this entry?

 
 [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-2022 The PHP Group
All rights reserved.
Last updated: Mon Jan 24 06:03:34 2022 UTC