Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:55514 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 3827 invoked from network); 19 Sep 2011 05:04:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Sep 2011 05:04:46 -0000 Authentication-Results: pb1.pair.com smtp.mail=h.reindl@thelounge.net; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=h.reindl@thelounge.net; sender-id=pass Received-SPF: pass (pb1.pair.com: domain thelounge.net designates 91.118.73.15 as permitted sender) X-PHP-List-Original-Sender: h.reindl@thelounge.net X-Host-Fingerprint: 91.118.73.15 mail.thelounge.net Windows 98 (1) Received: from [91.118.73.15] ([91.118.73.15:51930] helo=mail.thelounge.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8E/E2-14600-B6DC67E4 for ; Mon, 19 Sep 2011 01:04:44 -0400 Received: from srv-rhsoft.rhsoft.net (openvpn-241.thelounge.net [10.0.0.241]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.thelounge.net (Postfix) with ESMTPSA id 4DAD899 for ; Mon, 19 Sep 2011 07:04:40 +0200 (CEST) Message-ID: <4E76CD67.2020700@thelounge.net> Date: Mon, 19 Sep 2011 07:04:39 +0200 Organization: the lounge interactive design User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0.2) Gecko/20110906 Thunderbird/6.0.2 MIME-Version: 1.0 To: internals@lists.php.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> In-Reply-To: <4E769418.6040200@sugarcrm.com> X-Enigmail-Version: 1.3.1 OpenPGP: id=7F780279; url=http://arrakis.thelounge.net/gpg/h.reindl_thelounge.net.pub.txt Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigA69F6C335928B58CFA94AC37" Subject: Re: [PHP-DEV] __constructor parameter limitations. From: h.reindl@thelounge.net (Reindl Harald) --------------enigA69F6C335928B58CFA94AC37 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Am 19.09.2011 03:00, schrieb Stas Malyshev: > The example without abstract works, but produces E_STRICT which is usel= ess too right - because the following code is totally valid and reasonable even i= f "my_function" will later get a fourth param $d=3D'default' and the strict= warnings here forcing you to disable E_STRICT with the negative impact losing use= full strict-warinings or rewrite tons of code after changes in a extended clas= s with a new optional param someone who is using "my_b" needs not to know anything about "my_a" which= usually is in a foreign file and often an external library my_function('test'); ?> --------------enigA69F6C335928B58CFA94AC37 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk52zWcACgkQhmBjz394Ann86wCeMInhGQd+XIVJjjLcQA/wZha/ E2oAn1+mfTcpLTArw3aQvRVLsZjz0jkB =LUVN -----END PGP SIGNATURE----- --------------enigA69F6C335928B58CFA94AC37--