note 114286 added to language.namespaces

From: Date: Mon, 03 Feb 2014 05:16:09 +0000
Subject: note 114286 added to language.namespaces
Groups: php.notes 
Request: Send a blank email to php-notes+get-198392@lists.php.net to get a copy of this message
Be warned that it is not trivial to convert a project to use namespaces. If you add the same namespace to the top of all your files, your application will break. All objects in the global namespace, such as ArrayObject, must have a backslash (\) prepend to them. If you use get_class() and instanceof, you will have to make adjustments here to. If you have an autoloader, you will need to change its behavior. It can be done, but subtle errors can creep in and are tedious to rectify. ---- Server IP: 72.52.91.14 Probable Submitter: 72.52.91.14 ---- Manual Page -- http://php.net/manual/en/language.namespaces.php Edit -- https://master.php.net/note/edit/114286 Del: integrated -- https://master.php.net/note/delete/114286/integrated Del: useless -- https://master.php.net/note/delete/114286/useless Del: bad code -- https://master.php.net/note/delete/114286/bad+code Del: spam -- https://master.php.net/note/delete/114286/spam Del: non-english -- https://master.php.net/note/delete/114286/non-english Del: in docs -- https://master.php.net/note/delete/114286/in+docs Del: other reasons-- https://master.php.net/note/delete/114286 Reject -- https://master.php.net/note/reject/114286 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#198392) next »