Closed tony2001 closed 8 years ago
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));
Here's a code to test it: