PHP 8.5 Breaks Upgrading
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 7.4k
- Forks
- 1.9k
- PR merge metrics
- No merged PRs in 30d
Description
According to this report https://github.com/nextcloud/docker/pull/2580#issuecomment-5084361376 upgrading to 34.0.1 and above fails.
I get this error :
2026-08-15T10:06:35.880063355Z Warning: Failed loading Zend extension 'opcache' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20250925/opcache (/usr/local/lib/php/extensions/no-debug-non-zts-20250925/opcache: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20250925/opcache.so (/usr/local/lib/php/extensions/no-debug-non-zts-20250925/opcache.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
2026-08-15T10:06:35.880070705Z 34.0.2.1) is higher than the docker image version (
2026-08-15T10:06:35.880075602Z Warning: Failed loading Zend extension 'opcache' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20250925/opcache (/usr/local/lib/php/extensions/no-debug-non-zts-20250925/opcache: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20250925/opcache.so (/usr/local/lib/php/extensions/no-debug-non-zts-20250925/opcache.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
2026-08-15T10:06:35.880081913Z 34.0.3.2) and downgrading is not supported. Are you sure you have pulled the newest image version?
As mentioned here I tested the 34.0.3 version but this issue still persists
when we downgrade the base image from php 8.5 to 8.4 the problem goes away
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 with the linked report and pull request, then inspect the Docker image's PHP base-image and extension configuration while comparing PHP 8.4 with 8.5. Reproduce the upgrade from 34.0.1 or later; done means the image upgrades successfully without the opcache loading warning or an incorrect version check.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, php
- Domain
- devops, infrastructure
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 58/100