Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_API.c zend_compile.c /tests ns_063.phpt

[email protected] ("Pierre Joye")
Newsgroups php.internals,php.zend-engine.cvs
Message-ID <[email protected]>
On Mon, May 5, 2008 at 8:43 PM, Dmitry Stogov <[email protected]> wrote:
> It's just simple to make constructors work in the same way in namespaces and
> out of them. It would be difficult to explain why the first script prints
> "ok" and the second doesn't.

It is easy to explain: "You have to use the __construct form for any
class used in Namespace".

We can then even drop the old form in php 6.x. Many changes have no
gain but make the language clearer or cleaner. It is not an objective
change but it does help to cleanup the language.

I will not die if we still support old things for the rest of the
php's life but...

Cheers,
-- 
Pierre
http://blog.thepimp.net | http://www.libgd.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.