Hi All,
I am trying to use the Extension:Runphp, but I got the following error message:
Warning: Parameter 3 to parsePHP() expected to be a reference, value given in C:\xampp\htdocs\mywork\mediawiki-1.16.1\includes\parser\Parser.php on line 3333
Other information:
Version: mediawiki-1.16.2
Script:
<runphp> <?php echo "Hello World!\n"; ?> </runphp>
What's wrong with the extenssion? Could you please give me some hints for solving this problem? Thanks a lot.
Best wishes,
MS
In the line function parsePHP( $input, $argv, &$parser ) { return runphpExecCode( $input, $argv ); } Change &$parser to $parser
"Benjamin Lees" emufarmers@gmail.com wrote in message news:BANLkTim_wnfewCKH4GKXFwNai_JiTAuYvw@mail.gmail.com...
In the line function parsePHP( $input, $argv, &$parser ) { return runphpExecCode( $input, $argv ); } Change &$parser to $parser
And then maybe delete that whole line, and all the other lines in the file? On your head be it, obviously, but I can't think of *any* scenario in which I'd use this extension, or recommend anyone else do so. Being on an intranet or being restricted-account-creation will not protect your wiki against XSS vulnerabilities that are commonly found in MediaWiki and other software, and here you're basically trusting the security of your entire filesystem on the assumption that they will.
--HM
wikitech-l@lists.wikimedia.org