Skip to content

Commit bac62bf

Browse files
committed
Merge branch 'PHP-8.5'
* PHP-8.5: ext/zip: ZipArchive callback missing zend_release_fcall_info_cache
2 parents 86a15f9 + 3884438 commit bac62bf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ext/zip/php_zip.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3045,6 +3045,7 @@ PHP_METHOD(ZipArchive, registerProgressCallback)
30453045

30463046
/* register */
30473047
if (zip_register_progress_callback_with_state(intern, rate, php_zip_progress_callback, php_zip_progress_callback_free, obj)) {
3048+
zend_release_fcall_info_cache(&fcc);
30483049
RETURN_FALSE;
30493050
}
30503051
zend_fcc_dup(&obj->progress_callback, &fcc);
@@ -3104,6 +3105,7 @@ PHP_METHOD(ZipArchive, registerCancelCallback)
31043105

31053106
/* register */
31063107
if (zip_register_cancel_callback_with_state(intern, php_zip_cancel_callback, php_zip_cancel_callback_free, obj)) {
3108+
zend_release_fcall_info_cache(&fcc);
31073109
RETURN_FALSE;
31083110
}
31093111
zend_fcc_dup(&obj->cancel_callback, &fcc);

0 commit comments

Comments
 (0)