Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:85786 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 68871 invoked from network); 13 Apr 2015 16:54:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Apr 2015 16:54:42 -0000 Authentication-Results: pb1.pair.com smtp.mail=johannes@schlueters.de; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=johannes@schlueters.de; sender-id=unknown Received-SPF: error (pb1.pair.com: domain schlueters.de from 217.114.215.10 cause and error) X-PHP-List-Original-Sender: johannes@schlueters.de X-Host-Fingerprint: 217.114.215.10 mail.experimentalworks.net Received: from [217.114.215.10] ([217.114.215.10:60548] helo=mail.experimentalworks.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 41/F3-41712-0D4FB255 for ; Mon, 13 Apr 2015 12:54:42 -0400 Received: by mail.experimentalworks.net (Postfix, from userid 1003) id D55AE4A1B5; Mon, 13 Apr 2015 18:55:18 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on km31408.keymachine.de X-Spam-Level: * X-Spam-Status: No, score=1.4 required=3.0 tests=ALL_TRUSTED, DNS_FROM_AHBL_RHSBL autolearn=no version=3.3.2 X-Spam-HAM-Report: * 2.4 DNS_FROM_AHBL_RHSBL RBL: Envelope sender listed in dnsbl.ahbl.org * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP Received: from [192.168.2.34] (ppp-93-104-6-125.dynamic.mnet-online.de [93.104.6.125]) (using TLSv1.2 with cipher DHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: johannes@schlueters.de) by mail.experimentalworks.net (Postfix) with ESMTPSA id 17BC04A1B4; Mon, 13 Apr 2015 18:55:17 +0200 (CEST) Message-ID: <1428944075.3492.27.camel@kuechenschabe> To: Johannes Ott Cc: internals@lists.php.net Date: Mon, 13 Apr 2015 18:54:35 +0200 In-Reply-To: <1428938604.3492.21.camel@kuechenschabe> References: <1428938604.3492.21.camel@kuechenschabe> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-i3sj/2lpbTg9+rRluDpU" X-Mailer: Evolution 3.10.4-0ubuntu2 Mime-Version: 1.0 Subject: Re: [PHP-DEV] New RFC draft "static class constructor" From: johannes@schlueters.de (Johannes =?ISO-8859-1?Q?Schl=FCter?=) --=-i3sj/2lpbTg9+rRluDpU Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, 2015-04-13 at 17:23 +0200, Johannes Schl=C3=BCter wrote: > Why am I saying it makes the language more complex? - Your proposal > seems to miss mentioning when exactly the method is executed. what is Ah, I missed this Trigger for =E2=80=9Cmagic=E2=80=9D method call: First call to clas= s, either first call to __construct(...) or first call to any public or protected static method or property of the class=20 Which means adding a flag, which has to be checked on every method call or other access to *any* class and leads to completely "random" (from perspective of average user) behavior while this feature can't be used for an "obvious" task like registering itself as plugin into some registry. -1 johannes --=-i3sj/2lpbTg9+rRluDpU Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQEcBAABAgAGBQJVK/TLAAoJEH3sTmn8nIPXuB4IAIMOZ761q2b+N2Jih/MJHawC OXdLyWvmMNZrBtmsJunfOzxN4IERE5tgaBm2x8bFmJd7q8CukfqpI3bpFGhfleTD frt7RYzGfSUf8Jvqno9eAeb0SzuASidWg1w9vK9iWVuZ2R6HWj0qc6JEiTCNaMzk YiuP3cwBO3ZpEBynabqox9FtY2mh55A+VPjME/c4S9cgP+2Mcaj92/ZjNl/y5ehs fVBTO1FsuXONYwOfAP0xlVvqMQK1GX29xqEHz0CtvLm78+Fcvr/X3jgcphquNaR3 OD6JKJFCvF/241ZhEc/zmN0bIRRMH4L3xt1UJTvPsN/Z0VRkQmb77/a8nBpDEdQ= =ohgv -----END PGP SIGNATURE----- --=-i3sj/2lpbTg9+rRluDpU--