Bug #78106 [Fbk->Opn]: PHP Fatal error: Uncaught Error: Class 'Phpfastcache\Config\Config' not found

From: Date: Tue, 04 Jun 2019 19:34:51 +0000
Subject: Bug #78106 [Fbk->Opn]: PHP Fatal error: Uncaught Error: Class 'Phpfastcache\Config\Config' not found
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-221122@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=78106&edit=1 ID: 78106 User updated by: mbiebl at messageconcept dot com Reported by: mbiebl at messageconcept dot com Summary: PHP Fatal error: Uncaught Error: Class 'Phpfastcache\Config\Config' not found -Status: Feedback +Status: Open Type: Bug Package: *General Issues Operating System: Windows Server 2016 / IIS 10 PHP Version: 7.2.19 Block user comment: N Private report: N New Comment: As one more data point: 7.3.6 does not seem to be affected Previous Comments: ------------------------------------------------------------------------ [2019-06-04 18:54:29] mbiebl at messageconcept dot com The setup is identical between 7.2.18 and 7.2.19. The application is unchanged, php.ini is the same. The PHP version I'm using is the Windows x86 NTS build. IIS uses PHP via FCGI. The application is a CardDAV server built on top of sabre/dav. I tried to create a minimal test case which simply does ``` <?php require_once 'vendor/autoload.php'; $config = new \Phpfastcache\Config\Config(); ``` but this works just fine and doesn't trigger the fatal error, so I'm a bit stuck at providing a minimal test case. What I can do offer to do, is to try test builds. Unfortunately I don't have the toolchain to build those windows binaries myself, but if you can provide such binaries, we could do a git bisect run this way. Other then that, I'd be glad to provide you with more information or try any debugging steps. Just let me know. ------------------------------------------------------------------------ [2019-06-04 18:14:01] requinix@php.net I don't see anything in the 7.2.19 changelog that looks relevant, and it's going to be hard to reproduce and test without being able to see it happening... How much debugging have you done? Is the autoloader running? Can it locate the class/file? What happens if you require() the file manually? Does the 7.2.19 setup exactly match the 7.2.18 setup? What else is changing besides the version of PHP? ------------------------------------------------------------------------ [2019-06-04 18:08:49] mbiebl at messageconcept dot com Unfortunately I don't have a short reproducer script aside from the application itself ------------------------------------------------------------------------ [2019-06-04 18:04:03] krakjoe@php.net Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with <?php and ends with ?>, is max. 10-20 lines long and does not require any external resources such as databases, etc. If the script requires a database to demonstrate the issue, please make sure it creates all necessary tables, stored procedures etc. Please avoid embedding huge scripts into the report. ------------------------------------------------------------------------ [2019-06-04 17:53:11] 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. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=78106&edit=1

« previous php.bugs (#221122) next »