Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:78962 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 44756 invoked from network); 18 Nov 2014 22:18:36 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Nov 2014 22:18:36 -0000 Authentication-Results: pb1.pair.com smtp.mail=markus.fasselt@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=markus.fasselt@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.171 as permitted sender) X-PHP-List-Original-Sender: markus.fasselt@gmail.com X-Host-Fingerprint: 209.85.212.171 mail-wi0-f171.google.com Received: from [209.85.212.171] ([209.85.212.171:41816] helo=mail-wi0-f171.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BF/07-06737-AB5CB645 for ; Tue, 18 Nov 2014 17:18:35 -0500 Received: by mail-wi0-f171.google.com with SMTP id bs8so3451377wib.16 for ; Tue, 18 Nov 2014 14:18:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=3TQY0hJe7unE++l9XPfqF65spwtfnEtJU7X6WXSwIks=; b=cOIy2QM8rCs/q7I3VIQofkf0CC0IprFuf+s0xnehUNogCJhkQiHtHalLMnx1Nk99Ef j7QB+RmMAm4JQrFT7WnQPPFOgE3wmMJI3BhzSlwGAPB38SbU48TNrW+wRDUa4/0kaw7b kPCud/LLSlsC3ha6YjNkuS/eyeJ0VHOlX6Jaacnf5l4/LIGMAjX36jYDCf/c1sFNqm8J Iaixleqj7LHSW1m98do6HaygM1zXd07bRdhhlRvwCCb4Si3AAwjI+3dTU8mwoRS6xJnM Ikk7IZmEgND6QaicFHWSuIzOa8h9O2hdWTjRQzUUjnaFKL5ZLEEbZDACiaQxEJ1CaWDZ 4tMw== X-Received: by 10.194.176.100 with SMTP id ch4mr52444380wjc.101.1416349111724; Tue, 18 Nov 2014 14:18:31 -0800 (PST) Received: from [192.168.1.108] (f051042040.adsl.alicedsl.de. [78.51.42.40]) by mx.google.com with ESMTPSA id u13sm585876wiv.10.2014.11.18.14.18.30 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Nov 2014 14:18:30 -0800 (PST) Message-ID: <546BC5B5.8080008@gmail.com> Date: Tue, 18 Nov 2014 23:18:29 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: internals@lists.php.net References: <546B0F62.1090705@gmail.com> <546B3D07.2090203@hoa-project.net> <7B7BA983-3A5B-4FB1-8C02-0B88C81407C2@ajf.me> <546B5562.4030907@gmail.com> <546B987B.2080808@gmail.com> In-Reply-To: <546B987B.2080808@gmail.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] [RFC] Default constructors From: markus.fasselt@gmail.com (Markus Fasselt) Hi! > Making everything descend from the same class may require a number of > changes and much bigger design effort than this RFC aims at, with wider > BC implications. I am not sure, whether this might be a problem (I am just starting to dive into PHP internals), but I can think of constructor visibility problems. What visibility should the main constructor have? If it is public (or protected), you can't have private constructors anylonger > Fatal error: Access level to Foo::__construct() must be public (as in class BaseClass) So there have to be changes in the validation of a class and in the instantiation to not get this problem. Don't know whether this is a bigger concern, but I just got this idea.