Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:128219 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 lists.php.net (Postfix) with ESMTPS id 628AF1A00BC for ; Thu, 24 Jul 2025 19:11:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1753384201; bh=ynW+pxh2XE1emB37VDnXatENTYP6ckA198TfgdW7BPY=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=CaRzad3XQAEhCtpFHKSQ3tc/cIlqIfqWx7YCkUL8gzvQ+uztqWVV0ct6NW1wqjI0V LdAQ1uNhLp42SvoeEC4ocboZWcM7nQZlAJgKhcmoVwGnbr0SGawndPmdRJAO3aAPay X03ZGySN3FCyq9eCtPVP1ZKAHjigTzWhJsfezRYwyBHGMB4Z+lwhs7asadJ4FxGH5+ A5phZzJufKiRFTwhRUQBuOt4pxFd+2TfE2yPgSp1IynPViztenoDSGkZQZ2mvfjYhw tHceTX7dGxA0rYtncTYd1OEDuG54sl+q2Fey4GdjGYJccht1Myw9FZ5qh7J7tXY3w3 mdFJ9SncZEWuA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id B259618006E for ; Thu, 24 Jul 2025 19:10:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from premium76-5.web-hosting.com (premium76-5.web-hosting.com [162.213.255.108]) (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 ; Thu, 24 Jul 2025 19:10:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=pmjones.io; s=default; h=To:References:Message-Id:Content-Transfer-Encoding:Cc:Date: In-Reply-To:From:Subject:Mime-Version:Content-Type:Sender:Reply-To:Content-ID :Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To: Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe :List-Post:List-Owner:List-Archive; bh=ynW+pxh2XE1emB37VDnXatENTYP6ckA198TfgdW7BPY=; b=mcwUfPfUxItbZumaERdofDepsw lVF0nI8TeKC63ijO7Welec1LwINUzfkuBqkIQmcivOf5TnoNC/NU9eN9nOO9MeNY1N/RcIg2o146X XUQGg9i9qS5+IDsS5yhBHqaiBrOT5ZUsNIOx40JF5Qr6EZwkUncxdFtWVKkpKDT3lxSowOOeiw6Ke K8Zb4zMczoyI+rkVnI7jvHT+X1nl93EFOTxIaycswcng7YW4MWmLT/KTsluRXgi7U1rJ+9/OhBIx0 VmxlxIiY3OSP7SH/owrTzfI/KBRwf4lk+qiJQfuc54dW52JB9IKeHroeGdwrU2s9a4hYYlDQoLlqU 8YzlVFzA==; Received: from 107-223-28-39.lightspeed.nsvltn.sbcglobal.net ([107.223.28.39]:60755 helo=smtpclient.apple) by premium76.web-hosting.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1uf1Lz-00000005tNB-0nMA; Thu, 24 Jul 2025 15:11:42 -0400 Content-Type: text/plain; charset=us-ascii Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.600.51.1.1\)) Subject: Re: [PHP-DEV] Discussion Short Constructor In-Reply-To: Date: Thu, 24 Jul 2025 14:11:30 -0500 Cc: Deleu , Larry Garfield , php internals Content-Transfer-Encoding: quoted-printable Message-ID: References: <1ecc1fd2-3837-4409-98c8-543b26de4955@app.fastmail.com> <2F7F0393-1E16-4040-AC5E-E3D878FA5A91@pmjones.io> To: Dmitry Derepko X-Mailer: Apple Mail (2.3826.600.51.1.1) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - premium76.web-hosting.com X-AntiAbuse: Original Domain - lists.php.net X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - pmjones.io X-Get-Message-Sender-Via: premium76.web-hosting.com: authenticated_id: pmjones@pmjones.io X-Authenticated-Sender: premium76.web-hosting.com: pmjones@pmjones.io X-Source: X-Source-Args: X-Source-Dir: X-From-Rewrite: unmodified, already matched From: pmjones@pmjones.io ("Paul M. Jones") Hi Dmitry, > On Jul 24, 2025, at 12:41, Dmitry Derepko wrote: >=20 > Good catch for multi-classes per file with such feature, but I think = it's not the time to do it. ... > I think we should discuss the idea of the Short Constructor here. At = least it does not require autoloading changes Not as part of PHP internals anyway -- agreed. > Btw, all possible changes of the autoloading may be proposed to = Composer project without any RFC right now.=20 While we are here, I am working up a more-than-one class per file = autoloader at https://github.com/motophp/autoload -- if it works out, I = expect I'd submit it for the Composer folks for their consideration. -- pmj