[pmwiki-users] PHP 5.3 woes.

rogutes at googlemail.com rogutes at googlemail.com
Sat Oct 24 04:34:08 CDT 2009


Vince Admin Account (2009-10-23 16:01):
> 
> On Oct 19, 2009, at 5:13 PM, rogutes at googlemail.com wrote:
> 
> >
> >The problem with pagelists lies in GlobToPCRE() function in pmwiki.php
> >and is tracked at http://pmwiki.org/wiki/PITS/01149 . It concerns
> >exclusion patterns (name=-Page) only.
> >
> The suggested workaround for exclusion patterns (at least in my
> case)  allows the pagelist to work, but does not
> exclude anything.  A workaround for  this is to use $SearchPatterns
> in the config.php file.  This worked well for me.
> For example, to exclude all groups having a "-" in their name:
> $SearchPatterns['default'][] = '!^[A-Za-z]*-[A-Za-z]\.!;
> I know this will not work if the group names have special or
> international characters in their name, but it should be easy to
> adapt.
> Thanks for pointing out the PITS entry.
>        Vince

(:pagelist group=-PmWiki*,-Site*:) works fine here. Doesn't it work for
you? Are you sure you've made the right changes to GlobToPCRE()? The
line with str_replace call looks like this after changing:

$pat = str_replace(array('\\*', '\\?', '\\[', '\\]', '\\^', '\\-'),
                   array('.*',  '.',   '[',   ']',   '^', '-'), $pat);

-- 
--  Rogutės Sparnuotos



More information about the pmwiki-users mailing list