Newsgroups: php.internals,php.internals Path: news.php.net Xref: news.php.net php.internals:31573 php.internals:31574 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 93458 invoked by uid 1010); 14 Aug 2007 23:34:49 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 93427 invoked from network); 14 Aug 2007 23:34:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Aug 2007 23:34:49 -0000 Authentication-Results: pb1.pair.com header.from=larry@garfieldtech.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=larry@garfieldtech.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain garfieldtech.com from 63.240.77.81 cause and error) X-PHP-List-Original-Sender: larry@garfieldtech.com X-Host-Fingerprint: 63.240.77.81 sccrmhc11.comcast.net NetCache Data OnTap 5.x Received: from [63.240.77.81] ([63.240.77.81:59788] helo=sccrmhc11.comcast.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 80/00-27730-CEB32C64 for ; Tue, 14 Aug 2007 19:34:17 -0400 Received: from earth.ufp (c-71-228-13-89.hsd1.il.comcast.net[71.228.13.89]) by comcast.net (sccrmhc11) with ESMTP id <2007081423330501100lld69e>; Tue, 14 Aug 2007 23:33:05 +0000 Received: from localhost (localhost [127.0.0.1]) by earth.ufp (Postfix) with ESMTP id 1601FD8190 for ; Tue, 14 Aug 2007 18:33:05 -0500 (CDT) Received: from earth.ufp ([127.0.0.1]) by localhost (earth.ufp [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nBFKEytZDQHL for ; Tue, 14 Aug 2007 18:33:04 -0500 (CDT) Received: from vulcan.ufp (vulcan.ufp [192.168.42.4]) by earth.ufp (Postfix) with ESMTP id 7BA67D7C10 for ; Tue, 14 Aug 2007 18:32:54 -0500 (CDT) To: internals@lists.php.net Date: Tue, 14 Aug 2007 18:32:51 -0500 User-Agent: KMail/1.9.6 References: <46BE14B1.5050209@zend.com> <101178402.20070814174515@marcus-boerger.de> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-ID: <200708141832.51898.larry@garfieldtech.com> Subject: Re: [Fwd: Re: [PHP-DEV] Renaming namespaces to packages] From: larry@garfieldtech.com (Larry Garfield) 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