[Bug]: Function curl_close() is deprecated since 8.5
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 51
- Forks
- 40
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 3
Description
⚠️ This issue respects the following points: ⚠️
- This is not a troubleshooting question, general support matter, or webserver/proxy problem, but likely a bug (if unsure, ask the Community Help Forum).
- This issue is not already reported on Github OR solved at the Community Help Forum (I've searched!).
- I'm using a maintained major version of Nextcloud Server and tested against the latest patch level. (Supported major versions and current patch levels).
- I agree to follow Nextcloud's Code of Conduct.
- I've tried my best to provide clear reproduction steps that someone unfamiliar with this bug could use to reproduce it.
Bug description
When running updater.phar via CLI on server with PHP 8.5, updater returns the same error multiple times:
PHP Deprecated: Function curl_close() is deprecated since 8.5, as it has no effect since PHP 8.0 in .../updater/updater.phar/lib/Updater.php
Steps to reproduce
1.Run updater.phar via command line on PHP 8.5
Expected behavior
No PHP errors
Nextcloud Server version
34
Operating system
RHEL/CentOS
PHP engine version
PHP 8.5
Web server
Apache (supported)
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Updated from a MINOR version (ex. 32.0.1 to 32.0.2)
Are you using the Nextcloud Server Encryption module?
Encryption is Enabled
What user-backends are you using?
- Default user-backend (database)
- LDAP/ Active Directory
- SSO - SAML
- Other
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in updater.phar/lib/Updater.php, where the PHP 8.5 deprecation is reported when running the updater from the command line. Reproduce the issue with PHP 8.5 and inspect the curl handling there. Done means the updater completes without repeated curl_close() deprecation errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- cli, devops
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Active
- Clarity
- Clearly specified
- Newbie friendliness
- 78/100