[pmwiki-users] (:if exist... not working on mac osx 10.6?

Petko Yotov 5ko at 5ko.fr
Thu Dec 3 16:08:45 CST 2009

On Thursday 03 December 2009 19:52:37 dan mcmullen wrote:
> i did do some poking at the code.  did a bit more just now and it looks
> to me like this line in pmwiki.php:
>    $Conditions['exists'] = 'PageExists(MakePageName(\$pagename,
> \$condparm))';
> should be:
>    $Conditions['exists'] = 'PageExists(MakePageName($pagename,
> $condparm))';

You are correct -- it will be fixed in 2.2.8, which will be released this 
weekend. (It is already fixed in the current Subversion archive.)

> the '\$' sequences are preserved in the single quoted string, so eval()
> on it silently(!?) fails without ever invoking MakePageName.
> so, how did this behavior change between 5.2.10 and 5.3?  and why
> doesn't eval() report an error?

Error reporting is disabled by using @eval() instead of eval().


More information about the pmwiki-users mailing list