Sorting of $classNamesToReflect in the reflection Service might cause PHP error
In the method F3\FLOW3\Reflection\reflectEmergedClasses() the $classNamesToReflect-array is being sorted before it's being traversed.
Thus packages like FLOW3CGL are reflected before the FLOW3 package (i guess that's the reason..). If these "earlier" packages are buggy, they don't run into an exception, but cause a PHP Error:
"PHP Fatal error: Class 'F3\\FLOW3\\Error\\Exception' not found in /var/www/FLOW3/Packages/Local/FLOW3CGL/Classes/Model/MessageQueue.php on line 78"
Updated by Karsten Dambekalns about 12 years ago
While the order of things plays a role here, it's not about the classnames. It's the fact that the FLOW3 exception class has not been loaded, which is something that could probably happen due to a variety of reasons. Thus the possible solution of making sure that class is loaded as early as possible seems still to be error prone.
I'll go for using the builtin PHP exception class in the error handler if the FLOW3 exception is unavailable.