|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2020-04-14 16:29 UTC] requinix@php.net
-Status: Open
+Status: Feedback
[2020-04-14 16:29 UTC] requinix@php.net
[2020-04-14 16:57 UTC] nikic@php.net
-Status: Feedback
+Status: Not a bug
[2020-04-14 16:57 UTC] nikic@php.net
[2020-04-14 20:04 UTC] ahwelp at universo dot univates dot br
[2020-04-14 20:12 UTC] nikic@php.net
[2020-04-14 20:44 UTC] ahwelp at universo dot univates dot br
[2020-04-15 08:50 UTC] cmb@php.net
[2020-04-15 08:50 UTC] phpdocbot@php.net
[2020-04-15 08:50 UTC] phpdocbot@php.net
-Status: Not a bug
+Status: Closed
[2020-04-15 08:50 UTC] cmb@php.net
-Type: Bug
+Type: Documentation Problem
-Assigned To:
+Assigned To: cmb
[2020-04-15 21:26 UTC] mumumu@php.net
[2020-04-15 21:30 UTC] phpdocbot@php.net
[2020-12-30 11:59 UTC] nikic@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 04 19:00:02 2025 UTC |
Description: ------------ The function get_declared_classes() should return the loaded classes in the order they were defined. When a PSR-4 package is required and one class is extended on the local code, the child class is registered before the parent. In PHP7.3 the parent is registered before the child. In PHP7.4x the child is registered before the parent Test script: --------------- #composer require jasonlewis/menu dev-master #Small package, good for testing <?php include 'vendor/autoload.php'; use JasonLewis\Menu\HtmlBuilder; class BootstrapBuilder extends HtmlBuilder{} var_dump(print_r(get_declared_classes(), true)); Expected result: ---------------- Execution on PHP 7.3 string(4086) "Array ( [0] => stdClass [1] => Exception [2] => ErrorException [3] => Error ..... [137] => ComposerAutoloaderInitca7fe8d0414cd934e64e09ae5654bee8 [138] => Composer\Autoload\ClassLoader [139] => Composer\Autoload\ComposerStaticInitca7fe8d0414cd934e64e09ae5654bee8 [140] => JasonLewis\Menu\HtmlBuilder [141] => BootstrapBuilder ) Actual result: -------------- Execution on PHP 7.4 string(4146) "Array ( [0] => stdClass [1] => Exception [2] => ErrorException ...... [138] => ZipArchive [139] => BootstrapBuilder [140] => ComposerAutoloaderInitca7fe8d0414cd934e64e09ae5654bee8 [141] => Composer\Autoload\ClassLoader [142] => Composer\Autoload\ComposerStaticInitca7fe8d0414cd934e64e09ae5654bee8 [143] => JasonLewis\Menu\HtmlBuilder )