Bug #1279: str_replace causes emalloc() error

From: Date: Tue, 30 Mar 1999 17:26:10 +0000
Subject: Bug #1279: str_replace causes emalloc() error
Groups: php.dev 
Request: Send a blank email to php-dev+get-4844@lists.php.net to get a copy of this message
From: email@destryhines.com Operating system: NT 4.0 sp3 PHP version: 3.0.6 PHP Bug Type: Reproduceable crash Bug description: str_replace causes emalloc() error <? /* Generated error FATAL: emalloc(): Unable to allocate -n bytes Error occures as long as the haystack is 8 characters AND the needle is more then 1 character AND the needle is not found in the haystack. */ print str_replace("d1","","12345678"); ?> -- 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

« previous php.dev (#4844) next »