--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 (V8JsScriptException $e) { echo $e->getMessage(), "\n"; } ?> ===EOF=== --EXPECTF-- [object %s] Hello world ===EOF===