[php-src] master: Zend: use bool type for call_via_handler variable

From: Date: Fri, 31 Jul 2026 12:56:38 +0000
Subject: [php-src] master: Zend: use bool type for call_via_handler variable
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-140368@lists.php.net to get a copy of this message
Author: Gina Peter Banyard (Girgias) Date: 2026-07-31T13:56:30+01:00 Commit: https://github.com/php/php-src/commit/c309ad8124221c17f171a4b98c3259ee86dca39e Raw diff: https://github.com/php/php-src/commit/c309ad8124221c17f171a4b98c3259ee86dca39e.diff Zend: use bool type for call_via_handler variable Changed paths: M Zend/zend_API.c Diff: diff --git a/Zend/zend_API.c b/Zend/zend_API.c index 261c74eac39d..4c38b5447fbe 100644 --- a/Zend/zend_API.c +++ b/Zend/zend_API.c @@ -3827,7 +3827,7 @@ static zend_always_inline bool zend_is_string_callable(zend_string *callable, co const char *colon; size_t clen; HashTable *ftable; - int call_via_handler = 0; + bool call_via_handler = false; zend_class_entry *scope; zval *zv; @@ -3959,7 +3959,7 @@ static zend_always_inline bool zend_is_string_callable(zend_string *callable, co if (fcc->object && fcc->calling_scope == ce_org) { if (strict_class && ce_org->__call) { fcc->function_handler = zend_get_call_trampoline_func(ce_org->__call, mname); - call_via_handler = 1; + call_via_handler = true; retval = true; } else { fcc->function_handler = fcc->object->handlers->get_method(&fcc->object, mname, NULL);

« previous php.cvs (#140368) next »