Newsgroups: php.internals
Path: news.php.net
Xref: news.php.net php.internals:125331
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 BFBEC1A00BD
	for <internals@lists.php.net>; Wed, 28 Aug 2024 01:29:28 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail;
	t=1724808682; bh=hR7DM0OQUgg4P62CM05YJ3eae3JEB5vG3yR/6eJvHgo=;
	h=Date:Subject:To:References:From:In-Reply-To:From;
	b=O+zgs2qe7jDF0SFTBZIlnkQEDvnT/f2kuYWG4z2M6VyebaMECn8AWR9RuqD2KzHoC
	 LkvMslXJ46zItucRjkif7be43b6lPrND1fSOylHJLEft/IqPXPKmtTd9N/IPAjpW/f
	 zmq2vPyyc1TZL4ikFL27pBKbaipXy+21EazzdI8Mtjfm5lgf3jNKHKunmTj1hPhKM6
	 YXo4KqxFLcKwTlnc7OAL/ffUSzkG9X/SRG1C40atrJTdXO1bWhau1YLiB6O3k02T4b
	 mt0dDjO55DjYkZOOEzCwo6UfcgGKldFxTzdGRxsTjvgDpfh9whAN8G0dkiArCnbuGz
	 YZOfnxdi+sD2g==
Received: from php-smtp4.php.net (localhost [127.0.0.1])
	by php-smtp4.php.net (Postfix) with ESMTP id D41C9180051
	for <internals@lists.php.net>; Wed, 28 Aug 2024 01:31:19 +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=0.8 required=5.0 tests=BAYES_50,DMARC_MISSING,
	SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.0
X-Spam-Virus: No
X-Envelope-From: <weedpacket@varteg.nz>
Received: from megan.smtp.mailx.hosts.net.nz (megan.smtp.mailx.hosts.net.nz [43.245.52.196])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange ECDHE (prime256v1) server-signature RSA-PSS (2048 bits) server-digest SHA256)
	(No client certificate requested)
	by php-smtp4.php.net (Postfix) with ESMTPS
	for <internals@lists.php.net>; Wed, 28 Aug 2024 01:31:18 +0000 (UTC)
Received: from 125-239-198-3-fibre.sparkbb.co.nz ([125.239.198.3] helo=[192.168.1.67])
	by megan.smtp.mailx.hosts.net.nz with esmtpsa authed as varteg.nz  (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_128_GCM:128)
	(Exim 4.96)
	(envelope-from <weedpacket@varteg.nz>)
	id 1sj7Uv-003HcO-2m
	for internals@lists.php.net;
	Wed, 28 Aug 2024 13:29:21 +1200
Message-ID: <ef1e6452-cd91-4b83-bf83-3858554ce913@varteg.nz>
Date: Wed, 28 Aug 2024 13:29:13 +1200
Precedence: bulk
list-help: <mailto:internals+help@lists.php.net
list-unsubscribe: <mailto:internals+unsubscribe@lists.php.net>
list-post: <mailto:internals@lists.php.net>
List-Id: internals.lists.php.net
x-ms-reactions: disallow
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: [PHP-DEV] [RFC] Static Constructor
To: internals@lists.php.net
References: <CAGS0MVC9q+byG_Gogt+kb84TSVKG-FV+5xM=vMTZWQ+nyi4g_g@mail.gmail.com>
 <CABdc3WpMOOzQ7oHhJHsO6wvi=tJYdYn7sPqP-WSiruhhkjWH2Q@mail.gmail.com>
 <CAGS0MVAauNxCN1GtLz9KUP5-9A-G6Mt=RAqtFsB=jme64UzUkg@mail.gmail.com>
 <672fc21c-5fed-4cbe-9642-bc8e56f4955f@bastelstu.be>
 <20e14927-f691-4b74-a49b-1148aaf94d83@scriptfusion.com>
Content-Language: en-GB
In-Reply-To: <20e14927-f691-4b74-a49b-1148aaf94d83@scriptfusion.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Hosts-DKIM-Check: none
From: weedpacket@varteg.nz (Morgan)

On 2024-08-28 09:51, Bilge wrote:
> On 19/06/2024 19:25, Tim Düsterhus wrote:
>> Hi
>>
>> On 6/19/24 16:03, Erick de Azevedo Lima wrote:
>>> I have considered some names, actually. I just chose this one for the
>>> implementation because
>>> I tried to design it to be as close as possible to the C# implementation
>>> and they call it "static constructor".
>>> But the name can be changed to another one without any problem at all.
>>
>> I would suggest `__constructStatic()`. This matches the existing 
>> naming pattern of `__callStatic()` being the companion to `__call()`.
>>
>> Best regards
>> Tim Düsterhus
> 
> Why can't it just be `public static function __construct()`?
> 
> Cheers,
> Bilge

Two functions with the same name in the same class?