Re: [PHP4BETA] perl compatible regex search&replace behaving oddly... bug?
| From: | Andrei Zmievski | Date: | Tue, 18 Jan 2000 19:26:41 +0000 |
| Subject: | Re: [PHP4BETA] perl compatible regex search&replace behaving oddly... bug? | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-9259@lists.php.net to get a copy of this message | ||
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. *