[php-src] Issue #8164: PHP8.1.3. opcache bug with monolog/monolog
| From: | R4c00n | Date: | Wed, 02 Mar 2022 09:59:36 +0000 |
| Subject: | [php-src] Issue #8164: PHP8.1.3. opcache bug with monolog/monolog | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-240100@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/8164
Author: R4c00n
### Description
Using
monolog/monolog on PHP8.1.3 results in some very weird problems with the class
vendor/monolog/monolog/src/Monolog/DateTimeImmutable.php not being found.
There's also already a bugreport in monolog https://github.com/Seldaek/monolog/issues/1626,
but it looks like this is an opcache bug.
Our deployment process looks like this:
- Upload files to server into release directory
- symlink release directory
- reset opcache (opcache_reset)
After that, we get the PHP message: PHP Fatal error: Uncaught Error: Class
"Monolog\DateTimeImmutable" not found in ... error.
Resetting opcache a second time fixes the bug and everything is fine until the next deployment.
### PHP Version
PHP 8.1.3
### Operating System
Debian