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

dan mcmullen bang at bangzero.org
Thu Dec 3 12:52:37 CST 2009

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, 
should be:
   $Conditions['exists'] = 'PageExists(MakePageName($pagename, $condparm))';

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?

enjoy! /dan

ps- i put this info in PITS 01156.

On 12/3/09 5:51 AM, Petko Yotov wrote:
> On Thursday 03 December 2009 04:58:18, dan mcmullen wrote :
>> (:if exist Group.PageName:) seems to always return
>> false.  a copy of the development wiki under linux/php 5.2.10 works as
>> expected.
> Confirmed, ToDo ASAP.
>    http://www.pmwiki.org/wiki/PITS/01156
> Thanks!
> Petko

More information about the pmwiki-users mailing list