diff options
author | Dmitry Stogov <dmitry@php.net> | 2005-07-07 16:09:55 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2005-07-07 16:09:55 +0000 |
commit | f51e1c20642590847a83f9a3a20b220a83bdea11 (patch) | |
tree | 337e730a2cbcd41efd436d7f9836f5d5d8e4d9ad /tests | |
parent | 345e0255b5af2d81215c33e107f12df2b3724a92 (diff) | |
download | php-git-f51e1c20642590847a83f9a3a20b220a83bdea11.tar.gz |
Fixed bug #33512 (Add missing support for isset()/unset() overloading to complement the property get/set methods). Now empty($obj[...]) works proper but in addition it may call offsetGet() method.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/classes/array_access_001.phpt | 4 | ||||
-rw-r--r-- | tests/classes/array_access_002.phpt | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/classes/array_access_001.phpt b/tests/classes/array_access_001.phpt index 9b3d8891eb..82f96d5239 100644 --- a/tests/classes/array_access_001.phpt +++ b/tests/classes/array_access_001.phpt @@ -96,12 +96,16 @@ array(4) { } ===EMPTY=== object::offsetExists(0) +object::offsetGet(0) bool(false) object::offsetExists(1) +object::offsetGet(1) bool(false) object::offsetExists(2) +object::offsetGet(2) bool(false) object::offsetExists(4th) +object::offsetGet(4th) bool(false) object::offsetExists(5th) bool(true) diff --git a/tests/classes/array_access_002.phpt b/tests/classes/array_access_002.phpt index 7aebb035a0..fd08eb3946 100644 --- a/tests/classes/array_access_002.phpt +++ b/tests/classes/array_access_002.phpt @@ -96,12 +96,16 @@ array(4) { } ===EMPTY=== object::offsetExists(0) +object::offsetGet(0) bool(false) object::offsetExists(1) +object::offsetGet(1) bool(false) object::offsetExists(2) +object::offsetGet(2) bool(false) object::offsetExists(4th) +object::offsetGet(4th) bool(false) object::offsetExists(5th) bool(true) |