--TEST-- Test V8::executeString() : Property visibility - delete --SKIPIF-- --FILE-- $a); } } $js = new V8Js(); $js->foo = new Foo(); $script = <<foo->dump('privBar'); $js->foo->dump('protBar'); $js->foo->dump('pubBar'); echo "--- JS ---\n"; $js->executeString($script); echo "--- PHP ---\n"; $js->foo->dump('privBar'); $js->foo->dump('protBar'); $js->foo->dump('pubBar'); ?> ===EOF=== --EXPECT-- string(7) "privBar" string(7) "protBar" string(6) "pubBar" --- JS --- NULL NULL int(42) NULL NULL NULL string(6) "pubBar" NULL --- PHP --- string(7) "privBar" string(7) "protBar" NULL ===EOF===