Skip to content

Commit 9ad63b1

Browse files
committed
Address review comments about missing empty FCC assignment
1 parent b3065b3 commit 9ad63b1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ext/curl/multi.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,7 @@ static bool _php_curl_multi_setopt(php_curlm *mh, zend_long option, zval *zvalue
446446
/* See php_curl_set_callable_handler */
447447
if (ZEND_FCC_INITIALIZED(mh->handlers.server_push)) {
448448
zend_fcc_dtor(&mh->handlers.server_push);
449+
mh->handlers.server_push = empty_fcall_info_cache;
449450
}
450451

451452
char *error_str = NULL;
@@ -543,6 +544,7 @@ static void curl_multi_free_obj(zend_object *object)
543544

544545
if (ZEND_FCC_INITIALIZED(mh->handlers.server_push)) {
545546
zend_fcc_dtor(&mh->handlers.server_push);
547+
mh->handlers.server_push = empty_fcall_info_cache;
546548
}
547549

548550
zend_object_std_dtor(&mh->std);

0 commit comments

Comments
 (0)