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