This is a static dump of issues in the old "Flyspray" bugtracker for DokuWiki. Bugs and feature requests
are now tracked at the issue tracker at Github.
Closed
Fixed
FS#1464 Deprecated warnings in PHP 5.3
Syntax
2008-08-07saurel
In the next version of PHP (5.3) currently in alpha, DokuWiki displays lots of warnings, for example :
''Deprecated: Assigning the return value of new by reference is deprecated in /dokuwiki/inc/parserutils.php on line 208''
I count 14 similar warnings on the start page.
Possible solutions :
1. Remove the useless assigns by reference, ie. replace ''$Parser = & new Doku_Parser();'' by ''$Parser = new Doku_Parser();'' (and so on). However that could lead to other, perhaps more important problems in old PHP versions.
2. Hide deprecated warnings ! Something like replacing, in ''/dokuwiki/inc/init.php'',
''if (!defined('DOKU_E_LEVEL')) { error_reporting(E_ALL ^ E_NOTICE); }''
by
''if (!defined('DOKU_E_LEVEL')) { error_reporting( E_ALL & ~E_NOTICE & ~E_DEPRECATED ); }''
should work. It won't automatically hide the deprecated warnings in case of user-set ''DOKU_E_LEVEL'', but those who do that should be able to remove them themselves.
2008-08-07saurel
Oh, also, with PHP 5.3 alpha, this bug [ http://bugs.php.net/bug.php?id=44842 ] disables css.php to replace the __variables__ in the css output. This is a php bug, though, that will hopefully be corrected in the final version.