Bug #78329 [Opn]: Autoloading broken with 7.4.0beta1

From: Date: Wed, 24 Jul 2019 11:09:48 +0000
Subject: Bug #78329 [Opn]: Autoloading broken with 7.4.0beta1
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-221923@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=78329&edit=1 ID: 78329 Updated by: nikic@php.net Reported by: remi@php.net Summary: Autoloading broken with 7.4.0beta1 Status: Open Type: Bug Package: opcache Operating System: GNU/Linux PHP Version: 7.4.0alpha3 Block user comment: N Private report: N New Comment: I still can't reproduce this, at least with 7.4 HEAD. All requests are successful, and I double checked that opcache is working with opcache_get_status(). Previous Comments: ------------------------------------------------------------------------ [2019-07-24 11:05:53] remi@php.net Using command line server <?php echo "Debug...."; require_once "/usr/share/php/Fedora/Autoloader/autoload.php"; echo "done\n"; $ php74 -dopcache.enable_cli=1 -S localhost:8000 And $ wget -q http://localhost:8000/repro.php -O - Debug....done $ wget -q http://localhost:8000/repro.php -O - (no output) From serveur output [Wed Jul 24 13:03:06 2019] PHP 7.4.0beta1 Development Server (http://localhost:8000) started [Wed Jul 24 13:03:13 2019] 127.0.0.1:38800 Accepted [Wed Jul 24 13:03:13 2019] 127.0.0.1:38800 [200]: GET /repro.php [Wed Jul 24 13:03:13 2019] 127.0.0.1:38800 Closing [Wed Jul 24 13:03:14 2019] 127.0.0.1:38802 Accepted [Wed Jul 24 13:03:14 2019] PHP Fatal error: Uncaught Error: Call to undefined method Fedora\Autoloader\Autoload::addPsr4() in /usr/share/php/Fedora/Autoloader/autoload.php:18 Stack trace: #0 /var/www/html/repro.php(4): require_once() #1 {main} thrown in /usr/share/php/Fedora/Autoloader/autoload.php on line 18 ------------------------------------------------------------------------ [2019-07-24 10:27:04] nikic@php.net Is there a way to reproduce this? Just running the autoload.php file under opcache works fine. ------------------------------------------------------------------------ [2019-07-24 07:20:56] remi@php.net Description: ------------ From php-fpm error-log [24-Jul-2019 07:08:52 UTC] PHP Fatal error: Uncaught Error: Call to undefined method Fedora\Autoloader\Autoload::addPsr4() in /usr/share/php/Fedora/Autoloader/autoload.php:18 Stack trace: #0 /usr/share/glpi/vendor/autoload.php(4): require_once() #1 /usr/share/glpi/inc/autoload.function.php(346): require_once('/usr/share/glpi...') #2 /usr/share/glpi/inc/based_config.php(45): include_once('/usr/share/glpi...') #3 /usr/share/glpi/index.php(44): include('/usr/share/glpi...') #4 {main} thrown in /usr/share/php/Fedora/Autoloader/autoload.php on line 18 While this file includes needed stuff. See https://github.com/php-fedora/autoloader Here is the file which doesn't work https://github.com/php-fedora/autoloader/blob/master/src/autoload.php Issue only there when opcache is enabled. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=78329&edit=1

« previous php.bugs (#221923) next »