https://bugzilla.wikimedia.org/show_bug.cgi?id=70046
Bug ID: 70046
Summary: Preprocessor_DOM causes fatal errors when called in
certain ways
Product: MediaWiki
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Parser
Assignee: [email protected]
Reporter: [email protected]
Web browser: ---
Mobile Platform: ---
Given the following Lua module:
local p = {}
function p.main(frame)
return 'Hello world'
end
function p.fnOnly(frame)
return
mw.getCurrentFrame():callParserFunction('#invoke',{'Sandbox/Jackmcbarn',
'main'})
end
function p.oneArg(frame)
return
mw.getCurrentFrame():callParserFunction('#invoke',{'Sandbox/Jackmcbarn',
'main', 'baz'})
end
function p.twoArgs(frame)
return
mw.getCurrentFrame():callParserFunction('#invoke',{'Sandbox/Jackmcbarn',
'main', 'baz', 'qux'})
end
return p
Any call to twoArgs will result in "PHP fatal error in
/usr/local/apache/common-local/php-1.24wmf17/includes/parser/Preprocessor_DOM.php
line 1042:
Call to a member function item() on a non-object". This only occurs on wikis
that use Preprocessor_DOM rather than Preprocessor_Hash.
--
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l