Bug #1028: str_replace
| From: | tobias at dnet dot it | Date: | Tue, 05 Jan 1999 11:03:08 +0000 |
| Subject: | Bug #1028: str_replace | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-3275@lists.php.net to get a copy of this message | ||
From: tobias@dnet.it
Operating system: FreeBSD 2.2.2-release
PHP version: 3.0.6
PHP Bug Type: Reproduceable crash
Bug description: str_replace
PHP 3.0.6 as Apache-1.3.3-module, MySQL module, magic_quotes_gpc compiled in. This is the first time
I'm able to crash PHP :)
The following line produces the crash:
$img = str_replace("/usr/local/www", "", $img);
$img is set to "/usr/local/www/swc/image.jpg"
httpd-error.log:
httpd in realloc(): warning: chunk is already free.
[Tue Jan 5 12:00:17 1999] [notice] httpd: child pid 24100 exit signal Segmentation fault (11)
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net