[pmwiki-devel] Strange bug...
Dominique Faure
dominique.faure at gmail.com
Mon Mar 26 12:13:37 CDT 2007
On 3/26/07, The Editor <editor at fast.st> wrote:
> Someone pointed out a strange bug I was able to fix by changing
>
> $r = str_replace("{$x}", '~*~', $r);
>
> to
>
> $r = str_replace('{'.$x.'}', '~*~', $r);
>
> Evidently the string replacement matched on patterns like {emailbody}
> when $x=email. It seems it shouldn't match. Can anyone explain why?
>
http://docs.php.net/manual/en/language.types.string.php#language.types.string.parsing.complex
I couldn't resist: http://www.garageband.com/song?%7Cpe1%7CS8LTM0LdsaSlaVG2YG0
Dom
More information about the pmwiki-devel
mailing list