We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33097bc commit 9d4465eCopy full SHA for 9d4465e
ext/curl/multi.c
@@ -369,8 +369,9 @@ void _php_curl_multi_close(zend_resource *rsrc) /* {{{ */
369
pz_ch = (zval *)zend_llist_get_next_ex(&mh->easyh, &pos)) {
370
/* ptr is NULL means it already be freed */
371
if (Z_RES_P(pz_ch)->ptr) {
372
- ch = (php_curl *) zend_fetch_resource(Z_RES_P(pz_ch), le_curl_name, le_curl);
373
- _php_curl_verify_handlers(ch, 0);
+ if ((ch = (php_curl *) zend_fetch_resource(Z_RES_P(pz_ch), le_curl_name, le_curl))) {
+ _php_curl_verify_handlers(ch, 0);
374
+ }
375
}
376
377
0 commit comments