Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:8642 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 32056 invoked by uid 1010); 22 Mar 2004 07:56:31 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 32031 invoked from network); 22 Mar 2004 07:56:30 -0000 Received: from unknown (HELO shiva.mind.de) (212.42.230.204) by pb1.pair.com with SMTP; 22 Mar 2004 07:56:30 -0000 Received: from [192.168.1.105] (pD95F818B.dip.t-dialin.net [217.95.129.139]) by shiva.mind.de (Postfix) with ESMTP id AB18F97B64; Mon, 22 Mar 2004 08:56:30 +0100 (CET) Date: Mon, 22 Mar 2004 08:56:30 +0100 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <3156697421.20040322085630@marcus-boerger.de> To: Andi Gutmans Cc: t , internals@lists.php.net In-Reply-To: <5.1.0.14.2.20040322090007.06391dd0@127.0.0.1> References: <20040322003145.65079.qmail@pb1.pair.com> <5.1.0.14.2.20040322090007.06391dd0@127.0.0.1> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] php5 class initialization From: helly@php.net (Marcus Boerger) Hello Andi, Monday, March 22, 2004, 8:00:42 AM, you wrote: > We use the last defined constructor. We fixed a problem in B4 where old > style constructors didn't always work. If so that's a bug. That's absolutley not understandable. > Andi > At 12:30 AM 3/22/2004 +0000, t wrote: >>>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 -- Best regards, Marcus mailto:helly@php.net