php-lua icon indicating copy to clipboard operation
php-lua copied to clipboard

Conversion of Lua->PHP callables when passing to a PHP callable fails

Open danog opened this issue 7 years ago • 0 comments

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?

danog avatar Mar 24 '17 01:03 danog