Micke Nordin writes:
Robert Rohde <rarohde <at> gmail.com> writes:
PHP 4 and PHP 5 handle objects as function parameters differently. Mediawiki now considers PHP 5.0 or later as a prerequisite (5.1 or later recommended). The warning you quote is a plausible consequence of using PHP 4 under certain circumstances, so that is the first thing I would check.
Right, I'll see if I can get a hold of the guy again. Thanks for that.
Is there a notable difference between passing the parser object by reference rather than as a value in this case though? I mean, if I can support PHP4 with my extension with out any (notable) differences I could just as easily pass the object as a value instead. I don't notice an difference in performance when I try it...
/Micke
You can't support PHP5 in mediawiki. The warning you get was added on PHP 5.3 and doesn't affect that code works OK. You should remove the reference to make the warning go away.