Re: [PHP4BETA] perl compatible regex search&replace behavingoddly... bug? From: Alexander Fordyce (alex <email protected>)
Date: 01/19/00

Gentlemen,

Thanks for your help! I got the cvs tree and it configured and built
smoothly...

...and all my scripts suddenly work! Life is good. I'm not losing my mind.

Thanks again,
Alex

At 4:21 PM -0600 1/18/00, Andrei Zmievski wrote:
>On Tue, 18 Jan 2000, Garth Hitchens wrote:
> > I apologize for not stepping in before. I hit this same exact problem in
> > PHP 4.0b3. I assume you're running the stock 4.0b3 build. As far as I can
> > tell, pcre is broken in that build. The fix for me was to
>selectively pickup
> > and patch some code in the pcre module from the cvs release into the b3
> > release to fix this problem. The symptoms I had were exactly the ones you
> > describe. Using the current CVS build should fix the problem.
>
>You are correct, sir. I indeed see the two entries in the ChangeLog I
>made when fixing the errors after Beta 3:
>
>revision 1.28
>date: 1999/11/19 22:59:12; author: andrei; state: Exp; lines: +1 -1
>(PHP preg_replace) Fixed a bug that cause backreferences to lose
>their value after the first occurrence.
>----------------------------
>revision 1.27
>date: 1999/11/19 22:28:06; author: andrei; state: Exp; lines: +2 -2
>Fixed a bug that would replace only the first occurrence and result in
>a parse error for the rest when using /e modifier.
>
>
>-Andrei
>* Linus's Law: ``Given enough eyeballs, all bugs are shallow.'' *

-- 
PHP 4.0 Beta Mailing List <http://www.php.net/version4/>
To unsubscribe, e-mail: php4beta-unsubscribe <email protected>
For additional commands, e-mail: php4beta-help <email protected>
To contact the list administrators, e-mail: php4beta-admin <email protected>