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

From: Date: Fri, 16 May 2003 18:37:36 +0000
Subject: Re: Bug 23654: str_replace doesn't handle multidimensional arrays
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-1605@lists.php.net to get a copy of this message
On Sat, 17 May 2003, Moriyoshi Koizumi wrote: > <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. Agreed on that. Just make it skip arrays for replacements. Derick -- "my other box is your windows PC" ------------------------------------------------------------------------- Derick Rethans http://derickrethans.nl/ PHP Magazine - PHP Magazine for Professionals http://php-mag.net/ -------------------------------------------------------------------------

« previous php.internals (#1605) next »