|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-07-12 12:30 UTC] ab@php.net
[2013-07-12 13:00 UTC] nikic@php.net
-Status: Open
+Status: Wont fix
[2013-07-12 13:00 UTC] nikic@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 09:00:02 2025 UTC |
Description: ------------ namespace mynamespace; use Symfony\Component\Validator\Constraints as Assert; class myClass { function classExists($name == 'NotBlank') { return function_exists('Assert\\' . $name) } function classExistsExt($name == 'NotBlank') { return function_exists('Symfony\Component\Validator\Constraints\\' . $name) } } myClass::classExists() // returns false myClass::classExists() // returns true Expected result: ---------------- To fully benefit from namespace importing and "aliasing", I would expect that method to return true when namespace alias is used instead of full/original one.