1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Merge branch 'PHP-8.3' into PHP-8.4

* PHP-8.3:
  Fix more curl 8.16 issues
This commit is contained in:
Ilija Tovilo
2025-09-23 16:22:06 +02:00

View File

@@ -1701,7 +1701,7 @@ static zend_result _php_curl_setopt(php_curl *ch, zend_long option, zval *zvalue
lval = zval_get_long(zvalue);
if (lval == 1) {
php_error_docref(NULL, E_NOTICE, "CURLOPT_SSL_VERIFYHOST no longer accepts the value 1, value 2 will be used instead");
error = curl_easy_setopt(ch->cp, option, 2);
error = curl_easy_setopt(ch->cp, option, 2L);
break;
}
ZEND_FALLTHROUGH;
@@ -2207,7 +2207,7 @@ static zend_result _php_curl_setopt(php_curl *ch, zend_long option, zval *zvalue
case CURLOPT_FOLLOWLOCATION:
lval = zend_is_true(zvalue);
error = curl_easy_setopt(ch->cp, option, lval);
error = curl_easy_setopt(ch->cp, option, (long) lval);
break;
case CURLOPT_POSTFIELDS: