Difference between revisions of "Issue:Call-time pass-by-reference deprecated"

From FollowTheScore
Jump to: navigation, search
m
 
(3 intermediate revisions by 3 users not shown)
Line 5: Line 5:
 
  |Version    = 1.6.4
 
  |Version    = 1.6.4
 
  |Description = Call-time pass-by-reference has been deprecated
 
  |Description = Call-time pass-by-reference has been deprecated
  |Status      = open / answered
+
  |Status      = closed
 
}}
 
}}
  
Line 31: Line 31:
  
 
== Again ==
 
== Again ==
Got the exact same problem. Deleting the "&" character seams to have solved it. But you should correct this typo your distribution. It took me 10 minutes to find this simple solution. [[User:XApple|XApple]] 02:21, 12 January 2008 (CET)
+
Got the exact same problem. Deleting the "&" character seams to have solved it. But you should correct this typo in your distribution. It took me 10 minutes to find this simple solution. [[User:XApple|XApple]] 02:21, 12 January 2008 (CET)
 +
 
 +
== Codebase 1.7.9 applied ==
 +
The patch was applied on [http://svn.wikimedia.org/viewvc/mediawiki?view=rev&revision=51054 r51054]. [[User:Shinjiman|Shinjiman]] 10:13, 27 May 2009 (UTC)

Latest revision as of 11:15, 27 May 2009

Description: Call-time pass-by-reference has been deprecated
Extension / Version: DPL   /   1.6.4
Type / Status: Bug   /   closed

Problem

Environment: fedora 8, php 5.2.4, mediawiki 1.11.0

I installed DPL2. Each wiki page now displays:

Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. in /home/sites/dsrv496.lab.belbone.be/htdocs/extensions/DynamicPageList/DynamicPageList2Include.php on line 283

I tried setting

ini_set("allow_call_time_pass_reference", "True");

but that doesn't work.

Is there any reason why

return self::extractHeadingFromText($parser, $page, $title, $text, $sec, $to, &$sectionHeading, $recursionCheck, maxLength, $link);

still uses a call by reference? --Hvdeynde

Reply

I am not aware of a special reason. Did you try to delete & at $sectionHeading? If not: please try and let me know.

Gero 10:42, 29 December 2007 (CET)

Again

Got the exact same problem. Deleting the "&" character seams to have solved it. But you should correct this typo in your distribution. It took me 10 minutes to find this simple solution. XApple 02:21, 12 January 2008 (CET)

Codebase 1.7.9 applied

The patch was applied on r51054. Shinjiman 10:13, 27 May 2009 (UTC)