ext/curl: Various minor clean-up refactorings (#18042)

This commit is contained in:
Gina Peter Banyard 2025-03-15 18:14:33 +00:00 committed by GitHub
parent c5f6a8b0a2
commit d8e7f362dd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 8 additions and 17 deletions

View file

@ -403,7 +403,7 @@ static int _php_server_push_callback(CURL *parent_ch, CURL *easy, size_t num_hea
php_curl *ch;
php_curl *parent;
php_curlm *mh = (php_curlm *)userp;
size_t rval = CURL_PUSH_DENY;
int rval = CURL_PUSH_DENY;
zval *pz_parent_ch = NULL;
zval pz_ch;
zval headers;
@ -524,11 +524,7 @@ PHP_FUNCTION(curl_multi_setopt)
mh = Z_CURL_MULTI_P(z_mh);
if (_php_curl_multi_setopt(mh, options, zvalue, return_value)) {
RETURN_TRUE;
} else {
RETURN_FALSE;
}
RETURN_BOOL(_php_curl_multi_setopt(mh, options, zvalue, return_value));
}
/* }}} */