Hi!
An user of my extension had reported an error that occurs during calling 
registered parser hook under MediaWiki 1.15.1 in PHP 5.3:

function qp_RenderPoll( $input, $argv, &$parser ) {
...
}

Parameter 3 expected to be a reference, value given on line 3243 in 
Parser.php

There are two fixed proposed:
http://www.mediawiki.org/wiki/Extension:AccessControl#See_also

a patch to Parser.php. I've checked the revision 55629 and don't see the 
patch integrated there.

Patch to the extension:
http://www.mediawiki.org/wiki/Extension_talk:Group_Based_Access_Control#Problem_with_PHP_5.3_.28solved.29

To me it's easy to release the new version, patch is one letter. But, 
I've studied other extensions and for example very professional Semantic 
MediaWiki also declares third parameter of tag hook method by reference:
static public function doAskHook($querytext, $params, &$parser) {
...
}
maybe not the latest version - v1.4.1, not too old, though. I will check 
the latest SMW, too.

What should I do, wait for the Parser.php patch or to use less efficient 
passing of large Parser object by value?
Dmitriy

_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to