Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:40516 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 96868 invoked from network); 15 Sep 2008 07:45:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Sep 2008 07:45:01 -0000 Authentication-Results: pb1.pair.com header.from=slackmase2@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=slackmase2@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 72.14.220.157 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: slackmase2@gmail.com X-Host-Fingerprint: 72.14.220.157 fg-out-1718.google.com Received: from [72.14.220.157] ([72.14.220.157:62762] helo=fg-out-1718.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 18/01-25241-B721EC84 for ; Mon, 15 Sep 2008 03:45:00 -0400 Received: by fg-out-1718.google.com with SMTP id 16so1335249fgg.23 for ; Mon, 15 Sep 2008 00:44:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=3Tb40suLLYv7hh61o06m6/bIj7lb2C2APUJy/koi2GY=; b=Y4ia1gXVIBi31gMEf0XM2sr58MQFsxZ8U+AuxNgTzwbGC6Nm9CgDcZpq1wQf0OkHNn ZMzNG8TSx+5E230L080kt+ZTziPwPdQb7AC7TaZGVtGNAlzyX2zRo3E8lk5Lj6ZWgwc2 Z3I5h98KC0TcOFAZd5qv8ZX/0gr3HTiLSCf2Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=EUd6Lm+Q0jCC/fFi3CrWUbQboTil26a5eokVlBqkdpeHyCqyrtG9iQwhZpI8KaKbMV aexiW6bU9BmdM5l/lnLrHcdFPBk903sEOK5JX3GOKawg6SrJihpUjzJnA/Gqk8UPC09e caH7VIo2YdOOXI2wHWVc8o6PRUcxp1Q13aZyI= Received: by 10.181.34.1 with SMTP id m1mr4954813bkj.85.1221464696920; Mon, 15 Sep 2008 00:44:56 -0700 (PDT) Received: by 10.180.222.16 with HTTP; Mon, 15 Sep 2008 00:44:56 -0700 (PDT) Message-ID: <99cd336d0809150044q7ab4db42vc3035b5a32393199@mail.gmail.com> Date: Mon, 15 Sep 2008 17:14:56 +0930 To: "Stanislav Malyshev" , internals@lists.php.net In-Reply-To: <48CDD49E.9070808@zend.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <48C59D5C.4050507@chiaraquartet.net> <48C5A909.4030502@zend.com> <48C602D5.6020704@chiaraquartet.net> <48C6A6AA.7050003@zend.com> <48C9F2F6.4080007@chiaraquartet.net> <48CAC1EF.2090501@zend.com> <48CB20BA.4070609@chiaraquartet.net> <48CC85D7.4010401@zend.com> <48CCA3B1.5060602@chiaraquartet.net> <48CDD49E.9070808@zend.com> Subject: Re: [PHP-DEV] Re: [PATCH] Re: [PHP-DEV] namespace examples (solving name resolutionorderissues) From: slackmase2@gmail.com ("Andrew Mason") I for one would prefer the << classes: 1) check current namespace 2) autoload if possible 3) fail functions: 1) check current namespace 2) check internal 3) fail >> I think this a good approach. I don't know how biased I am as I use the autoloader quite alot but it seems reasonable to me. On Mon, Sep 15, 2008 at 12:51 PM, Stanislav Malyshev wrote: > Hi! > >> 1) check current namespace >> 2) autoload if possible >> 3) fail >> >> functions: >> >> 1) check current namespace >> 2) check internal >> 3) fail >> >> Load order would matter for functions, but the risk is worth the benefit. >> >> I believe the initial implementation of namespaces had this order for >> classes, so Dmitry's first patch would have the necessary changes. > > That's exactly the mode that I described as second non-contradictory mode. I > would like to know how many people here feel it is better than what we have > now. I know many people right now may not be reading the list due to the > Zend Conference so we'd have to wait some time to get a good feedback on > that. > -- > Stanislav Malyshev, Zend Software Architect > stas@zend.com http://www.zend.com/ > (408)253-8829 MSN: stas@zend.com > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >