PHP 4.0 Bug #8124 Updated: ereg causes page to fail

From: Date: Tue, 12 Dec 2000 12:42:01 +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-40962@lists.php.net to get a copy of this message
ID: 8124 Updated by: stas Reported By: binkleym@nukote.com Old-Status: Open Status: Closed Bug Type: *Regular Expressions Assigned To: Comments: Thus closing. Previous Comments: --------------------------------------------------------------------------- [2000-12-12 07:40:07] binkleym@nukote.com it was fixed in apache. So current woody is OK. Petr Cech --------------------------------------------------------------------------- [2000-12-11 05:26:02] 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-05 12:30:06] binkleym@nukote.com I'll take this one --------------------------------------------------------------------------- [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

« previous php.dev (#40962) next »