Re: [PHP4BETA] perl compatible regex search&replace behavingoddly... bug?

From: Date: Wed, 19 Jan 2000 06:32:48 +0000
Subject: Re: [PHP4BETA] perl compatible regex search&replace behavingoddly... bug?
References: 1 2 3  Groups: php.version4 
Request: Send a blank email to php-version4+get-9277@lists.php.net to get a copy of this message
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.'' *


« previous php.version4 (#9277) next »