RE: [PHP4BETA] perl compatible regex search&replace behavingoddly... bug?
| From: | Garth Hitchens | Date: | Tue, 18 Jan 2000 22:15:11 +0000 |
| Subject: | RE: [PHP4BETA] perl compatible regex search&replace behavingoddly... bug? | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-9269@lists.php.net to get a copy of this message | ||
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.
> -----Original Message-----
> From: Alexander Fordyce [mailto:alex@ax-im.com]
> Sent: Tuesday, January 18, 2000 2:05 PM
> To: Andrei Zmievski
> Cc: php4beta@lists.php.net
> Subject: Re: [PHP4BETA] perl compatible regex search&replace
> behavingoddly... bug?
>
>
> yikes... Well, I guess I'll have to -- I'll try disabling everything
> I don't absolutely need right now. Can you suggest a possible source
> of conflict? As I mentioned, it configured and compiled with the
> full bag of tricks completely without incident, and I haven't had any
> other problems with the machine.
>
> Thanks,
> Alex
>
>
> >On Tue, 18 Jan 2000, Alexander Fordyce wrote:
> > > - - output: - -
> > > this is one variable: $var1,
> > > and this is another: $sÀG.
> > >
> > > ...well, it's clear why that isn't evaluating. The garbage is
> > > unpredictable. This occurs with any \\n reference in the implicit
> > > loop that preg_replace executes -- whether or not there's a $ in the
> > > replacement string or not (see example below).
> >
> >You got something seriously screwed up in your setup. Both of your
> >examples work fine here. Can you try recompiling from scratch or,
> >perhaps, even updating to fresh version from CVS?
> >
> >-Andrei
> >* A feature is a bug with seniority. *
> >
> >--
> >PHP 4.0 Beta Mailing List
> ><http://www.php.net/version4/>
> >To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net
> >For additional commands, e-mail: php4beta-help@lists.php.net
> >To contact the list administrators, e-mail: php4beta-admin@lists.php.net
>
>
> --
> PHP 4.0 Beta Mailing List <http://www.php.net/version4/>
> To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net
> For additional commands, e-mail: php4beta-help@lists.php.net
> To contact the list administrators, e-mail: php4beta-admin@lists.php.net