Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:36821 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 48104 invoked from network); 6 Apr 2008 15:06:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Apr 2008 15:06:59 -0000 Authentication-Results: pb1.pair.com smtp.mail=jr@eenterphace.org; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=jr@eenterphace.org; sender-id=unknown Received-SPF: error (pb1.pair.com: domain eenterphace.org from 212.227.92.30 cause and error) X-PHP-List-Original-Sender: jr@eenterphace.org X-Host-Fingerprint: 212.227.92.30 infiniteloop.trulybinary.com Linux 2.6 Received: from [212.227.92.30] ([212.227.92.30:34085] helo=infiniteloop.trulybinary.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 21/3C-03421-217E8F74 for ; Sun, 06 Apr 2008 11:06:59 -0400 Received: from [10.3.1.1] (p5B2EBBEA.dip0.t-ipconnect.de [91.46.187.234]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by infiniteloop.trulybinary.com (Postfix) with ESMTP id 1FCCC52645; Sun, 6 Apr 2008 17:06:55 +0200 (CEST) Cc: internals@lists.php.net Message-ID: <27CEAE91-D012-49D5-8B0B-EE4249A31931@eenterphace.org> To: Jessie Hernandez In-Reply-To: <47F83E9B.1060700@gmail.com> Content-Type: multipart/mixed; boundary=Apple-Mail-2--593536143 Mime-Version: 1.0 (Apple Message framework v919.2) Date: Sun, 6 Apr 2008 17:06:54 +0200 References: <5D0C3386-C2BC-4086-87BB-806E2350B373@eenterphace.org> <47F83E9B.1060700@gmail.com> X-Mailer: Apple Mail (2.919.2) Subject: Re: [PHP-DEV] Re: namespace implementation (irritating warning and autoload) From: jr@eenterphace.org (Julian Reich) --Apple-Mail-2--593536143 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Hi Jessie, > Regarding the name resolution rules, I posted a patch a few months > ago with what I think is a more reasonable lookup order (http://news.php.net/php.internals/34097 > ), but did not get much feedback. Would you like to try it out? (let > me know if it doesn't apply cleanly against the current PHP_5_3) I tested the patch and it works well for me. I think if we want a predictable name resolution without speed loss this is the way to go. From an "aesthetic" point of view we could even add a PHP namespace (or even extension specific namespaces) and import all classes from the PHP namespace into the global namespace (to avoid BC break). This way one could use "use PHP::Exception" instead of "use ::Exception". But I'm perfectly happy with the patch as is. The patch didn't apply cleanly against current PHP_5_3. Therefore I attached an adapted version. Regards, Julian Reich --Apple-Mail-2--593536143 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit --Apple-Mail-2--593536143--