]> granicus.if.org Git - php/commit
Remove leftover ZEND_CAST code for (unset) cast.
authorTyson Andre <tysonandre775@hotmail.com>
Mon, 30 Dec 2019 16:37:06 +0000 (11:37 -0500)
committerTyson Andre <tysonandre775@hotmail.com>
Sat, 18 Jan 2020 16:06:19 +0000 (11:06 -0500)
commit3c72105edb1a87f39381a64a7d72d312d8878210
tree66b475cea2f7b9f77e2807ad0e1e5537cdecefb6
parentd1764ca33018f1f2e4a05926c879c67ad4aa8da5
Remove leftover ZEND_CAST code for (unset) cast.

Followup for d74d3922ce6f9ea07c1226b0cb2a94fc333f7a02

Attempting to require a file with (unset) casts results in an E_COMPILE_ERROR
that can't be caught or handled by set_exception_handler/set_error_handler.

Also remove the (bool) cast, because the ZEND_BOOL opcode handles that.

Remove inference that array -> object cast can throw.
It was added in 2a286ad5991 - I don't know how creating an stdClass would throw.
(numeric keys, references, etc. don't cause it to throw)

Closes GH-5042
Zend/zend_vm_def.h
Zend/zend_vm_execute.h
ext/opcache/Optimizer/zend_inference.c