note 113581 added to function.class-exists

From: Date: Thu, 31 Oct 2013 17:28:41 +0000
Subject: note 113581 added to function.class-exists
Groups: php.notes 
Request: Send a blank email to php-notes+get-197372@lists.php.net to get a copy of this message
If you are using aliasing to import namespaced classes, take care that class_exists will not work using the short, aliased class name - apparently whenever a class name is used as string, only the full-namespace version can be used use a\namespaced\classname as coolclass; class_exists( 'coolclass' ) => false ---- Server IP: 72.52.91.14 Probable Submitter: 72.52.91.14 ---- Manual Page -- http://php.net/manual/en/function.class-exists.php Edit -- https://master.php.net/note/edit/113581 Del: integrated -- https://master.php.net/note/delete/113581/integrated Del: useless -- https://master.php.net/note/delete/113581/useless Del: bad code -- https://master.php.net/note/delete/113581/bad+code Del: spam -- https://master.php.net/note/delete/113581/spam Del: non-english -- https://master.php.net/note/delete/113581/non-english Del: in docs -- https://master.php.net/note/delete/113581/in+docs Del: other reasons-- https://master.php.net/note/delete/113581 Reject -- https://master.php.net/note/reject/113581 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#197372) next »