From: Marc-Etienne V. <Mar...@al...> - 2010-11-17 12:48:31
|
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, Mar...@al... |