ID:               43665
 Updated by:       [EMAIL PROTECTED]
 Reported By:      lars at strojny dot net
-Status:           Open
+Status:           Bogus
 Bug Type:         Scripting Engine problem
 Operating System: Gentoo Linux (irrelevant)
 PHP Version:      5.3CVS-2007-12-24 (snap)
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

'Impl' is a random string, reflection has no clue where it comes from
and which namespaces might be involved. Please use the full name or
__NAMESPACE__ constant.


Previous Comments:
------------------------------------------------------------------------

[2007-12-24 00:27:29] lars at strojny dot net

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


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=43665&edit=1

Reply via email to