diff options
author | Marcus Boerger <helly@php.net> | 2005-07-17 20:57:51 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2005-07-17 20:57:51 +0000 |
commit | c1e73b4a67606db756dbc223eb2cc642d590e7e7 (patch) | |
tree | 47f1246dcbff62e8b10cb9b7edbaaa58b0d3a51d | |
parent | 96fc6717e9c94311366a4fd9d14176a5ec96cce9 (diff) | |
download | php-git-c1e73b4a67606db756dbc223eb2cc642d590e7e7.tar.gz |
- Add new test
-rwxr-xr-x | Zend/tests/bug33710.phpt | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Zend/tests/bug33710.phpt b/Zend/tests/bug33710.phpt new file mode 100755 index 0000000000..15f19eac40 --- /dev/null +++ b/Zend/tests/bug33710.phpt @@ -0,0 +1,32 @@ +--TEST-- +Bug #33710 (ArrayAccess objects doen'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=== |