Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:55526 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 38100 invoked from network); 19 Sep 2011 09:17:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Sep 2011 09:17:58 -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.214.42 as permitted sender) X-PHP-List-Original-Sender: ekneuss@gmail.com X-Host-Fingerprint: 209.85.214.42 mail-bw0-f42.google.com Received: from [209.85.214.42] ([209.85.214.42:45966] helo=mail-bw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 88/98-14600-4C8077E4 for ; Mon, 19 Sep 2011 05:17:57 -0400 Received: by bkar4 with SMTP id r4so5103104bka.29 for ; Mon, 19 Sep 2011 02:17:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; 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; bh=I2P2cLj8B8N3C6pNRjJKx7sEIWK510ypKINUFfe6xk4=; b=U03ap1hfPugQeFpFziwm3ahAE7wT5yLmlANMSBtv2DQ8Kgpx9EbzmTIZsaH1tuGC+k TpkmlB+ATxEZ5JzXCH1WRonuceya2peP/2HfyuuGU9gHg7iHsvgXOpM3BZn5/TgQwTjp HirKgD5URRkcYrWQa1LDCIWSI8p29enFXLAZ8= MIME-Version: 1.0 Received: by 10.204.141.80 with SMTP id l16mr661519bku.183.1316423872489; Mon, 19 Sep 2011 02:17:52 -0700 (PDT) Sender: ekneuss@gmail.com Received: by 10.204.59.68 with HTTP; Mon, 19 Sep 2011 02:17:52 -0700 (PDT) In-Reply-To: <4E77080E.7030107@mageekbox.net> References: <4E74E5A0.2030006@sugarcrm.com> <4E76320F.6010904@sugarcrm.com> <4E764137.9080507@sugarcrm.com> <4E7685DE.6010805@sugarcrm.com> <4E768C86.3030307@sugarcrm.com> <4E769418.6040200@sugarcrm.com> <4E76CD67.2020700@thelounge.net> <4E77080E.7030107@mageekbox.net> Date: Mon, 19 Sep 2011 11:17:52 +0200 X-Google-Sender-Auth: z4pdrow7feZPLKXXvNunn3kfSkQ Message-ID: To: frederic.hardy@mageekbox.net Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary=0015174483644b2a4304ad47d1e5 Subject: Re: [PHP-DEV] __constructor parameter limitations. From: colder@php.net (Etienne Kneuss) --0015174483644b2a4304ad47d1e5 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, 2011/9/19 Fr=C3=A9d=C3=A9ric Hardy > Hi ! > > What is the utility of abstract method if implementation can not follow > the signature (constraints ?) of the abstract method ? > In this case, abstract methods are totaly useless ! > Moreover, i think that it's not compatible with Liskov substitution > principle. Subclasses can loosen the preconditions, that's eactly what happens here an= d it is perfectly fine in theory. > > > Best regards, > Fred > -- > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D**=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D** > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > Fr=C3=A9d=C3=A9ric Hardy : Architecte d'application/Admin. syst=C3=A8me/E= rgonome > CV : http://blog.mageekbox.net/**public/cv.frederic.hardy.pdf > Blog : http://blog.mageekbox.net > Twitter : http://twitter.com/mageekguy > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D**=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D** > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --=20 Etienne Kneuss http://www.colder.ch --0015174483644b2a4304ad47d1e5--