Last modified: 2014-10-27 13:23:05 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T73981, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 71981 - HHVM has trouble with mw.clone()
HHVM has trouble with mw.clone()
Status: RESOLVED WORKSFORME
Product: MediaWiki extensions
Classification: Unclassified
Scribunto (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: hhvm
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-10-12 14:34 UTC by Alexandr Ignatiev
Modified: 2014-10-27 13:23 UTC (History)
7 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Alexandr Ignatiev 2014-10-12 14:34:47 UTC
Under HHVM some problem appears with frame, wich results in defunction which is not attested without HHVM. A way of temporarily avoiding it can be seen in this edit:
https://ru.wikipedia.org/w/index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:Transclude&curid=4437762&diff=66100041&oldid=63543436
Original bugreport in ruwiki is:
https://ru.wikipedia.org/wiki/%D0%92%D0%B8%D0%BA%D0%B8%D0%BF%D0%B5%D0%B4%D0%B8%D1%8F:%D0%A4%D0%BE%D1%80%D1%83%D0%BC/%D0%A2%D0%B5%D1%85%D0%BD%D0%B8%D1%87%D0%B5%D1%81%D0%BA%D0%B8%D0%B9#HHVM
Comment 1 Sergey Leschina 2014-10-12 15:03:03 UTC
It's problem with frame:expandTemplate(), not with mw.clone().
If we use mw.clone(f.args), it's copy metatable too. And for table with metatable frame:expandTemplate() returns empty string when HHVM enabled.

Simplified code:

local M={}
function M.foo(f)
    a = mw.clone(f.args)
    out = f:expandTemplate{ title='Bar', args=a }
    return out
return M
Comment 2 Jackmcbarn 2014-10-12 17:11:12 UTC
I can't tell what the problem is. What are the expected and actual behaviors of that snippet, what does Template:Bar need to contain in that example, and what arguments need to be passed to Lua?
Comment 3 Brad Jorsch 2014-10-12 17:52:00 UTC
Same here, can't reproduce with the information given.
Comment 4 Andre Klapper 2014-10-27 13:23:05 UTC
Unfortunately closing this report as no further information has been provided.

Alexandr: Please feel free to reopen this report if you can provide the information asked for in comment 2 and comment 3 and if this still happens. Thanks!

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links