Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:22340 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 21789 invoked by uid 1010); 11 Mar 2006 19:16:13 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 21772 invoked from network); 11 Mar 2006 19:16:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Mar 2006 19:16:13 -0000 X-Host-Fingerprint: 87.123.66.193 i577B42C1.versanet.de Received: from ([87.123.66.193:25822] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 04/F4-21161-CF123144 for ; Sat, 11 Mar 2006 14:16:12 -0500 Message-ID: <04.F4.21161.CF123144@pb1.pair.com> To: internals@lists.php.net Date: Sat, 11 Mar 2006 20:16:09 +0100 User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 87.123.66.193 Subject: php4 style constructor From: lsmith@php.net (Lukas Smith) Hi, I am wondering why does defining a php5 style and php4 style constructor in a class result in an E_STRICT warning, where as only defining a php4 style constructor does not? class foo { function __construct() {} function foo() {} } class foo2 { function foo2() {} } I could see it make sense the other way around, or issuing an E_STRICT for both .. regards, Lukas