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

From: Date: Tue, 05 Dec 2000 17:43:02 +0000
Subject: Re: PHP 4.0 Bug #8124: ereg causes page to fail
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-40152@lists.php.net to get a copy of this message
Sorry for the update on this one. But how can one add a comment to someones bug? On Tue, Dec 05, 2000 at 04:37:59PM -0000 , binkleym@nukote.com wrote: > From: binkleym@nukote.com > Operating system: Debian Woody (with latest updates) ^^^^^^^^^ please report such bugs to the debian BTS > PHP version: 4.0.3pl1 > PHP Bug Type: *Regular Expressions > Bug description: ereg causes page to fail > > 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: that's with apache 1.3.14 and large file support - because apache is compiled this way, also php4 needs too. If php4 is not compiled with large file support, it crashes on loading. If it has large file support then it seems the ?reg_* functions are broken. People have also encountred problems with mysql eating memory with scripts working fine with 1.3.12 and without large file support. > <? > $a = "Hello Mars!"; > $a = ereg_replace("Mars", "World", $a); > echo $a; > ?> which gives as most other pages php_reg_replace (pattern=0xffffffff <Address 0xffffffff out of bounds>, replace=0xffffffff <Address 0xffffffff out of bounds>, string=0xffffffff <Address 0xffffffff out of bounds>, icase=-1, extended=-1) at /root/PHP4-4.0.4RC3/php4-4.0.4RC3/ext/standard/reg.c:340 340 while (*walk) (gdb) bt #0 php_reg_replace (pattern=0xffffffff <Address 0xffffffff out of bounds>, replace=0xffffffff <Address 0xffffffff out of bounds>, string=0xffffffff <Address 0xffffffff out of bounds>, icase=-1, extended=-1) at /root/PHP4-4.0.4RC3/php4-4.0.4RC3/ext/standard/reg.c:340 #1 0xffffffff in ?? () Cannot access memory at address 0xffffffff Petr Cech -- Debian GNU/Linux maintainer - www.debian.{org,cz} cech@atrey.karlin.mff.cuni.cz <Tv> We are debian.org, resistance is futile, you will be apt-get upgraded.

« previous php.dev (#40152) next »