Re: php 5.3

Marc-Etienne Vargenau <[email protected]> Wed, 17 Nov 2010 13:48:17 +0100
Newsgroups gmane.comp.web.wiki.phpwiki.talk
Message-ID <[email protected]>
Le 17/11/2010 11:17, Peter Campion-Bye a écrit :
> Hi,
> Since updating php to version 5.3.3 my phpwiki is failing with errors
> such as this:
> lib/FileFinder.php:159 Error[8192]: Function ereg() is deprecated
>> From looking around on the web I see that it is possible to work
> around this by putting in -E_DEPRECATED somewhere, but I can't see
> where.
> Is it possible someone could provide a quick patch to put in
> -E_DEPRECATED and get me running again.
> I appreciate there may be other reasons it won't work with 5.3.3 and a
> longer term solution will be required, but if it's only a case of
> switching off the deprecated function errors then I'd rather go with
> that than downgrade php.

Hello,

Are you using Phpwiki 1.4.0RC1?

Phpwiki 1.4.0RC1 should take care of this.

See:
if (defined('E_STRICT')) // and (E_ALL & E_STRICT)) // strict php5?
$ErrorManager->setPostponedErrorMask(E_NOTICE|E_USER_NOTICE|E_USER_WARNING|E_WARNING|E_STRICT|((check_php_version(5,3)) 
? E_Db/FileFinder.phpEPRECATED : 0));
     else
$ErrorManager->setPostponedErrorMask(E_NOTICE|E_USER_NOTICE|E_USER_WARNING|E_WARNING);

in file lib/main.php

Best regards,

-- 
Marc-Etienne Vargenau
Alcatel-Lucent France, Route de Villejust, 91620 NOZAY, FRANCE
+33 (0)1 30 77 28 33, [email protected]

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev