Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:39956 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 97097 invoked from network); 14 Aug 2008 09:56:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Aug 2008 09:56:10 -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:37234] helo=h1149922.serverkompetenz.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 28/6F-05165-93104A84 for ; Thu, 14 Aug 2008 05:56:10 -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 57D5411F387; Thu, 14 Aug 2008 11:56:06 +0200 (CEST) Date: Thu, 14 Aug 2008 11:56:02 +0200 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <1031906731.20080814115602@marcus-boerger.de> To: Stanislav Malyshev CC: Lukas Kahwe Smith , internals@lists.php.net In-Reply-To: <48A35F5F.3020702@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> <10910129111.20080813213721@marcus-boerger.de> <48A33D86.1010806@zend.com> <59637275.20080813221213@marcus-boerger.de> <48A34180.8070601@zend.com> <0D64C8C4-2136-4D6B-9EBD-B5956C3044FC@pooteeweet.org> <48A35F5F.3020702@zend.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] Inconsistencies in 5.3 From: helly@php.net (Marcus Boerger) Hello Stanislav, Thursday, August 14, 2008, 12:25:35 AM, you wrote: > Hi! >> I think Marcus is talking about files that are included that do not >> specify a namespace explicitly. In this situation the context does matter. > No it does not. Would anybody check what they are talking about before > starting to discuss things? Start with yourself by checking out Zend/tests/ns_069.phpt and then come back if you see no problem there. Since I am sure you will ignore the issue here goes anyway. The included file has a different scope. Hence a lot of stuff like reflection does not work as expected. End of the story. If we truely had multiple namespace support, then we would simply keep the namespce for the include and if the file has a namespace it would be compared to the current one, if that is equal all is fine. For __autoload it is also quite easy, it should simply be defined outside of a namespace. And if you need to combine it with namespace, then simply register the different autoload functrions with spl_autoload_register(). Best regards, Marcus