[pmwiki-users] PHP 5.3 woes. Finally fixed

Vince Administration vadmin at math.uconn.edu
Sat Oct 24 14:24:15 CDT 2009


On Oct 24, 2009, at 1:04 PM, rogutes at googlemail.com wrote:

> Vince Administration (2009-10-24 10:42):
>>
>> On Oct 24, 2009, at 5:34 AM, rogutes at googlemail.com wrote:
>>
>>> 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.
>>>>>
>>>>
>>>
>>> (: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);
>>>
>>
>> }
>
> You didn't answer my first question. Does the following work for you?
> (:pagelist group=-PmWiki*,-Site*:)
>
> There's no point pasting the entire function, because you should've
> changed only the two lines beginning with $pat = str_replace (which  
> look
> good above)... If you did more, I you've changed more than those, I'd
> suggest starting with a new pmwiki.php.
Well, first, it didn't work then. I had made two changes to the  
GlobToPCRE function,
the two lines i the str_replace function, and the change to the !   
entry as described in the PITS entry.
When I undid the second change, things started working.
Thanks again for all your help.  I will be more careful with my tests  
in the future.
       Vince







More information about the pmwiki-users mailing list