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

 ID:                 54091
 Updated by:         [email protected]
 Reported by:        jinmoku at hotmail dot com
 Summary:            class_exists fail with a class name alias
-Status:             Open
+Status:             Bogus
 Type:               Bug
 Package:            Class/Object related
 PHP Version:        5.3.5
 Block user comment: N
 Private report:     N

 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

http://php.net/manual/en/language.namespaces.dynamic.php


Previous Comments:
------------------------------------------------------------------------
[2011-02-24 15:39:51] jinmoku at hotmail dot com

Description:
------------
class_exists fail with a class name alias, ReflectionClass too

Test script:
---------------
use \stdClass as object;

var_dump(new object);

var_dump(class_exists('object'));

Expected result:
----------------
object(stdClass)#1 (0) {

}

bool(true)

Actual result:
--------------
object(stdClass)#1 (0) {

}

bool(false)


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



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

Reply via email to