Details
-
Bug
-
Resolution: Fixed
-
Medium
-
5.3.6, 2015.07, 5.4.4
-
PHP >=5.5
Description
Since PHP 5.5, it is possible to use <ClassName>::class for class name resolution, in addition to get_class(), see PHP Manual: OOP Basics -> ::class.
When this is used anywhere in a file parsed by the autoloaders generator, PHP Notices are thrown during autloads generation:
$ php bin/php/ezpgenerateautoloads.php -e Scanning for PHP-files. Scan complete. Found 1525 PHP files. Searching for classes (tokenizing). PHP Notice: Uninitialized string offset: 1 in kernel/private/classes/ezautoloadgenerator.php on line 632 PHP Stack trace: PHP 1. {main}() bin/php/ezpgenerateautoloads.php:0 PHP 2. eZAutoloadGenerator->buildAutoloadArrays() bin/php/ezpgenerateautoloads.php:174 PHP 3. eZAutoloadGenerator->getClassFileList() kernel/private/classes/ezautoloadgenerator.php:192