Page MenuHomePhabricator

If two libraries use the same function name in their interface functions, one overrides the other
Closed, ResolvedPublic

Description

I discovered this while working on Wikibase:

If several libraries pass an interface function with the same name into Scribunto_LuaStandaloneInterpreter::registerInterface, the one defined last will override the ones passed earlier.

Details

Related Gerrit Patches:

Event Timeline

hoo created this task.Dec 5 2018, 2:14 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptDec 5 2018, 2:14 PM
hoo renamed this task from It two libraries use the same function name in their interface functions, one overrides the other to If two libraries use the same function name in their interface functions, one overrides the other.Dec 5 2018, 2:55 PM

Change 477788 had a related patch set uploaded (by Hoo man; owner: Hoo man):
[mediawiki/extensions/Scribunto@master] Make sure interface functions with the same name don't clash

https://gerrit.wikimedia.org/r/477788

hoo updated the task description. (Show Details)Dec 5 2018, 3:08 PM

Change 477788 merged by jenkins-bot:
[mediawiki/extensions/Scribunto@master] Make sure interface functions with the same name don't clash

https://gerrit.wikimedia.org/r/477788

hoo closed this task as Resolved.Dec 6 2018, 2:26 PM
hoo removed a project: Patch-For-Review.