From f51e1c20642590847a83f9a3a20b220a83bdea11 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Thu, 7 Jul 2005 16:09:55 +0000 Subject: [PATCH] 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. --- tests/classes/array_access_001.phpt | 4 ++++ tests/classes/array_access_002.phpt | 4 ++++ 2 files changed, 8 insertions(+) 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) -- 2.50.1