Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:41181 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 30109 invoked from network); 17 Oct 2008 00:29:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Oct 2008 00:29: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.163 as permitted sender) X-PHP-List-Original-Sender: steph@php.net X-Host-Fingerprint: 64.99.136.163 smtprelay-virgin0163.hostedemail.com Received: from [64.99.136.163] ([64.99.136.163:45542] helo=smtprelay-virgin.hostedemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EC/EE-12818-D4CD7F84 for ; Thu, 16 Oct 2008 20:29:02 -0400 Received: from filter.hostedemail.com (ff-bigip1 [10.5.19.254]) by smtprelay05.hostedemail.com (Postfix) with SMTP id BF4C71A8E585; Fri, 17 Oct 2008 00:28:58 +0000 (UTC) X-SpamScore: 1 X-Spam-Summary: 2,0,0,ed9467736dc3b09c,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:973:988:989: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:2895:3027:3353:3622:3865:3866:3867:3868:3869:3870:3871:3872:3873:3874:3876:3877:5007:6114:6119:6261:7653:7875:7901:7903:8660,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:28:57 +0000 (UTC) Message-ID: <006801c92fef$98069ff0$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> Date: Fri, 17 Oct 2008 01:30:42 +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") Hi Stas, > If you have two distinct sets of code, why you use same namespace for both > of them? Namespaces are specifically designed so you could have different > sets of code in different places. I was unclear there, sorry. I was thinking of the situation where 'I use a class that happens to have the same name as the namespace in a third-party lib I need to use in my application'. >> nb Stas - I asked the same question about warnings, Greg updated his >> proposal since then to answer it. > > 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. > I do not think it is an acceptable situation - this would make code > migration a nightmare, since even if you never use functions and never > even have any chance for a conflict, you still have to insert hundreds of > imports into your code, just to shut up the warnings. I don't think it is > a good idea. Feature that you do not need, can not disable and have to > work around is called "bug". Can we double-check this? - Steph