Skip to content

fix send_zval_to_lua() - #19

Merged
laruence merged 1 commit into
laruence:php7from
tony2001:php7_fixes
Apr 7, 2016
Merged

laruence merged 1 commit into
laruence:php7from
tony2001:php7_fixes

Conversation

@tony2001

Copy link
Copy Markdown
Contributor

Here's a code to test it:

$orig_callback = function() {
    return ['r'=>['user_id'=>10], 'e'=>''];
};
$Lua = new \lua();
$callback_code = 'return dump();';
$Lua->registerCallback("dump", $orig_callback);
var_dump($Lua->eval($callback_code));

@laruence
laruence merged commit 86cb62e into laruence:php7 Apr 7, 2016
@zhang-bin zhang-bin mentioned this pull request Feb 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants