--TEST-- Test V8::executeString() : Dynamic closure call test --SKIPIF-- --FILE-- func = function ($arg) use ($b) { return call_user_func($b, $arg); }; try { $a->executeString('print(PHP.func + "\n"); print(PHP.func("world") + "\n");', "closure_test.js"); } catch (V8JsException $e) { echo $e->getMessage(), "\n"; } ?> ===EOF=== --EXPECT-- [object Closure] Hello world ===EOF===