mirror of
https://github.com/php/php-src.git
synced 2026-04-29 19:23:22 +02:00
e8678fcb42
Don't special-case nested arrays/objects in str_replace(), instead perform a string cast on them as well. For arrays, this will always result in the usual conversion warning. This behavior is consistent with preg_replace(). If we didn't want to cast the array to string here, we should instead perform the replacement recursively. Silently copying it is just confusing.
1.1 KiB
1.1 KiB