Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:39923 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 36511 invoked from network); 13 Aug 2008 17:43:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Aug 2008 17:43:52 -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:58138] helo=h1149922.serverkompetenz.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 30/68-30462-55D13A84 for ; Wed, 13 Aug 2008 13:43:52 -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 A39B911F4C4; Wed, 13 Aug 2008 19:43:46 +0200 (CEST) Date: Wed, 13 Aug 2008 19:43:42 +0200 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <1714092517.20080813194342@marcus-boerger.de> To: Lars Strojny CC: Etienne Kneuss , Stanislav Malyshev , , Lukas Kahwe Smith , In-Reply-To: <1218634532.4926.5.camel@localhost> 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> 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 Lars, Wednesday, August 13, 2008, 3:35:32 PM, you wrote: > Hi Markus > Am Mittwoch, den 13.08.2008, 15:21 +0200 schrieb Marcus Boerger: > [...] >> Namespaces are new, so it never worked before. But yes, this would trigger >> a warning in the compiler which means you are told to not do this with apc >> or other compiler caches. > You are aware that this is used in a number of PHP libraries/frameworks? > Additionally, a lot have code like this: 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. > class ... > public function foo() > { > if (!$this->_something) { > require_once 'Foo/Exception.php'; > throw new FooException(); > } > } > I guess most of the time those using OP caches know what they are doing. > So why should a warning be triggered here? > cu, Lars Best regards, Marcus