Test: /ext/standard/tests/array/array_key_exists_object2.phpt - Version 7.1.16-dev    

There is 1 diff reported by users for this test.

Count Diff
2 (100%)
005+
006+ Fatal error: Uncaught TypeError: Argument 2 passed to array_key_exists() must be of the type array, object given in %s/array_key_exists_object2.php:31
007+ Stack trace:
008+ #0 %s/array_key_exists_object2.php(31): array_key_exists('var1', Object(myClass))
009+ #1 {main}
010+ thrown in %s/array_key_exists_object2.php on line 31
005- bool(true)
006- $key = var2:
007- bool(false)
008- $key = var3:
009- bool(false)
010- $class1:
011- object(myClass)#1 (3) {
012- [%b|u%"var1"]=>
013- %unicode|string%(1) "a"
014- [%b|u%"var2":protected]=>
015- %unicode|string%(1) "b"
016- [%b|u%"var3":%b|u%"myClass":private]=>
017- NULL
018- }
019-
020- -- Assign a value to $class2->var3 --
021- $key = var3:
022- bool(false)
023- $class2:
024- object(myClass)#2 (3) {
025- [%b|u%"var1"]=>
026- %unicode|string%(1) "x"
027- [%b|u%"var2":protected]=>
028- %unicode|string%(1) "y"
029- [%b|u%"var3":%b|u%"myClass":private]=>
030- %unicode|string%(1) "z"
031- }
032- Done