Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:20960 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 9184 invoked by uid 1010); 1 Dec 2005 16:32:43 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 9169 invoked from network); 1 Dec 2005 16:32:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Dec 2005 16:32:43 -0000 X-Host-Fingerprint: 64.253.207.194 miami194.us.univision.com Received: from ([64.253.207.194:25128] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id FE/F6-14828-BA52F834 for ; Thu, 01 Dec 2005 11:32:43 -0500 Message-ID: To: internals@lists.php.net Date: Thu, 1 Dec 2005 11:32:38 -0500 Lines: 52 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1506 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 X-Posted-By: 64.253.207.194 Subject: phpnamespaces.org! From: jrhernandez05@gmail.com ("Jessie Hernandez") Thanks to several people, the phpnamespaces.org site is up and contains the latest namespace patch, pre-patched tarballs and Win32 zip, example scripts, and links to namespace-related news! If you are interested in seeing namespaces in PHP, or are curious to see the progress of this development, then please visit http://www.phpnamespaces.org. You are encouraged to join the mailing list to keep up-to-date and to post any questions/feedback on the current patch. Soon a detailed explanation on the internals of the patch will be added along with documentation for its new features. The idea for the site was not mine, but several people have contributed their time, effort, and resources to make this happen. Special thanks goes out to Hans, Ian, and Tony for obtaining the domain name, server, and adding the initial content. Regarding the latest version of the patch, there are several items I'd like to get feedback on so as to finish the patch (mostly scoping/resolution): 1) Importing of namespace constants (it looks like this was present in one of the PHP 5.0 betas, so I'm working on adding this). 2) How will symbols be resolved inside namespaces? If a class "A" exists in namespace "N", and a global class "A" also exists, then by referencing "A", what should happen? Should the namespaced "A" be used? If so, then the global "A" cannot be accessed from the namespace. Is this OK? These rules would need to be the same and affects the following contexts: - Extends: class B extends A{} - Type hints for functions/methods inside the namespace - Method/function bodies inside a namespace 3) If a symbol is imported (having an alias or not) and there is a global symbol that has that same name, what is the correct behavior? Should the global symbol be ignored? Should an error occur? Should the global take precedence? 4) For now the patch uses the ":::" separator. ":" cannot be used, as it conflicts with the ternary (EVEN if we only leave classes inside namespaces) and "::" causes ambiguity. The separator is now in a #define, so if worst comes to worst and ":::" cannot be used/is not desired, then the change to "\" will be easy. I'll post any additional issues as I encounter them. Regards, Jessie Hernandez