Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:8571 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54421 invoked by uid 1010); 18 Mar 2004 00:22:44 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 54363 invoked from network); 18 Mar 2004 00:22:44 -0000 Received: from unknown (HELO mailsender.amenworld.com) (62.193.206.151) by pb1.pair.com with SMTP; 18 Mar 2004 00:22:44 -0000 Received: from webmail1.amenworld.com (webmail1.amenworld.com [62.193.206.1]) by mailsender.amenworld.com (Postfix) with SMTP id DEF65844B9 for ; Thu, 18 Mar 2004 01:21:05 +0100 (CET) Received: (qmail 30195 invoked from network); 18 Mar 2004 00:21:35 -0000 Received: from unknown (HELO the-simpsons) (62.123.49.165) by webmail1.amenworld.com with SMTP; 18 Mar 2004 00:21:35 -0000 To: X-Mailer: PocoMail 3.03 (1740) - Licensed Version Date: Thu, 18 Mar 2004 01:28:00 +0100 Message-ID: <20043181280.576349@the-simpsons> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: redefined constructor: old and new syntax From: l.alberton@quipo.it (Lorenzo Alberton) Why has this one been committed? http://cvs.php.net/diff.php/ZendEngine2/zend_compile.c?login=3D2&r1=3D1.551&r2=3D1= .552 &ty=3Dh It prevents constructors being redefined. That is fine, *except* for the following case: class MyClass { function MyClass() { //constructor for php4, //SHOULD be ignored by php5 } function __construct() { //constructor for php5, //ignored by php4 } } i.e. it doesn't allow a class to work on both php4 and php5. Or am I missing something obvious? Best regards, Lorenzo