Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:41184 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 43125 invoked from network); 17 Oct 2008 00:54:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Oct 2008 00:54:02 -0000 Authentication-Results: pb1.pair.com header.from=steph@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=steph@php.net; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 64.99.136.160 as permitted sender) X-PHP-List-Original-Sender: steph@php.net X-Host-Fingerprint: 64.99.136.160 smtprelay-virgin0160.hostedemail.com Received: from [64.99.136.160] ([64.99.136.160:35569] helo=smtprelay-virgin.hostedemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FF/D1-12818-922E7F84 for ; Thu, 16 Oct 2008 20:54:02 -0400 Received: from filter.hostedemail.com (ff-bigip1 [10.5.19.254]) by smtprelay06.hostedemail.com (Postfix) with SMTP id 5761417B6F6B; Fri, 17 Oct 2008 00:53:59 +0000 (UTC) X-SpamScore: 1 X-Spam-Summary: 2,0,0,7ff0f518bd995113,691ff1dea13fdf9b,steph@php.net,stas@zend.com:greg@chiaraquartet.net:internals@lists.php.net,RULES_HIT:355:379:539:540:541:542:543:567:599:601:946:973:988:989:1042:1155:1156:1260:1277:1311:1313:1314:1345:1437:1515:1516:1518:1534:1541:1587:1593:1594:1711:1730:1747:1766:1792:2073:2075:2078:2379:2393:2559:2562:2828:3027:3353:3865:3867:3868:3869:3870:3871:3872:3873:3874:3876:3877:5007:6114:6119:6261:7653:7775:7875:7901:7903:8660:9036:9040,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:none,DNSBL:none Received: from foxbox (62-31-252-63.cable.ubr07.shef.blueyonder.co.uk [62.31.252.63]) (Authenticated sender: steph.fox) by omf11.hostedemail.com (Postfix) with ESMTP; Fri, 17 Oct 2008 00:53:58 +0000 (UTC) Message-ID: <00c501c92ff3$166f2170$3ffc1f3e@foxbox> To: "Stanislav Malyshev" Cc: "Greg Beaver" , "PHP Developers Mailing List" References: <48F653FF.5010106@chiaraquartet.net> <48F75FA1.7020505@zend.com> <48F7AD03.1050009@chiaraquartet.net> <48F7BC05.7060005@zend.com> <001501c92fed$112609f0$3ffc1f3e@foxbox> <48F7D98E.1000003@zend.com> <006801c92fef$98069ff0$3ffc1f3e@foxbox> <48F7DE46.4050406@zend.com> Date: Fri, 17 Oct 2008 01:55:44 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-session-marker: 73746570682E666F78 Subject: Re: [PHP-DEV] my last attempt at sanity with namespaces From: steph@php.net ("Steph Fox") > Why would you do that? I.e. suppose there's library having namespace > Zend::Controller::Action::Plugin - why would your name your class > Zend::Controller::Action::Plugin and not > Steph::Controller::Action::Plugin? Why do you assume all third-party software is going to be ZF? Or that code is going to be written around third-party software in the first place, rather than some useful lib that doesn't even exist yet might be slotted into an app 3 or 10 years from now? >>> As it is now, every call to class::method() not accompanied with use >>> should produce E_WARNING. >> >> ? That's certainly not how I read it. > > That's what is says: > > If the "use" statement is missing, an E_WARNING should also be thrown to > alert the user to the ambiguity I assume that's only if there is ambiguity, but I'm not in a position to test the patch right now so can't say authoritatively (@Greg: speak!) but Stas - conceptually you aren't a million miles apart in the first place, so if you're finding that in your tests maybe helping figure a way through would be more productive. Greg complains that your version gives no warnings, you complain that Greg's version gives too many... please, guys, can you work together? - Steph