PHP 4.0 Bug #8124 Updated: ereg causes page to fail
| From: | binkleym at nukote dot com | Date: | Tue, 05 Dec 2000 17:30:06 +0000 |
| Subject: | PHP 4.0 Bug #8124 Updated: ereg causes page to fail | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-40150@lists.php.net to get a copy of this message | ||
ID: 8124
User Update by: binkleym@nukote.com
Status: Open
Bug Type: *Regular Expressions
Description: ereg causes page to fail
I'll take this one
Previous Comments:
---------------------------------------------------------------------------
[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.
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=8124