File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / Zend / tests / bug33710.phpt
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:47:52 2012 UTC (13 years, 10 months ago) by misho
CVS tags: MAIN, HEAD
Initial revision

--TEST--
Bug #33710 (ArrayAccess objects doesn't initialize $this)
--FILE--
<?php

class Foo implements ArrayAccess
{
	function offsetExists($offset) {/*...*/}
	function offsetGet($offset) {/*...*/}
	function offsetSet($offset, $value) {/*...*/}
	function offsetUnset($offset) {/*...*/}
	
	function fail()
	{
		$this['blah'];
	}
	
	function succeed()
	{
		$this;
		$this['blah'];
	}
}

$bar = new Foo();
$bar->succeed();
$bar->fail();

?>
===DONE===
--EXPECT--
===DONE===

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>