]> granicus.if.org Git - php/commit
Make cast_object handler required
authorNikita Popov <nikita.ppv@gmail.com>
Tue, 31 Mar 2020 10:17:32 +0000 (12:17 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Tue, 31 Mar 2020 12:37:49 +0000 (14:37 +0200)
commit8fd7f02ea4cd595a792ef37e558d357d97bceefa
treea4684263d41cf407f5cffb725fe319bbc05da75c
parent36935e42eac054a422b7edade69923db7727f268
Make cast_object handler required

Avoid subtle differences in behavior depending on whether the
handler is absent or returns FAILURE.

If you previously set cast_object to NULL, create a handler that
always returns FAILURE instead.
UPGRADING.INTERNALS
Zend/zend_API.c
Zend/zend_builtin_functions.c
Zend/zend_object_handlers.c
Zend/zend_object_handlers.h
Zend/zend_operators.c
ext/ffi/ffi.c
ext/intl/collator/collator_convert.c