| 12345678910111213141516171819202122232425262728293031323334353637383940414243 | --TEST--Test V8::executeString() : Use multiple V8js instances with objects--SKIPIF--<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>--FILE--<?phpclass TestClass {	protected $_instNo;	public function __construct($num) {		$this->_instNo = $num;	}	public function sayHello() {		echo 'Hello World!  This is instance '.$this->_instNo."\n";	}}$instances = array();for($i = 0; $i < 5; $i ++) {	$v8 = new V8Js();	$v8->test = new TestClass($i);	$instances[] = $v8;}$JS = <<< EOTPHP.test.sayHello();EOT;foreach($instances as $v8) {	$v8->executeString($JS, 'basic.js');}?>===EOF===--EXPECT--Hello World!  This is instance 0Hello World!  This is instance 1Hello World!  This is instance 2Hello World!  This is instance 3Hello World!  This is instance 4===EOF===
 |