Re: php upgrade broke phpwiki

Reini Urban <[email protected]> Fri, 16 Jan 2009 07:17:25 +0100
Newsgroups gmane.comp.web.wiki.phpwiki.talk
Message-ID <[email protected]>
Reini Urban schrieb:
> Charles Sprickman schrieb:
>> And after many hours of googling, the answer is that you can't have a 
>> class name the same as a function name.
>> Fix:
>> lib/WikiUserNew.php
>> every place there's call to "PearDbPassUser", rename it to something - I 
>> just tacked "foo" on the end:
>> _PearDbPassUser::_PearDbPassUserFoo($this->_userid, $this->_prefs);
>> lib/WikiUser/PearDb.php
>>
>> Rename the function to match:
>> function _PearDbPassUserFoo($UserName='',$prefs=false) {
>>
>> So far, so good.  If I can find more problems like this, I'll try and roll 
>> up a patchset.


Charles,

I just tested with plain PearDBPassUser, php-5.2.8 / phpwiki-svn
and cannot reproduce.

I'll continue investigating.

>> On Thu, 15 Jan 2009, Charles Sprickman wrote:
>>
>>> Just a quick note - same failure using latest svn.
>>>
>>> From googling around, something changed from php 5.2.6 on - this used to fail 
>>> with "E_STRICT" and now it's fatal.
>>>
>>> I don't know OOP to save my life, so I'm stumped.
>>>
>>> On Thu, 15 Jan 2009, Charles Sprickman wrote:
>>>
>>>> Hello all,
>>>>
>>>> I just upgraded from php 4.4.8 to 5.2.8, along with all the Pear and php
>>>> extensions I had installed.  Other applications on this machine are doing 
>>>> fine,
>>>> but I get this error on loading phpwiki (version 1.3.14):
>>>>
>>>> [14-Jan-2009 21:48:43] PHP Fatal error:  Non-static method
>>>> _PearDbPassUser::_PearDbPassUser() cannot be called statically, assuming 
>>>> $this
>>>> from incompatible context in /usr/local/www/data/wiki/lib/WikiUserNew.php 
>>>> on
>>>> line 1118
>>>>
>>>> Any ideas on what the root cause is?  Pear is at 1.7.2, previously it was
>>>> 1.7.1.
-- 
Reini Urban
http://phpwiki.org/  http://murbreak.at/

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword