Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:39928 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 55366 invoked from network); 13 Aug 2008 19:37:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Aug 2008 19:37:31 -0000 Authentication-Results: pb1.pair.com smtp.mail=helly@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=helly@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 85.214.94.56 as permitted sender) X-PHP-List-Original-Sender: helly@php.net X-Host-Fingerprint: 85.214.94.56 aixcept.net Linux 2.6 Received: from [85.214.94.56] ([85.214.94.56:37121] helo=h1149922.serverkompetenz.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 86/9C-30462-AF733A84 for ; Wed, 13 Aug 2008 15:37:31 -0400 Received: from MBOERGER-ZRH (unknown [193.142.125.1]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by h1149922.serverkompetenz.net (Postfix) with ESMTP id B5CC411F548; Wed, 13 Aug 2008 21:37:27 +0200 (CEST) Date: Wed, 13 Aug 2008 21:37:21 +0200 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <10910129111.20080813213721@marcus-boerger.de> To: Stanislav Malyshev CC: Lars Strojny , Etienne Kneuss , , Lukas Kahwe Smith , In-Reply-To: <48A32817.4020105@zend.com> References: <909776579.20080803142659@marcus-boerger.de> <840985F2-A701-4BE4-91F6-F6B39048CF9B@pooteeweet.org> <48A09FF4.1030101@zend.com> <7f3ed2c30808111411t51553771j389f05c3436bc625@mail.gmail.com> <48A0C415.9090104@zend.com> <48A0D579.2000000@zend.com> <48A0DBAE.2010401@zend.com> <496879481.20080812153636@marcus-boerger.de> <279600845.20080812225135@marcus-boerger.de> <1218621323.4926.1.camel@localhost> <1341995942.20080813152134@marcus-boerger.de> <1218634532.4926.5.camel@localhost> <1714092517.20080813194342@marcus-boerger.de> <48A32817.4020105@zend.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] Inconsistencies in 5.3 From: helly@php.net (Marcus Boerger) Hello Stanislav, Wednesday, August 13, 2008, 8:29:43 PM, you wrote: > Hi! >> Once again, no code can trigger the warning right now. As the warning >> requires a namespace before it can be triggered. Autoload should be >> declared outside a namespace so that it can load correct namespace classes >> anyway. So I do not see an issue here. > autoload can work just fine inside namespace as well as outside, there's > no problem with that, and class names given to autoloader are always > full class names, so where it is declared has no effect. > As for the argument "there's no namespaced code so anything goes since > we can't break any code" - it's bogus. We expect a lot of existing code > to be converted to namespaces once 5.3 is out, and we want to make it as > painless as possible. Throwing warning each time you have include is not > the way. As painless as possible, so we want to tell people that they shouldn't just write a shell script that adds the name of the directory as the namespace or the name of the project an dthen never read the documentation. We probably want to tell people that this will probably break opcode caches. And if someone decides that he is fine with the issue as he doesn't use opcode caches and then someone else takes that code, he probably want to know about this issue. Best regards, Marcus