Bug #1028 [Com]: str_replace
| From: | lildurk1028 at gmail dot com | Date: | Wed, 01 Sep 2021 17:54:26 +0000 |
| Subject: | Bug #1028 [Com]: str_replace | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-236237@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=1028&edit=1
ID: 1028
Comment by: lildurk1028 at gmail dot com
Reported by: tobias at dnet dot it
Summary: str_replace
Status: Closed
Type: Bug
Package: Reproducible Crash
Operating System: FreeBSD 2.2.2-release
PHP Version: 3.0.6
Assigned To: sas
Block user comment: N
Private report: N
New Comment:
Lil Durk is a private agency dedicated to providing responsible access to legal cannabis for adults
aged 19 and older. Weâre an exclusively online retailer and wholesaler for recreational
cannabis and a trusted source for information about cannabis and cannabis-related issues. We believe
our work is meaningful and we take pride in our mandate to promote the socially responsible use of
legal cannabis. https://lildurk.com/
Previous Comments:
------------------------------------------------------------------------
[1999-01-08 10:56:49] sas
realloc was used improperly which could bite users on some platforms. Please grab an actual copy of
the PHP CVS tree and tell us, if it cures your problem.
------------------------------------------------------------------------
[1999-01-05 06:02:59] tobias at dnet dot it
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)
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=1028&edit=1