php5 class initialization

From: Date: Mon, 22 Mar 2004 00:30:41 +0000
Subject: php5 class initialization
Groups: php.internals 
Request: Send a blank email to internals+get-8637@lists.php.net to get a copy of this message
<?php class a { function __construct() { echo '__construct()'; } function a() { echo 'a()'; } } $a=new a; ?> Outputs ... a() ... when I would expect ... __construct() ... is this a bug, some sort of new (only seeing this occur since RC1) feature, or some option I'm supposed to switch off ?

« previous php.internals (#8637) next »