|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-12-25 19:12 UTC] johannes@php.net
[2014-06-01 13:12 UTC] salathe@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Fri May 22 11:00:01 2026 UTC |
Description: ------------ ReflectionClass does not respect imported classes. This affects ReflectionClass::__construct(), ReflectionClass::implementsInterface() and ReflectionClass::isSubclassOf(). Reproduce code: --------------- <?php namespace Base; interface IFace {} class Impl implements IFace {} namespace Other; use Base::IFace; use Base::Impl; $reflected = new ReflectionClass('Impl'); Expected result: ---------------- $reflected is an instance of a ReflectionClass for the class Base::Impl Actual result: -------------- ReflectionException: Class Impl does not exist