Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:97739 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 59795 invoked from network); 13 Jan 2017 07:24:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Jan 2017 07:24:40 -0000 Authentication-Results: pb1.pair.com smtp.mail=netmo.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=netmo.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.53 as permitted sender) X-PHP-List-Original-Sender: netmo.php@gmail.com X-Host-Fingerprint: 209.85.215.53 mail-lf0-f53.google.com Received: from [209.85.215.53] ([209.85.215.53:33509] helo=mail-lf0-f53.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AB/01-40314-7B088785 for ; Fri, 13 Jan 2017 02:24:40 -0500 Received: by mail-lf0-f53.google.com with SMTP id k86so29976271lfi.0 for ; Thu, 12 Jan 2017 23:24:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=K45HwUq6ciruQatuHea2YRENfAyweXNAl68q75k8jic=; b=l0aqGKeetuE/rmYLUjU9wyCWipQSZKyRvMqaBn0obv+63ejzx+MFeqkM/payGPfAf3 Wt8cneXjCh5vovqG2KpxYRSlIyCu1RUVJnCqpugln93S/Rv1uizYRry0fPShPWIxZ6sb xBgGZT8ZVNwuAu84dqFwlUR2VCKxPX4UdXUnPmE3HMQeczZiz0PcwBb8xZ/vkfewsZx/ ajr7bLI5rOsZ90Ne+VHhYJ18wCcSmSQfS1/44TbiicIyFjZ1Vb2mbyrj77jrbgaG5vXG 6QVYehTtLEGeezEvVrV7WheGVyB0NsfqtUyp6H0/RFAjNe8Zx3AE4wBgO6+sJL+0/bzB 3O9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=K45HwUq6ciruQatuHea2YRENfAyweXNAl68q75k8jic=; b=GNUpZQJB1X0o4jyGiDaGAnaYystu+mhAINr26jJvhNlRZt3lqWXz1AwMUsHzkReK/c pN1aLvN9Z0abkls4QKrH1+jYMT9xCkiP7jevYjfPDiBbSVQUojmyLWLACLSbJc2QZg0W 0exnJ2ou4iQ38OoxGAzuCZS3EOr2iTg/27Zba+C0e7X6MefKcRhy9sAuJXPK4PxXJaco KXn8UsIKKNZHshX8df0vlPkeWUy0SUaU+HlF9mLNTpGM4DNgBFHi44mOeydrdBr6GGoC cx6bWarKTS1owcVPJUIE9MxfijXYAo9/gwxYLrpj3QC2vV/jwCrxAwlR0WhNrkwNXNxs AEXg== X-Gm-Message-State: AIkVDXK1Ukr54vD5Dhpt2hbfWqkiwZs6LUwedXtGorPmrtQvgtejkkkQx5xY2qI+S01OwOFAkq3LFiCKArjooQ== X-Received: by 10.25.0.140 with SMTP id 134mr6851492lfa.156.1484292276295; Thu, 12 Jan 2017 23:24:36 -0800 (PST) MIME-Version: 1.0 Received: by 10.114.12.102 with HTTP; Thu, 12 Jan 2017 23:24:35 -0800 (PST) In-Reply-To: <5efcc230-c67b-4439-cc82-b31eacbf36db@php.net> References: <0DE25BF8-D349-48EF-A83B-8837DD4AD1E0@gmail.com> <5efcc230-c67b-4439-cc82-b31eacbf36db@php.net> Date: Fri, 13 Jan 2017 08:24:35 +0100 Message-ID: To: PHP Internals , sebastian@php.net Content-Type: multipart/alternative; boundary=001a113c95cedf1be10545f4b950 Subject: Re: [PHP-DEV] Explicit constructor call and polymorphic dispatch From: netmo.php@gmail.com (Wes) --001a113c95cedf1be10545f4b950 Content-Type: text/plain; charset=UTF-8 > > I am baffled that this (still) works: > __clone was special cased in 5.x, but special case was removed in 7.0 means that previously you couldn't do publicly $obj->__clone(); now you can and, yes, it's as dangerous as it looks however, the special case was removed for a reason that i'm sure is a good one, and i'm certain the same good reason is also valid for __construct the only reason for prohibiting explicit __construct calls is that it makes > PHP objects mutable then don't call it explicitly, exactly like you wouldn't use reflection to call private methods --001a113c95cedf1be10545f4b950--