--TEST-- Test V8::executeString() : Issue #497 (segmentation fault calling PHP exit inside object function) --SKIPIF-- --FILE-- foo = new Foo(); $JS = <<< EOT PHP.foo.somecall(); PHP.foo.bar(); EOT; $v8->executeString($JS, '', \V8JS::FLAG_PROPAGATE_PHP_EXCEPTIONS); echo 'Not here!!'; ?> --EXPECTF-- string(12) "Foo somecall" string(7) "Foo bar" string(14) "Foo __destruct"