php-lua
php-lua copied to clipboard
This extension embeds the lua interpreter and offers an OO-API to lua variables and functions.
When passing anonymous PHP functions to LUA using `assign` or `registerCallback`, some memory is not reclaimed when the Lua object is unset. See https://github.com/ComaVN/php-lua-memoryleak for a proof of concept.
Since in https://github.com/laruence/php-lua/blob/master/lua.c#L305, a Lua object is not passed to the Lua->zval conversion function (it cannot be fetched using getThis because we're in a function called from the Lua environment),...
``` ^ ``` /Users/huangjianfeng/Downloads/lua-2.0.2/lua-2.0.2/lua.c:820:24: warning: incompatible pointer types assigning to 'zend_object_value (_)(zend_class_entry *)' (aka 'struct _zend_object_value (_)(struct _zend_class_entry _)') from 'zend_object *(zend_class_entry *)' (aka 'struct _zend_object *(struct _zend_class_entry *)') [-Wincompatible-pointer-types]...
I am trying to use php-lua with a custom package loader loading lua scripts and modules from a remote server. I ran into an issue with `assert` and `error` inside...
I am running Lua 5.1.5 on Gentoo and have compiled php7 branch of php-lua against PHP7 git latest. All tests pass except 001.phpt, which fails because the expected Lua error...
PHP8
Few years ago I was modified some files for PHP 8 support for own needs. Seems like it could be helpful for someone.