. Fixed bug #76480 (Use curl_multi_wait() so that timeouts are respected).
(Pierrick)
. Implemented FR #77711 (CURLFile should support UNICODE filenames). (cmb)
+ . Deprecated CURLPIPE_HTTP1. (cmb)
- Date:
. Fixed bug #75232 (print_r of DateTime creating side-effect). (Nikita)
- Curl:
. Attempting to serialize a CURLFile class will now generate an exception.
Previously the exception was only thrown on unserialization.
+ . Using CURLPIPE_HTTP1 is deprecated, and is no longer supported as of cURL
+ 7.62.0.
- Date:
. Calling var_dump() or similar on a DateTime(Immutable) instance will no
case CURLMOPT_MAX_PIPELINE_LENGTH:
case CURLMOPT_MAX_TOTAL_CONNECTIONS:
#endif
- error = curl_multi_setopt(mh->multi, option, zval_get_long(zvalue));
+ {
+ zend_long lval = zval_get_long(zvalue);
+
+ if (option == CURLMOPT_PIPELINING && (lval & 1)) {
+#if LIBCURL_VERSION_NUM >= 0x073e00 /* 7.62.0 */
+ php_error_docref(NULL, E_WARNING, "CURLPIPE_HTTP1 is no longer supported");
+#else
+ php_error_docref(NULL, E_DEPRECATED, "CURLPIPE_HTTP1 is deprecated");
+#endif
+ }
+ error = curl_multi_setopt(mh->multi, option, lval);
break;
+ }
#if LIBCURL_VERSION_NUM > 0x072D00 /* Available since 7.45.0 */
case CURLMOPT_PUSHFUNCTION:
if (mh->handlers->server_push == NULL) {