|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-01-28 16:01 UTC] nikic@php.net
-Status: Open
+Status: Not a bug
[2015-01-28 16:01 UTC] nikic@php.net
[2015-01-28 16:40 UTC] bastian dot schneider at commerce-plus dot com
[2015-01-28 20:18 UTC] requinix@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 16 18:00:01 2025 UTC |
Description: ------------ Problem - "TestClass" is not contained in get_declared_classes() Circumstances - the class uses a Trait - get_declared_classes() is called before the declaration of the class Test script: --------------- trait CAS {} // with use CAS = 135 classes // without use CAS = 136 classes var_dump(sizeof(get_declared_classes())); class TestClass { use CAS; } Expected result: ---------------- I would always expect 136 classes Actual result: -------------- 135 classes, TestClass is not contained