[php-src] master: Zend/lazy_objects: drop variable which is used once
| From: | Gina Peter Banyard | Date: | Wed, 30 Sep 2026 14:44:10 +0000 |
| Subject: | [php-src] master: Zend/lazy_objects: drop variable which is used once | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-141785@lists.php.net to get a copy of this message | ||
Author: Gina Peter Banyard (Girgias)
Date: 2026-09-30T15:44:06+01:00
Commit: https://github.com/php/php-src/commit/0ce595a7ec791111429bb9bf230318b112e8ff6f
Raw diff: https://github.com/php/php-src/commit/0ce595a7ec791111429bb9bf230318b112e8ff6f.diff
Zend/lazy_objects: drop variable which is used once
Changed paths:
M Zend/zend_lazy_objects.c
Diff:
diff --git a/Zend/zend_lazy_objects.c b/Zend/zend_lazy_objects.c
index 368cc6bf78b6..3e5196c22bc6 100644
--- a/Zend/zend_lazy_objects.c
+++ b/Zend/zend_lazy_objects.c
@@ -512,7 +512,6 @@ static zend_object *zend_lazy_object_init_proxy(zend_object *obj)
/* Call factory */
zval retval;
- int argc = 1;
zval zobj;
HashTable *named_params = NULL;
zend_fcall_info_cache *initializer = &info->u.initializer.fcc;
@@ -520,7 +519,7 @@ static zend_object *zend_lazy_object_init_proxy(zend_object *obj)
ZVAL_OBJ(&zobj, obj);
- zend_call_known_fcc(initializer, &retval, argc, &zobj, named_params);
+ zend_call_known_fcc(initializer, &retval, 1, &zobj, named_params);
if (UNEXPECTED(EG(exception))) {
goto fail;
@@ -667,14 +666,13 @@ ZEND_API zend_object *zend_lazy_object_init(zend_object *obj)
/* Call initializer */
zval retval;
- int argc = 1;
zval zobj;
HashTable *named_params = NULL;
zend_object *instance = NULL;
ZVAL_OBJ(&zobj, obj);
- zend_call_known_fcc(initializer, &retval, argc, &zobj, named_params);
+ zend_call_known_fcc(initializer, &retval, 1, &zobj, named_params);
if (EG(exception)) {
zend_lazy_object_revert_init(obj, properties_table_snapshot, properties_snapshot);