php-lua
php-lua copied to clipboard
Conversion of Lua->PHP callables when passing to a PHP callable fails
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), conversion of Lua callables to PHP callables when they are passed as parameters to a PHP callable fails. I thought of a workaround: why not store all relevant data from every Lua object into lua_ce? While I'm trying to figure out a way to implement this (kinda new to this), some feedback from the dev would be appreciated.
P.S. Nice fail with the creation of the issue eh?