Re: php5 class initialization

From: Date: Mon, 22 Mar 2004 07:00:42 +0000
Subject: Re: php5 class initialization
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-8640@lists.php.net to get a copy of this message
We use the last defined constructor. We fixed a problem in B4 where old style constructors didn't always work. Andi At 12:30 AM 3/22/2004 +0000, t wrote:
<?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 ? -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.internals (#8640) next »