]> granicus.if.org Git - php/commit
Add check_only parameter to get_closure handler
authorChristoph M. Becker <cmbecker69@gmx.de>
Mon, 23 Sep 2019 21:48:36 +0000 (23:48 +0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Tue, 24 Sep 2019 14:08:42 +0000 (16:08 +0200)
commit0c7124e6beff0a7b0540691db370148be06d242a
treeb37b67cf5a92c16680c837390a20c9ff52731e5e
parent1fe47ad233b45f3313e8942c3190fd5ca03952f0
Add check_only parameter to get_closure handler

`get_closure` handlers are called to check whether an object is
callable, and to actually get the closure, respectively.  The behavior
of the handler might differ for these two cases, particularly the
handler may throw in the latter case, but should not in the former.

Therefore we add a `check_only` parameter, to be able to distinguish
the desired purpose.
Zend/zend_API.c
Zend/zend_closures.c
Zend/zend_execute.c
Zend/zend_object_handlers.c
Zend/zend_object_handlers.h
ext/ffi/ffi.c
ext/reflection/php_reflection.c