projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
use heap instead of stack
[m6w6/ext-http]
/
http_request_info.c
diff --git
a/http_request_info.c
b/http_request_info.c
index 33694e716c8b08617f2644a60a39ec7e53afbe6c..809512ade05d1ed6510a4f66679513b38c94fc37 100644
(file)
--- a/
http_request_info.c
+++ b/
http_request_info.c
@@
-6,7
+6,7
@@
| modification, are permitted provided that the conditions mentioned |
| in the accompanying LICENSE file are met. |
+--------------------------------------------------------------------+
| modification, are permitted provided that the conditions mentioned |
| in the accompanying LICENSE file are met. |
+--------------------------------------------------------------------+
- | Copyright (c) 2004-20
07
, Michael Wallner <mike@php.net> |
+ | Copyright (c) 2004-20
10
, Michael Wallner <mike@php.net> |
+--------------------------------------------------------------------+
*/
+--------------------------------------------------------------------+
*/
@@
-143,6
+143,11
@@
PHP_HTTP_API void _http_request_info(http_request *request, HashTable *info)
add_assoc_double_ex(&array, "appconnect_time", sizeof("appconnect_time"), d);
}
#endif
add_assoc_double_ex(&array, "appconnect_time", sizeof("appconnect_time"), d);
}
#endif
+#if HTTP_CURL_VERSION(7,19,4)
+ if (CURLE_OK == curl_easy_getinfo(request->ch, CURLINFO_CONDITION_UNMET, &l)) {
+ add_assoc_long_ex(&array, "condition_unmet", sizeof("condition_unmet"), l);
+ }
+#endif
/* END */
#if HTTP_CURL_VERSION(7,19,1) && defined(HTTP_HAVE_OPENSSL)
{
/* END */
#if HTTP_CURL_VERSION(7,19,1) && defined(HTTP_HAVE_OPENSSL)
{
@@
-172,7
+177,6
@@
PHP_HTTP_API void _http_request_info(http_request *request, HashTable *info)
}
}
add_next_index_zval(ci_array, subarray);
}
}
add_next_index_zval(ci_array, subarray);
- curl_slist_free_all(s);
}
add_assoc_zval_ex(&array, "certinfo", sizeof("certinfo"), ci_array);
}
}
add_assoc_zval_ex(&array, "certinfo", sizeof("certinfo"), ci_array);
}