php-src/Zend/tests/bug33710.phpt

33 lines
472 B
Plaintext
Raw Normal View History

2005-07-17 20:57:51 +00:00
--TEST--
2005-07-18 01:09:22 +00:00
Bug #33710 (ArrayAccess objects doesn't initialize $this)
2005-07-17 20:57:51 +00:00
--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===