ITADN

Call to deprecated curl_close

#1324Closedhemberger 创建于 2026-01-16
BugTriage
H
hembergercommented
<!-- DO NOT INCLUDE CONSUMER_SECRET OR ACCESS_TOKEN_SECRET --> The `curl_close` method was deprecated in PHP 8.0. ``` Error Message: ErrorException: Function curl_close() is deprecated since 8.5, as it has no effect since PHP 8.0 in /vendor/abraham/twitteroauth/src/CurlHttpClient.php:75 Stack trace: #0 /vendor/abraham/twitteroauth/src/CurlHttpClient.php(75): exception_error_handler() #1 /vendor/abraham/twitteroauth/src/TwitterOAuth.php(727): Abraham\TwitterOAuth\CurlHttpClient->request() #2 /vendor/abraham/twitteroauth/src/TwitterOAuth.php(641): Abraham\TwitterOAuth\TwitterOAuth->request() #3 /vendor/abraham/twitteroauth/src/TwitterOAuth.php(185): Abraham\TwitterOAuth\TwitterOAuth->oAuthRequest() #4 Abraham\TwitterOAuth\TwitterOAuth->oauth() ``` **Code example** https://github.com/abraham/twitteroauth/blob/763f6b444f98f599df87ac1387cfae7059424ca2/src/CurlHttpClient.php#L70-L75 **Versions:** - TwitterOAuth: v8.1.0 - PHP: v8.5 **Additional context** Previously addressed in https://github.com/abraham/twitteroauth/pull/1305. Thank you!
关闭于 2026-01-18 0 条评论