summaryrefslogtreecommitdiff
path: root/ext/curl/interface.c
diff options
context:
space:
mode:
authorMáté Kocsis <kocsismate@woohoolabs.com>2020-06-18 09:26:58 +0200
committerMáté Kocsis <kocsismate@woohoolabs.com>2020-06-18 13:26:32 +0200
commita43fd3bbef313c880b8acbeac7babef074471e31 (patch)
tree81e05f9b90511f6fe42d9638cd2166568d89c58e /ext/curl/interface.c
parent20664d602389c09ce42ad03d4a6e071d32c0f329 (diff)
downloadphp-git-a43fd3bbef313c880b8acbeac7babef074471e31.tar.gz
Remove the deprecated parameter of curl_version()
Diffstat (limited to 'ext/curl/interface.c')
-rw-r--r--ext/curl/interface.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/ext/curl/interface.c b/ext/curl/interface.c
index bdc284b4ab..7e9cbf2fdf 100644
--- a/ext/curl/interface.c
+++ b/ext/curl/interface.c
@@ -1689,23 +1689,13 @@ static void curl_free_slist(zval *el)
}
/* }}} */
-/* {{{ proto array curl_version([int version])
+/* {{{ proto array curl_version()
Return cURL version information. */
PHP_FUNCTION(curl_version)
{
curl_version_info_data *d;
- zend_long uversion = -1;
- ZEND_PARSE_PARAMETERS_START(0, 1)
- Z_PARAM_OPTIONAL
- Z_PARAM_LONG(uversion)
- ZEND_PARSE_PARAMETERS_END();
-
- if (uversion == CURLVERSION_NOW) {
- php_error_docref(NULL, E_DEPRECATED, "The $version parameter is deprecated");
- } else if (ZEND_NUM_ARGS() > 0) {
- php_error_docref(NULL, E_WARNING, "$version argument ignored");
- }
+ ZEND_PARSE_PARAMETERS_NONE();
d = curl_version_info(CURLVERSION_NOW);
if (d == NULL) {