Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:122840 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id 799D91A009C for ; Sun, 31 Mar 2024 23:23:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1711927422; bh=bNRaprtNuzggqk+jEjIpnx1bkMC5LHesQmBNCUJdrhE=; h=References:In-Reply-To:From:Date:Subject:To:From; b=gKivUnxhXwXEPjZ8J9sVT0xtOtsavv0qXHtNq5g0qe3+ioYz7FyAVZDky5+QHdFew 2pHYdATZawpdjq2NHBrxYcl7t7qejtLoSQgLf/ah7Wy8PKooarj/GkfCXHXGNUso1G 7QZrp4ecfMcy2GgtXibmmxrO6wPdgQFBHQBxKxXhuYDip0Y/GO0ldIOc2KJaCCRZ+c Pi3bHrRLPnAnbB7o1/z3AVt5FLhNkt38ipjufgKtEUT/oZVJELpMp0f5QZt6Zl89ee 9lFwCDyq7QUxnqUnXhVTogR9k000nbdEXK0Nqd2FZ5GdWMV8zV2bz23KECHxgOqDEs S24J9mPyke1EA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 91F2E18007A for ; Sun, 31 Mar 2024 23:23:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: ** X-Spam-Status: No, score=2.1 required=5.0 tests=BAYES_50,BODY_8BITS, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS, FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-yb1-f169.google.com (mail-yb1-f169.google.com [209.85.219.169]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sun, 31 Mar 2024 23:23:41 +0000 (UTC) Received: by mail-yb1-f169.google.com with SMTP id 3f1490d57ef6-dcbd1d4904dso3137470276.3 for ; Sun, 31 Mar 2024 16:23:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711927393; x=1712532193; darn=lists.php.net; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=U8higmTHxg1qCCDjV8BqyuYnC23eYVP9i4wv9jh4p4I=; b=Zvj5o/SAd8oFQPFqBNyusSW41/DkrgAEBOAT4pxaAtsZo8s0xq2Tt8NTWH2UjWDbN8 MPV4AkYlbjoy/wqdNFjrKqg+Xb0mHY5myitKaQIryLJETf4Nm7XRj0B2rXgoBpVG8tc3 oyG6BcBAwzMngTZDM7KKqnv/HusuD3mLuQ3VEBg6L8SvHn2/b8VJmPzW/vc3zI5dffX8 e7zh1vHiRDAEd+/akrluq+t/4OaiESgM65DM0VrQ4wWqIoqL6GAYC+S93VXrvJW1dhY0 /Gm1WMVNaqSdC8XvCcg5NodfxDbczMWrUFchfoEEcs6tj+kJqq840NVA4vMC3VLGdv12 Grhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711927393; x=1712532193; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=U8higmTHxg1qCCDjV8BqyuYnC23eYVP9i4wv9jh4p4I=; b=K+q07nqBzdS3n9JZ120pA15mredpGIvlyp2YsSuMqyseS6+Mx718XjgNFmL1UqGuDb R21dhBesGZZAk0YAKqy12jFUYn+kcUl78iZsfAyfxwBjEuY9bhkTMeg3NfeMqkc/gbze Z2gGg3Pc0OI7UlDruUfjSp+AC0GWrPP0a6GTaaGg4slftJf5qtuMJGGX5zvAFb0JwV19 PbII/HmlhChnbHwmVtPPpOvH56a4pkH6ZW/ECBtC3GkaSH6JWaGQpXliMeqrOKiub4bK F36icO9nRqcg4SFeF3t4eEQmZ33hU0sTYul9xnt4oCpN29X7apklbrAdEkY8ef8RA+oV leiA== X-Gm-Message-State: AOJu0YwdAX010fPaZs7bqFe0fMrl6FmodzAdt3Mq8/04IOuR3AAe7CC3 VHnEAMkXARrnrxg/mH9vf8DE/GR87FU6lUV/hV/23xmI7+lCSAQzHqaJpgN2GpfMiUhE76o4RuL sAKzWvadUAFakFzpL3MiQ2kKPlLrbCCtVHbYK59W9 X-Google-Smtp-Source: AGHT+IE+J3HURSnBqco51n4VWvS+9pjpGqpXpTI9/HHkrqJX/rzafKf2AJIJLwd+pwSl0SF6uZwNF6v9H4PBnEb4/VU= X-Received: by 2002:a25:4c84:0:b0:dcc:44d7:5c7f with SMTP id z126-20020a254c84000000b00dcc44d75c7fmr5210964yba.62.1711927392823; Sun, 31 Mar 2024 16:23:12 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 1 Apr 2024 07:23:01 +0800 Message-ID: Subject: Re: [PHP-DEV] [RFC] Invoke __callStatic when non-static public methods are called statically To: internals@lists.php.net Content-Type: multipart/alternative; boundary="0000000000002176550614fd2811" From: daddyofsky@gmail.com (=?UTF-8?B?7ZWY64qY7JWE67aA7KeA?=) --0000000000002176550614fd2811 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 2024=EB=85=84 4=EC=9B=94 1=EC=9D=BC (=EC=9B=94) =EC=98=A4=EC=A0=84 2:31, La= rry Garfield =EB=8B=98=EC=9D=B4 =EC=9E=91=EC=84=B1: > On Fri, Mar 29, 2024, at 6:12 PM, =ED=95=98=EB=8A=98=EC=95=84=EB=B6=80=EC= =A7=80 wrote: > > >> It would be more accurate to say "calling non-static methods in a > static-like manner is common *in Laravel* > > > > It might be correct to say that this is specific to Laravel. The > > problem, however, is that Laravel is used so extensively that it cannot > > be ignored. > > True, but as someone else noted, Laravel already has a workaround in plac= e > for this. WordPress is orders of magnitude more popular than Laravel, bu= t > we don't generally design the language to work "the WordPress way," becau= se > that is well-recognized as a not-good way to work. > > Popularity matters, but quality matters more. > > > There's a point of embarrassing me. It's as if my proposal, if > > accepted, would create problems that did not previously exist. Yet, the > > existence of `__callStatic` already allows for the issues you've > > pointed out to occur. You can already write code like > > `foo::bar()::baz()` with the current PHP. The possibility of more > > problems arising could indeed be true. In that sense, I understand your > > point. > > To be clear: I have no interest or desire to embarrass you personally. I > have never met you before so have no opinion about you one way or another= , > and trust the feeling is mutual. That you're interested in improving PHP > is to your credit, and I thank you for that. > > However, that is separate from the proposal itself, which for reasons > stated I think is not a good one. That should not reflect on you > personally in any way, and is explicitly not intended as such. Certainly > I've had enough of my proposals rejected around here. :-) > > --Larry Garfield > I understand. I didn't assume my proposal would be accepted without question. I just started because I hate doing nothing. Daddyofsky --0000000000002176550614fd2811 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
2024=EB=85=84 4=EC=9B=94 1=EC=9D=BC (= =EC=9B=94) =EC=98=A4=EC=A0=84 2:31, Larry Garfield <larry@garfieldtech.com>=EB=8B=98=EC=9D=B4 =EC= =9E=91=EC=84=B1:
On Fri, Mar 29, 2024, at 6:12 PM, =ED=95=98=EB=8A=98=EC=95=84=EB=B6=80=EC= =A7=80 wrote:

>> It would be more accurate to say "calling non-static methods = in a static-like manner is common *in Laravel*
>
> It might be correct to say that this is specific to Laravel. The
> problem, however, is that Laravel is used so extensively that it canno= t
> be ignored.

True, but as someone else noted, Laravel already has a workaround in place = for this.=C2=A0 WordPress is orders of magnitude more popular than Laravel,= but we don't generally design the language to work "the WordPress= way," because that is well-recognized as a not-good way to work.

Popularity matters, but quality matters more.

> There's a point of embarrassing me. It's as if my proposal, if=
> accepted, would create problems that did not previously exist. Yet, th= e
> existence of `__callStatic` already allows for the issues you've <= br> > pointed out to occur. You can already write code like
> `foo::bar()::baz()` with the current PHP. The possibility of more
> problems arising could indeed be true. In that sense, I understand you= r
> point.

To be clear: I have no interest or desire to embarrass you personally.=C2= =A0 I have never met you before so have no opinion about you one way or ano= ther, and trust the feeling is mutual.=C2=A0 That you're interested in = improving PHP is to your credit, and I thank you for that.

However, that is separate from the proposal itself, which for reasons state= d I think is not a good one.=C2=A0 That should not reflect on you personall= y in any way, and is explicitly not intended as such.=C2=A0 Certainly I'= ;ve had enough of my proposals rejected around here. :-)

--Larry Garfield

I understand.
I did= n't assume my proposal would be accepted without question. I just start= ed because I hate doing nothing.

Daddyofsky
=C2=A0
--0000000000002176550614fd2811--