[PHP-DEV] Bug #1279: str_replace causes emalloc() error From: email <email protected>
Date: 03/30/99

From: email <email protected>
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 <email protected>
For help: php-dev-help <email protected>