|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2019-06-04 17:53 UTC] mbiebl at messageconcept dot com
Description: ------------ I have a php application (which I unfortunately can't share) which uses phpfastcache 7.* from https://www.phpfastcache.com/ (via composer) After the update from 7.2.18 to 7.2.19, the application is broken an I get the following error in the php log: [04-Jun-2019 17:43:55 UTC] PHP Fatal error: Uncaught Error: Class 'Phpfastcache\Config\Config' not found in C:\src\localhost\server.php:104 Stack trace: #0 {main} thrown in C:\src\localhost\server.php on line 104 The class exists at vendor/phpfastcache/phpfastcache/lib/Phpfastcache/Config/Config.php and downgrading back to 7.2.18 makes the application work again flawlessly. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 01:00:01 2025 UTC |
We're having the same issue with symfony on Ubuntu 18.04.2 after upgrading from 7.2.18 to 7.2.19 PHP 7.2.19-1+ubuntu18.04.1+deb.sury.org+1 (fpm-fcgi) (built: May 31 2019 11:17:15) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies with Zend OPcache v7.2.19-1+ubuntu18.04.1+deb.sury.org+1, Copyright (c) 1999-2018, by Zend Technologies It does not directly relate to Phpfastcache but can be any random class/file in the frameworkWe managed to find a way to reproduce. We use nginx + php-fpm 7.2.19 with the patch supplied from dmitry@php.net Step to reproduce Create the following files: test.php ---------- <?php ini_set('opcache.enable', 0); require_once 'include.php'; echo 'done'; ---------- test2.php ---------- <?php require_once 'include.php'; echo 'done'; ---------- include.php ---------- <?php echo 'included'; ---------- 1. Request test.php 2. Request test2.php 3. Request test.php Final test.php request will break. We also tried this with require instead of require_once but this did NOT break. Hope this helps you fix this bug. If we need to retest with a certain patch in place let me know.Just curious: In my case, there is no explicit `ini_set('opcache.enable', 0);` anywhere in the code so I wonder if this really fixes my original issue. Are there other mechanisms which implicitly disable opcache during runtime? Anyway, I'm happy to test it once a (daily) build is available with this commit.