Skip to content

Commit d901c38

Browse files
committed
Address review comments
1 parent 2d58a4d commit d901c38

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Zend/zend_closures.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -287,13 +287,13 @@ ZEND_METHOD(Closure, bindTo)
287287
do_closure_bind(return_value, ZEND_THIS, newthis, scope_obj, scope_str);
288288
}
289289

290-
static void zend_copy_parameters_array(uint32_t param_count, HashTable *argument_array) /* {{{ */
290+
static void zend_copy_parameters_array(const uint32_t param_count, HashTable *argument_array) /* {{{ */
291291
{
292-
zval *param_ptr = ZEND_CALL_ARG(EG(current_execute_data), 1);;
292+
zval *param_ptr = ZEND_CALL_ARG(EG(current_execute_data), 1);
293293

294294
ZEND_ASSERT(param_count <= ZEND_CALL_NUM_ARGS(EG(current_execute_data)));
295295

296-
while (param_count-->0) {
296+
for (uint32_t i = 0; i < param_count; i++) {
297297
Z_TRY_ADDREF_P(param_ptr);
298298
zend_hash_next_index_insert_new(argument_array, param_ptr);
299299
param_ptr++;

0 commit comments

Comments
 (0)