--TEST-- Test V8::executeString() : Simple test --SKIPIF-- --FILE-- func = function ($arg) { echo "Hello {$arg}, I'm Closure!\n"; }; try { $a->executeString('print(PHP.func + "\n"); PHP.func("foobar");', "closure_test.js"); } catch (V8JsException $e) { echo $e->getMessage(), "\n"; } ?> ===EOF=== --EXPECT-- [object Closure] Hello foobar, I'm Closure! ===EOF===