|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-07-31 10:04 UTC] robert dot de dot wilde at online dot nl
[2010-12-01 15:32 UTC] jani@php.net
-Package: *Programming Data Structures
+Package: Class/Object related
[2017-03-11 17:49 UTC] nikic@php.net
-Status: Open
+Status: Wont fix
[2017-03-11 17:49 UTC] nikic@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 02:00:01 2025 UTC |
Description: ------------ Sometimes it would be usefull to be able to define namespace relative to the current namespace content, for example in case of includes/requires where the same .skel is used over and over. See test script. Test script: --------------- // global file namespace MyNS\Usr\Models { require_once('MadMans\class.MadMansModel.php'); print_r( new MadMan\MadMansModel() /* which refers to MyNs\Usr\Models\MadMan\MadMansModel */ ); } // required file namespace .\MadMan { class MadMansModel { // .. } }