Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages]

From: Date: Tue, 14 Aug 2007 23:32:51 +0000
Subject: Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages]
References: 1 2 3  Groups: php.internals php.internals 
Request: Send a blank email to internals+get-31574@lists.php.net to get a copy of this message
On Tuesday 14 August 2007, Guilherme Blanco wrote: > Subject: File Struture > Comments: > Namespace do not restrict directories (AFAIK) > Packages restrict directories (each package have a directory with its > name, like Zend/Cache/File.php) > > Question: What is the behavior of PHP in this situation? > PHP restricts the directory, just like packages. So, > Zend/Cache/File.php is the package Zend::Cache and has the class named > File Did I miss something? The [namespace|package] implementation that went in is file-based, but not directory based AFAIK. There's nothing preventing you from having multiple files in a single directory that are in totally different namespaces. -- Larry Garfield AIM: LOLG42 larry@garfieldtech.com ICQ: 6817012 "If nature has made any one thing less susceptible than all others of exclusive property, it is the action of the thinking power called an idea, which an individual may exclusively possess as long as he keeps it to himself; but the moment it is divulged, it forces itself into the possession of every one, and the receiver cannot dispossess himself of it." -- Thomas Jefferson

« previous php.internals (#31574) next »