Issue:DPL broken in PHP 5.3.3 due to reference parameter in dplTag
From FollowTheScore
Revision as of 22:37, 11 April 2011 by Maiden taiwan (talk | contribs) (Created page with "{{Issue |Type = Bug |Extension = DPL |Version = 1.8.9 |Description = DPL fails in PHP 5.3 due to reference parameter in dplTag |Status = open }} == Proble...")
Description: | DPL fails in PHP 5.3 due to reference parameter in dplTag |
Extension / Version: | DPL / 1.8.9 |
Type / Status: | Bug / open |
Problem
This line in DPLSetup.php:
public static function dplTag( $input, $params, &$parser ) {
incorrectly has the third parameter, $parser, as a reference parameter. As a result, PHP 5.3.3 fails to match dplTag with its hook and DPL fails.
PHP Warning: Parameter 3 to ExtDynamicPageList::dplTag() expected to be a reference, value given in /path/w/includes/parser/Parser.php on line 3332