Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67492 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 39402 invoked from network); 24 May 2013 15:26:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 May 2013 15:26:51 -0000 Authentication-Results: pb1.pair.com smtp.mail=ekneuss@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ekneuss@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.128.54 as permitted sender) X-PHP-List-Original-Sender: ekneuss@gmail.com X-Host-Fingerprint: 209.85.128.54 mail-qe0-f54.google.com Received: from [209.85.128.54] ([209.85.128.54:36180] helo=mail-qe0-f54.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F1/F9-20943-6B68F915 for ; Fri, 24 May 2013 11:26:46 -0400 Received: by mail-qe0-f54.google.com with SMTP id i11so2700533qej.27 for ; Fri, 24 May 2013 08:26:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=zZBRwpO9YyJxglDiZGOhWfrQF4KFrKddyUPw8ezhsr8=; b=Za3grHhNkm5OO+0X/RucxuyBgOqQGp9rTi1X3ejqJwHAy3Ca9BOXYtg/3SX/82ORfX FryILNaaUVQQ2ZivzJ6v9P82IgXfPAURno6+JTh/RPlsIK5PVbrad8sYOFUVRtMXfC0h JR3CNct9yg68BxVA5hWmo1O6EHIfTVZkxepmmJGisc49w7yZEq7CVvrk5OExkbyVPALx 70EWhXduF1hV+/OlZzaHa+gREOzFZemFe7f5XdfJm9459NX07Hsw+YQST7GQRTdb4pkj gMzBSGyL+vnN0OBK0XouqYl6gobYkD13M11kWrRJ/aKSMKlGudFokURUs9CWJF2yOLO1 QKPw== X-Received: by 10.49.117.37 with SMTP id kb5mr19013033qeb.26.1369409203517; Fri, 24 May 2013 08:26:43 -0700 (PDT) MIME-Version: 1.0 Sender: ekneuss@gmail.com Received: by 10.49.120.234 with HTTP; Fri, 24 May 2013 08:26:23 -0700 (PDT) In-Reply-To: References: <6b642a96e673c29dbaf2f239be15f7f6.squirrel@www.l-i-e.com> <519E8ADB.90202@sugarcrm.com> Date: Fri, 24 May 2013 17:26:23 +0200 X-Google-Sender-Auth: cPUwAyQui7-Q4M40fT15djBhaHk Message-ID: To: Ferenc Kovacs Cc: Richard Quadling , Stas Malyshev , Anthony Ferrara , Richard Lynch , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=047d7b67896020be9704dd786dae Subject: Re: [PHP-DEV] Cannot call constructor From: colder@php.net (Etienne Kneuss) --047d7b67896020be9704dd786dae Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Sure the default implementation would have to be identical to the behavior of not defining one. I believe the best way to solve these issues is by having an implicit base class. To some extent, that means BC breaks though. On Fri, May 24, 2013 at 5:22 PM, Ferenc Kovacs wrote: > > Hi. >> >> I'm not an expert here, so just thinking out loud ... >> >> If a theoretical \PHP\baseclass can have empty >> __construct()/__destruct(), what about the other magic methods? >> >> OK, I suppose cascading some of the magic methods to a parent and having >> a null parent at the very very bottom of the heap sounds useful. But I'm >> not totally sure. >> >> Is there much/any need for a true base class that ALL classes will exten= d >> from, including those in extensions. >> > > it was discussed in the linked thread, personally I agree that those are > different both in intention and implementation, so shouldn't affected by > this change. > > ps: for example having an empty __sleep() or __wakeup implementation woul= d > be entirely differrent that one would expect. > > -- > Ferenc Kov=C3=A1cs > @Tyr43l - http://tyrael.hu > --=20 Etienne Kneuss http://www.colder.ch --047d7b67896020be9704dd786dae--