]> granicus.if.org Git - php/commit
Convert SPL illegal offset type into TypeError
authorNikita Popov <nikita.ppv@gmail.com>
Mon, 3 Aug 2020 09:16:59 +0000 (11:16 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Mon, 3 Aug 2020 09:17:49 +0000 (11:17 +0200)
commit7a4b594c6f040d012f7606ddd8fe378d4b01bc37
tree1c3d410bd5be7a7a79f2e21f7e1b3bf4c76b5069
parente1f55de8b94d6f4fe1da3d88134414ab49eb43f8
Convert SPL illegal offset type into TypeError

Make this consistent with the corresponding engine behavior.
Also adjust the messages to match.
ext/spl/spl_array.c
ext/spl/tests/ArrayObject_illegal_offset.phpt [new file with mode: 0644]
ext/spl/tests/ArrayObject_illegal_offset_leak.phpt [deleted file]