note 111634 added to language.namespaces.importing

From: Date: Mon, 11 Mar 2013 00:59:13 +0000
Subject: note 111634 added to language.namespaces.importing
Groups: php.notes 
Request: Send a blank email to php-notes+get-194022@lists.php.net to get a copy of this message
Something that is not immediately obvious, particular with PHP 5.3, is that namespace resolutions within an import are not resolved recursively. i.e.: if you alias an import and then use that alias in another import then this latter import will not be fully resolved with the former import. For example: use \Controllers as C; use C\First; use C\Last; Both the First and Last namespaces are NOT resolved as \Controllers\First or \Controllers\Last as one might intend. ---- Server IP: 69.147.83.199 Probable Submitter: 115.70.179.114 ---- Manual Page -- http://php.net/manual/en/language.namespaces.importing.php Edit -- https://master.php.net/note/edit/111634 Del: integrated -- https://master.php.net/note/delete/111634/integrated Del: useless -- https://master.php.net/note/delete/111634/useless Del: bad code -- https://master.php.net/note/delete/111634/bad+code Del: spam -- https://master.php.net/note/delete/111634/spam Del: non-english -- https://master.php.net/note/delete/111634/non-english Del: in docs -- https://master.php.net/note/delete/111634/in+docs Del: other reasons-- https://master.php.net/note/delete/111634 Reject -- https://master.php.net/note/reject/111634 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#194022) next »