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.

Event Timeline

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

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 removed a project: Patch-For-Review.