| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 | --TEST--Test V8::executeString() : Method access on derived classes (V8Js methods)--SKIPIF--<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>--FILE--<?phpclass Foo extends \V8Js{    public function hello()    {	print("Hello World\n");    }}$JS = <<< EOTvar_dump(typeof PHP.hello);var_dump(typeof PHP.executeString);var_dump(typeof PHP.compileString);var_dump(typeof PHP.executeScript);var_dump(typeof PHP.checkString);var_dump(typeof PHP.getPendingException);var_dump(typeof PHP.setModuleNormaliser);var_dump(typeof PHP.setModuleLoader);var_dump(typeof PHP.registerExtension);var_dump(typeof PHP.getExtensions);var_dump(typeof PHP.setTimeLimit);var_dump(typeof PHP.setMemoryLimit);try {    PHP.setTimeLimit(100);}catch(e) {    var_dump('caught');}EOT;$v8 = new Foo();$v8->executeString($JS);?>===EOF===--EXPECTF--string(8) "function"string(9) "undefined"string(9) "undefined"string(9) "undefined"string(9) "undefined"string(9) "undefined"string(9) "undefined"string(9) "undefined"string(9) "undefined"string(9) "undefined"string(9) "undefined"string(9) "undefined"string(6) "caught"===EOF===
 |