--TEST-- Test V8::executeString() : Test PHP object construction controlled by JavaScript (non-construction call) --SKIPIF-- --FILE-- greeter = new Greeter(); $v8->executeString(' function JsGreeter() { }; JsGreeter.prototype.sayHello = function(a) { print("Hello " + a + "\n"); }; jsGreeter = new JsGreeter(); jsGreeter.sayHello("Paul"); print(jsGreeter.constructor()); print("\n"); // ----- now the same using v8Js ----- PHP.greeter.sayHello("John"); print(PHP.greeter.constructor()); print("\n"); '); ?> ===EOF=== --EXPECT-- Hello Paul undefined Hello John undefined ===EOF===