--TEST-- Test V8::compileString() : Check compiled script isolate processing --SKIPIF-- --FILE-- compileString($js, 'a.js'); var_dump($script_a); $script_b = $v8two->compileString($js2, 'b.js'); var_dump($script_b); var_dump($v8->executeScript($script_a)); var_dump($v8->executeScript($script_b)); var_dump($v8->executeScript($script_a)); } catch (V8JsScriptException $e) { var_dump($e); } ?> ===EOF=== --EXPECTF-- resource(%d) of type (V8Js script) resource(%d) of type (V8Js script) object(V8Object)#%d (1) { ["hello"]=> string(5) "world" } Warning: Script resource from wrong V8Js object passed in %s on line %d bool(false) object(V8Object)#%d (1) { ["hello"]=> string(5) "world" } ===EOF===