Re: Bug 23654: str_replace doesn't handle multidimensional arrays

From: Date: Fri, 16 May 2003 17:39:53 +0000
Subject: Re: Bug 23654: str_replace doesn't handle multidimensional arrays
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-1592@lists.php.net to get a copy of this message
<pollita@php.net> wrote: > I've got fixes for str_replace to let it handle multidimensional arrays, but > I'm not sure if it should be applied to the 4.3 branch or not. On the one > hand it changes function behavior so it shouldn't be applied in stable. On > the other hand, current behavior is ugly and wrong so it should be fixed.. > > Thoughts? What is your fix like? Actually the current behaviour is ugly, but I don't see the idea str_replace() should always be able to handle multi-dim arrays as not all the users want it to do so. At most we'd be better off if nested arrays were ignored. Moriyoshi

« previous php.internals (#1592) next »