Re: preg_replace/str_replace Re: [PEAR-DEV] Re: IT[X] fork, round 2

From: Date: Wed, 12 Feb 2003 23:45:34 +0000
Subject: Re: preg_replace/str_replace Re: [PEAR-DEV] Re: IT[X] fork, round 2
References: 1 2 3 4  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-13211@lists.php.net to get a copy of this message
Alexey Borzov <borz_off@cs.msu.su> wrote: > I'm sick and tired of this. Please explain without using the BC and BS I think people generally doesnt like to known your health or mind state when discussing technical problems. And going back to the problem, I replace preg to str_replace, and yes, it works ok, in my case. The only way it could be a problem is if i use regex inside arguments, which i dont, in this case. So, before living this egotrip. Since we have, if I understand, a huge patch to be applied on one side, potentially huge BC problems on the other and two guys standing on feet in front of each other, like 'dont go any further', could we open a NEW (oh boy!) template subdir and let people go work? (Alexey i am pretending you rewrite the code from scratch, it looks like that if the patch is the size of the package). And yes, i prefer that to cause a possible major BC broken version change. S. Rocha > argument, what's the difference in behaviour between: > > preg_replace('@{foo}@', 'bar'); > > and > > str_replace('{foo}', 'bar'); > > except that the first would fuck up if 'bar' contains '$1' and the > second one would not. > > ------------------------------------------------- This mail sent through IMP: http://horde.org/imp/

« previous php.pear.dev (#13211) next »