Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:122839 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 4A3371A009C for ; Sun, 31 Mar 2024 17:18:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1711905512; bh=BcJ38H4HeLPcYeyO9Rm7jhx+KbzgOIVIDrdAysO2Tqw=; h=In-Reply-To:References:Date:From:To:Subject:From; b=Yp26p1aeFqKwFqO6XUUZFNUOrBY9h/EwfyUtDXnqXhbz76mUyAQIYyPhtT7B56OtD tuaFLj0hk9Jr3XJbzAzSFBNVnfYsrDlwWVmw9H6nAwPlXU8Cwu0pS3XkL7SEjwEBsX RROLlu/5apvCTl3UXDGRI+URqQ7ReKgdXQI+qoKEdAy5udH9vP1tGiAWIquNbdrTlR 4GYSSt+YSLiA5TUe4Spa29cmHDK14v2lYo4UXgCVqad76QOnbiSU8WHMYR07njmP7o 7TQRxEnGOWPoFwknuGsBr3R8cbjk0BDymEp5fF26bFolT0Nrl+p7ZRlKImlou2Vdms 9XWhix3cK3mRQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 2FF3F18060C for ; Sun, 31 Mar 2024 17:18:32 +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=1.4 required=5.0 tests=BAYES_50,BODY_8BITS, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from wout1-smtp.messagingengine.com (wout1-smtp.messagingengine.com [64.147.123.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sun, 31 Mar 2024 17:18:31 +0000 (UTC) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 7C7703200A01 for ; Sun, 31 Mar 2024 13:18:03 -0400 (EDT) Received: from imap50 ([10.202.2.100]) by compute1.internal (MEProxy); Sun, 31 Mar 2024 13:18:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= garfieldtech.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to; s=fm2; t=1711905483; x=1711991883; bh=b6IQHmF5cWI6xfzWk5vnA 6p0gZJMQQG007WIB+C+SA8=; b=BjyDKEuIYZmRR1gCyk3j2Tc3G5g5nYEMhl810 HRIctFGLt2StIVQbY7Z//xOJeQrHgcepjXUUJ8nRxU0crVSoZn/4WpJP3ahEYXj4 2DDaRM48uaMNr5Qz3WJDSrAIRX6Cw3drjzRJUoM2g+mRu+twVKlcWUVt6PhWOJFh 1+nE2hfrU5hVw2xYjqLzn0N+Ffmdyfs6+Kxg3o9jTxX4kNwco7XsS9F0PqK1Mr5p jghbAy3KgjM0/cuQGqlnGc+Ip/rd3BgwRT5Oq1t79hc7mtp+mxHpe6dzREQ/NR4F 2r9s0ulgE/hQbHvJ1ORuv8JKFf6L4FIJcJnYLtlks/b0muPVg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1711905483; x= 1711991883; bh=b6IQHmF5cWI6xfzWk5vnA6p0gZJMQQG007WIB+C+SA8=; b=r Ejtpb6q7ESgl+6bWP+LRYAcSedjHRw9qnqvwLpKVp6U771svtcKJOZGAthZ1Fa2V 8+0NFkeOZ1MRKL/2tT5/UFjtp1R3UO5MJWK+bEp+dP+fBehlXsDj4z61GA2inbR2 saDXyqWCt7jGcHstV3OuC3/X70aidKlbIF8ZTNoxkGdag5kI8YIv4Tn6hNuyFR/d cnxSyY17X0KKP8cZaKL5X+TlqRFpukWSQnkpUGlNkvs67mQfY5/BmvyWDJ/QM/CP 9SxlB0yZVNqCKOGkGgC8MFwHRpkEkaSBaMXsWFWlPXNJyaRVdBEqsEgq/h3nSS0u WVxaHidkiM8tPuE84PHug== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledruddvkedgkeelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgfgsehtqhertderreejnecuhfhrohhmpedfnfgr rhhrhicuifgrrhhfihgvlhgufdcuoehlrghrrhihsehgrghrfhhivghlughtvggthhdrtg homheqnecuggftrfgrthhtvghrnhepffffffejffdugfegvedviedttedvgfejffefffej leefjeetveehgefhhfdvgfelnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hmrghilhhfrhhomheplhgrrhhrhiesghgrrhhfihgvlhguthgvtghhrdgtohhm X-ME-Proxy: Feedback-ID: i8414410d:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 9F2AA1700093; Sun, 31 Mar 2024 13:18:02 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-333-gbfea15422e-fm-20240327.001-gbfea1542 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 Message-ID: In-Reply-To: References: Date: Sun, 31 Mar 2024 12:17:42 -0500 To: "php internals" Subject: Re: [PHP-DEV] [RFC] Invoke __callStatic when non-static public methods are called statically Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable From: larry@garfieldtech.com ("Larry Garfield") 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 sta= tic-like manner is common *in Laravel*=20 > > It might be correct to say that this is specific to Laravel. The=20 > problem, however, is that Laravel is used so extensively that it canno= t=20 > be ignored. True, but as someone else noted, Laravel already has a workaround in pla= ce for this. 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=20 > accepted, would create problems that did not previously exist. Yet, th= e=20 > existence of `__callStatic` already allows for the issues you've=20 > pointed out to occur. You can already write code like=20 > `foo::bar()::baz()` with the current PHP. The possibility of more=20 > problems arising could indeed be true. In that sense, I understand you= r=20 > 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 anot= her, and trust the feeling is mutual. That you're interested in improvi= ng PHP is to your credit, and I thank you for that. However, that is separate from the proposal itself, which for reasons st= ated I think is not a good one. That should not reflect on you personal= ly in any way, and is explicitly not intended as such. Certainly I've h= ad enough of my proposals rejected around here. :-) --Larry Garfield