Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:44657 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 62403 invoked from network); 2 Jul 2009 14:45:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Jul 2009 14:45:06 -0000 Authentication-Results: pb1.pair.com smtp.mail=kalle.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=kalle.php@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.206 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: kalle.php@gmail.com X-Host-Fingerprint: 209.85.218.206 mail-bw0-f206.google.com Received: from [209.85.218.206] ([209.85.218.206:39061] helo=mail-bw0-f206.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CB/1A-16153-1F7CC4A4 for ; Thu, 02 Jul 2009 10:45:05 -0400 Received: by bwz2 with SMTP id 2so1138431bwz.23 for ; Thu, 02 Jul 2009 07:45:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type:content-transfer-encoding; bh=4FzQ0KGVJr8dxlAex9QU+6HHAYHZkYqvi8vwYr32nrw=; b=cF5TjN/oK7JPj8Y7u1ZL5UU8zUHcjUk1RzaBwtxMyA0Ae+KmjugG6h0FMbd44NOUHD pzNABSxGjxNBi9VF/gewFOz4Wpwkue1OFnBc3QVJdYm/8pW2Iaz5CpeUkDAQaeLGi8sU 77EHtqnYJafTlKsZxbWk4hElAg1JrSmNlZHMU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=TFdCLY1Jx4rklpti2Vx1gxsnn7KsTPVQgZBVmu58SjyO8KnETZ+yR3kHaTLUcKZGus oHrSj1jOHBgh40MdMpz8OX/iLvy/vjCa8cA+UWxQFTpvbG/wkTiGwi+mf8LlOSZDbg5L E+fU7ddAYFJPBB22y7QRkEoF/eGZTIB2HVroM= MIME-Version: 1.0 Sender: kalle.php@gmail.com Received: by 10.204.121.194 with SMTP id i2mr111242bkr.92.1246545900589; Thu, 02 Jul 2009 07:45:00 -0700 (PDT) In-Reply-To: <98b8086f0907020714m6c67fce3jab4d13429b3cd2a4@mail.gmail.com> References: <98b8086f0907020714m6c67fce3jab4d13429b3cd2a4@mail.gmail.com> Date: Thu, 2 Jul 2009 16:45:00 +0200 X-Google-Sender-Auth: 530d492618b1df3b Message-ID: <2dedb8a0907020745o1ac6cb22xe40c2a786bcba1e2@mail.gmail.com> To: troels knak-nielsen Cc: PHP Developers Mailing List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] constructors are callable as regular functions. From: kalle@php.net (Kalle Sommer Nielsen) 2009/7/2 troels knak-nielsen : > Has this been discussed before? In that case, was it decided to go > with this behaviour or is it purely accidental? Are there perhaps some > implementation issues in preventing the second call to __construct()? Magic methods can always be called directly because they must be declared public to work. I don't see a reason why to disallow it, if a user manually executes a magic method they should be knowing what they are doing and remember that there might be side-effects with there code. -- regrads, Kalle Sommer Nielsen kalle@php.net