Bug #10475: Array returned by str_replace unusable.
| From: | sbw at sbw dot org | Date: | Tue, 24 Apr 2001 17:06:09 +0000 |
| Subject: | Bug #10475: Array returned by str_replace unusable. | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-52292@lists.php.net to get a copy of this message | ||
From: sbw@sbw.org
Operating system: FreeBSD
PHP version: 4.0.4pl1
PHP Bug Type: *Function Specific
Bug description: Array returned by str_replace unusable.
See http://sbw.sbw.org/str_replace/.
str_replace(-string-, -string-, -array-) should return an array.
It appears that it does so, but when the returned array is passed to implode or each, PHP issues
warnings:
"Bad arguments to implode()"
"Variable passed to each() is not an array or object"
--
Edit Bug report at: http://bugs.php.net/?id=10475&edit=1