Re: Inconsistencies in 5.3

From: Date: Mon, 04 Aug 2008 20:40:53 +0000
Subject: Re: Inconsistencies in 5.3
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-39641@lists.php.net to get a copy of this message
Dmitry Stogov wrote:
I don't like multiple namespaces per file too. As I remember they were introduced by Greg's request related to ext/phar. May be he already changed his mind. 'package' or 'namespace' is not so important for me.
To be correct, this has nothing to do with ext/phar, but everything to do with how PHP users do things now. There are several apps such as Doctrine that allow "compiling" their whole libraries into a single large file. This results in substantial performance improvement depending on app design both with and without opcode cache, verified independently by me and by Stas in Zend's labs. I personally probably won't be using multiple namespaces per file except in rare cases, but I see plenty of good reasons to allow it. Regards, Greg

« previous php.internals (#39641) next »