1
0
mirror of https://github.com/php/php-src.git synced 2026-04-28 10:43:30 +02:00
This commit is contained in:
Mikko Koppanen
2008-12-04 13:13:22 +00:00
parent a2266a7782
commit 57caba14ea
+5
View File
@@ -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) {