RE: [PHP-DEV] PHP 4.0 Bug #8124 Updated: ereg causes page to fail
| From: | Mike Robinson | Date: | Tue, 05 Dec 2000 17:46:03 +0000 |
| Subject: | RE: [PHP-DEV] PHP 4.0 Bug #8124 Updated: ereg causes page to fail | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-40151@lists.php.net to get a copy of this message | ||
>
> [2000-12-05 11:37:58] binkleym@nukote.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.
FWIW, it produces Hello World! with the latest cvs on RHL7.0.
Regards
Mike Robinson