Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 473ce44

Browse files
Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3: Fix more curl 8.16 issues
2 parents 1302b9f + a885372 commit 473ce44

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎ext/curl/interface.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1701,7 +1701,7 @@ static zend_result _php_curl_setopt(php_curl *ch, zend_long option, zval *zvalue
17011701
lval = zval_get_long(zvalue);
17021702
if (lval == 1) {
17031703
php_error_docref(NULL, E_NOTICE, "CURLOPT_SSL_VERIFYHOST no longer accepts the value 1, value 2 will be used instead");
1704-
error = curl_easy_setopt(ch->cp, option, 2);
1704+
error = curl_easy_setopt(ch->cp, option, 2L);
17051705
break;
17061706
}
17071707
ZEND_FALLTHROUGH;
@@ -2207,7 +2207,7 @@ static zend_result _php_curl_setopt(php_curl *ch, zend_long option, zval *zvalue
22072207

22082208
case CURLOPT_FOLLOWLOCATION:
22092209
lval = zend_is_true(zvalue);
2210-
error = curl_easy_setopt(ch->cp, option, lval);
2210+
error = curl_easy_setopt(ch->cp, option, (long) lval);
22112211
break;
22122212

22132213
case CURLOPT_POSTFIELDS:

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /