PHP 4.0 Bug #4831: str_replace under certain conditions will crash Roxen webserver 2.0.x
| From: | emils at dot dot lv | Date: | Mon, 05 Jun 2000 21:37:58 +0000 |
| Subject: | PHP 4.0 Bug #4831: str_replace under certain conditions will crash Roxen webserver 2.0.x | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-20289@lists.php.net to get a copy of this message | ||
From: emils@dot.lv
Operating system: SuSE Linux 6.2
PHP version: 4.0.0 Release
PHP Bug Type: Reproduceable crash
Bug description: str_replace under certain conditions will crash Roxen webserver 2.0.x
PHP4.0.0 compiled with:
./configure --with-roxen=/usr/local/roxen/server --without-mysql --without-msql
--with-pgsql=/usr/local/pgsql --enable-roxen-zts
The following line causes Roxen webserver to crash, if the variables used are empty:
<?
$search_text=$search_text.'&s_title='.str_replace('
','%20',$s_title).'&s_text='.str_replace('
','%20',$s_text);
?>
The above happens for the Roxen 2.0.46/2.0.50 . It will make the garbagecollector process do a
coredump.