mirror of
https://github.com/php/php-src.git
synced 2024-09-22 18:37:25 +00:00
Fixes bug #46739
This commit is contained in:
parent
a2266a7782
commit
57caba14ea
@ -1870,6 +1870,11 @@ PHP_FUNCTION(curl_getinfo)
|
||||
if (curl_easy_getinfo(ch->cp, CURLINFO_CONTENT_TYPE, &s_code) == CURLE_OK) {
|
||||
if (s_code != NULL) {
|
||||
CAAS("content_type", s_code);
|
||||
} else {
|
||||
zval *retnull;
|
||||
MAKE_STD_ZVAL(retnull);
|
||||
ZVAL_NULL(retnull);
|
||||
CAAZ("content_type", retnull);
|
||||
}
|
||||
}
|
||||
if (curl_easy_getinfo(ch->cp, CURLINFO_HTTP_CODE, &l_code) == CURLE_OK) {
|
||||
|
Loading…
Reference in New Issue
Block a user