@@ -75,30 +75,27 @@ var_dump($object->offsetexists('qux'), isset($object['qux']), empty($object['qux
75
75
echo "==== class with offsetGet() and offsetSet() ==== \n" ;
76
76
$ object = new ArrayObjectGetSet ;
77
77
$ object ['foo ' ] = 42 ;
78
- var_dump ($ object ->offsetExists ('foo ' ), $ object ->offsetExists ('sbb ' ), isset ($ object ['foo ' ]), isset ($ object ['sbb ' ]));
78
+ var_dump ($ object ->offsetExists ('foo ' ), $ object ->offsetExists ('sbb ' ), isset ($ object ['foo ' ]), isset ($ object ['sbb ' ]), empty ( $ object [ ' sbb ' ]) );
79
79
80
80
?>
81
81
--EXPECTF--
82
82
==== class with offsetExists() and offsetGet() ====
83
83
string(37) "Called: ArrayObjectBoth::offsetExists"
84
84
string(37) "Called: ArrayObjectBoth::offsetExists"
85
- string(34) "Called: ArrayObjectBoth::offsetGet"
86
85
string(37) "Called: ArrayObjectBoth::offsetExists"
87
86
string(34) "Called: ArrayObjectBoth::offsetGet"
88
87
bool(true)
89
88
bool(true)
90
89
bool(true)
91
90
string(37) "Called: ArrayObjectBoth::offsetExists"
92
91
string(37) "Called: ArrayObjectBoth::offsetExists"
93
- string(34) "Called: ArrayObjectBoth::offsetGet"
94
92
string(37) "Called: ArrayObjectBoth::offsetExists"
95
93
string(34) "Called: ArrayObjectBoth::offsetGet"
96
94
bool(true)
97
- bool(false )
95
+ bool(true )
98
96
bool(true)
99
97
string(37) "Called: ArrayObjectBoth::offsetExists"
100
98
string(37) "Called: ArrayObjectBoth::offsetExists"
101
- string(34) "Called: ArrayObjectBoth::offsetGet"
102
99
string(37) "Called: ArrayObjectBoth::offsetExists"
103
100
string(34) "Called: ArrayObjectBoth::offsetGet"
104
101
bool(true)
@@ -121,7 +118,7 @@ string(39) "Called: ArrayObjectExists::offsetExists"
121
118
string(39) "Called: ArrayObjectExists::offsetExists"
122
119
string(39) "Called: ArrayObjectExists::offsetExists"
123
120
bool(true)
124
- bool(false )
121
+ bool(true )
125
122
bool(true)
126
123
string(39) "Called: ArrayObjectExists::offsetExists"
127
124
string(39) "Called: ArrayObjectExists::offsetExists"
@@ -137,17 +134,14 @@ bool(false)
137
134
bool(true)
138
135
==== class with offsetGet() ====
139
136
string(33) "Called: ArrayObjectGet::offsetGet"
140
- string(33) "Called: ArrayObjectGet::offsetGet"
141
137
bool(true)
142
138
bool(true)
143
139
bool(true)
144
140
string(33) "Called: ArrayObjectGet::offsetGet"
145
- string(33) "Called: ArrayObjectGet::offsetGet"
146
141
bool(true)
147
142
bool(false)
148
143
bool(true)
149
144
string(33) "Called: ArrayObjectGet::offsetGet"
150
- string(33) "Called: ArrayObjectGet::offsetGet"
151
145
bool(true)
152
146
bool(true)
153
147
bool(false)
@@ -160,4 +154,5 @@ Notice: Undefined index: foo in %s on line %d
160
154
bool(false)
161
155
bool(true)
162
156
bool(false)
163
- bool(false)
157
+ bool(true)
158
+ bool(true)
0 commit comments