最近正在學習使用mediawiki創建自己的網站,但我在拷貝wikipedia的人物介紹模板時,發生了"Lua 錯誤:內部錯誤:直譯器已結束,狀態碼為 1。"的警示,而我看到有人寫說是需要將lua核心改用LuaSandbox,但我卻找不到方式可以將我的mediawiki安裝上LuaSandbox,請問該怎麼解決呢?
Talk:LuaSandbox
Appearance
You can use either Luasandbox extension for PHP (available as a package (usually, php-luasandbox
) in major Linux distributions) or Lua standalone. Details are described here.
Alexander Mashin talk 02:12, 25 July 2024 (UTC)
Good evening. The new enterprise distributions are shipping with Lua 5.3. Any chance for an upgrade to support this version?
Thanks :)
Please see T178146, there are currently no plans to move away from 5.1.
I can't find any instructions how to install this specific version of lua. (I was trying download and run make but it has some error) is there any documentation for how to get everything up and running?
No, it's not possible currently.
For anyone who is on Plesk hosting, or considering to move to Plesk, and is sad to miss out on all the wonderfulness that is Lua because of shared hosting restrictions and what not, don't give up but please vote for the following feature request:
Lua/Scribunto is not only incredibly useful, but may become one of few viable alternatives when Parsoid has made the move to parallel parsing and extensions like Variables and Arrays are no longer guaranteed to work.
Let's not 'miss the boat' and please make your voice heard.
I tried to install LuaSandbox under windows using the pre-built DLLs. It turns out that the lua5.1.dll
DLL should not be kept in the same place as the extension, but in the PHP directory itself (where php.exe
is located).
Hello there, I would like to know if LuaSandbox is compatible with Openlitespeed? I'm running a private MediaWiki site and want to shift to Openlitespeed so want to confirm if LuaSandbox will work on Openlitespeed.
Thank you
Hello,
do you have a date for php 8.1 support?
cordially
LuaSandbox should already be compatible with PHP 8.1. Are you running into any issues?
Hello,
My reverence was not up to date, everything is now good :)
Thanks
May I know where I can get luasandbox extension for windows? and the installation or build step for windows.
Hello,
do you have a date for php 8 support?
cordially
The version of LuaSandbox in Git supports PHP 8.0 if you'd like to try it out. We are working towards a 4.0 release soon, but still have a bit more work to do. See https://gerrit.wikimedia.org/r/c/mediawiki/php/luasandbox/+/654962/.
Can anybody review the fix for a memory leak: https://gerrit.wikimedia.org/r/c/mediawiki/php/luasandbox/+/628088?
I wonder what paused-PHP to PHP counted: yes (0.1s of 0.2s)
instead of the expected paused-PHP to PHP counted: yes (0.2s of %fs)
in the paused-PHP to PHP counted
test (timer.phpt
) under php 7.4 could mean.
That test had passed for a change I introduced (https://gerrit.wikimedia.org/r/c/mediawiki/php/luasandbox/+/626884/2#message-4a6b5fa8c1ec0e6e5f34d1ebf4cbd8881a86a119) in my build but not at https://integration.wikimedia.org.