Skip to content

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

@danog

Description

@danog

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions