]> granicus.if.org Git - php/commit
Use Z_PARAM_OBJ macros when zval isn't needed
authorTyson Andre <tysonandre775@hotmail.com>
Sat, 2 Jan 2021 19:07:45 +0000 (14:07 -0500)
committerTyson Andre <tysonandre775@hotmail.com>
Sat, 2 Jan 2021 21:10:14 +0000 (16:10 -0500)
commitdfb9e03336fed7c4c07fb1a30a8be25cfbf546e4
tree6ada3503f63bc7da91a6a1435264f1a6879775eb
parent64c753e7c823848b55553dee4bdf1a3336fbc0f5
Use Z_PARAM_OBJ macros when zval isn't needed

In some cases, like spl_object_id, the code is simpler but equally efficient
after optimizations.

In other cases, like get_mangled_object_vars(), the compiler can't infer that
the object in the zval won't change.

Closes GH-6567
Zend/zend_builtin_functions.c
Zend/zend_closures.c
Zend/zend_weakrefs.c
ext/spl/php_spl.c