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
 [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

Pull Requests

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-2024 The PHP Group
All rights reserved.
Last updated: Wed Dec 11 17:01:28 2024 UTC