Newsgroups: php.internals
Path: news.php.net
Xref: news.php.net php.internals:125330
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 6D3121A00BD
	for <internals@lists.php.net>; Tue, 27 Aug 2024 21:51:57 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail;
	t=1724795630; bh=0USYfvK1Sl8otbFXmTqZ/L8x6StrBRuuKW0gMTxZatE=;
	h=Date:Subject:To:References:From:In-Reply-To:From;
	b=lVaSEKI1x+/Nns42+DsJO+9yImCsegqwuixLvlVSyoDOF6LqxajI49ZkMOOmPqv5k
	 S84tfj2w133BIdFTgjOGGw56/+Mw87wHO67lH+24t0YsTRAq5Co1zhKBoQdQZWc2Q6
	 Lv17aCwGeKRjsu9WRrU0ErhMtEmTUT2UXVkkG2nHbwOSCbhwa1jKw/KlSWM9TjEzBo
	 f5lYAFu1dvE7hQ3BOke5U2VOnmQ3RqTa502vQ/fcXEM8uplnlbLNcDL6JPiMBwumP8
	 GYbLEnUclNjViMVLjqhXJsvXlKxZKvjSZFq7BsH1qx46viVJXQmXgWScyfqNLVSeb3
	 BR33RcZpeidRg==
Received: from php-smtp4.php.net (localhost [127.0.0.1])
	by php-smtp4.php.net (Postfix) with ESMTP id 9D74718003E
	for <internals@lists.php.net>; Tue, 27 Aug 2024 21:53:49 +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,DKIM_SIGNED,
	DKIM_VALID,DMARC_MISSING,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,
	SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.0
X-Spam-Virus: No
X-Envelope-From: <bilge@scriptfusion.com>
Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44])
	(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 <internals@lists.php.net>; Tue, 27 Aug 2024 21:53:49 +0000 (UTC)
Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-42816ca782dso52399575e9.2
        for <internals@lists.php.net>; Tue, 27 Aug 2024 14:51:55 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=scriptfusion-com.20230601.gappssmtp.com; s=20230601; t=1724795514; x=1725400314; darn=lists.php.net;
        h=content-transfer-encoding:in-reply-to:from:content-language
         :references:to:subject:user-agent:mime-version:date:message-id:from
         :to:cc:subject:date:message-id:reply-to;
        bh=quMtls9a6qdBxVuSj1gxQkPXjQcJ0aTbggz5UfFUdG0=;
        b=eKJKgF+QoX+AKJx3loMXJ1+AxrwaihU5rjjI0peIiISu7nMBdpK8sBRXnarQT0aJz5
         uflriPf86GR11P9cZeztGRLPDeeLu8mUxSMfwQk2q/iNtoumPpTyCAHDUH0MV1Vmg+Kr
         g9voirJZuNawT7waCClgs2hpS89u7Db4HtdQihmnWcJINxC62ydfgB00vSDgGGTRNJV9
         VUrY0oPGSSO3GMeILlem5h/OCL+UsTtSuKdyjSf2NmVTuBYV/3UjN43n2O4rogetYoF9
         HcKQm9YzbEE+rKEmf52gZGn5BOhevrPiNLJWfxHpNkQOJFSbW+5BsRSyWIL2jriioS+z
         c1DA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20230601; t=1724795514; x=1725400314;
        h=content-transfer-encoding:in-reply-to:from:content-language
         :references:to:subject:user-agent:mime-version:date:message-id
         :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
        bh=quMtls9a6qdBxVuSj1gxQkPXjQcJ0aTbggz5UfFUdG0=;
        b=Pe5790JVBn90QuXRqRQTg6ZZyDWPUIFXv9e6OGDQ7fMYNFfxiobIdVt84etLMmyRyx
         ZpDVF/v0ufeVx0iWc/v6/mms3gMXqBVvBTHQ+ZeZIjQ+TTe6HByBEa0BpHum50FqwefG
         KeUxBi52sBBKY/dsgbFCr4Sdq8hMamjjRxORkWBrrlaVPrLhs7OGuq0p7bZenTVU91v5
         VrJ3jC2idybtDpgHMoKr4GFppuQ/FJG5RC8ipFSDv1l68t7kSsORVvg9vQ3dsqrKZM8+
         6dn+4EzAtl+uWsHb1P1Xq1cb0vQYYHtZK6ob4/FAsQViWslxOTKjRrCnvXUj5RfvbK/W
         0FVA==
X-Gm-Message-State: AOJu0YxWqEi+woQWFuueEt+aNly1XYp5v08jhcmpLMDBd0tFtILgiECe
	9tG8JwhiVxBsCmW7EoOusJ3pRYlR8G+F6ujU66mvZwduhek6XftWEyJQeXSLYH+aQWNEv/f0aE0
	V
X-Google-Smtp-Source: AGHT+IETqVTrOZMJRR8LUs4uccjxz4jkiHdzt85JsW/h6tekPwcnUlIw2kS/U7PPLNzULhddOHiYkg==
X-Received: by 2002:adf:e8cc:0:b0:371:7e1b:871b with SMTP id ffacd0b85a97d-37311863a23mr10893186f8f.29.1724795514177;
        Tue, 27 Aug 2024 14:51:54 -0700 (PDT)
Received: from ?IPV6:2a01:4b00:bf09:5101:2d6b:9f7d:264e:8295? ([2a01:4b00:bf09:5101:2d6b:9f7d:264e:8295])
        by smtp.googlemail.com with ESMTPSA id ffacd0b85a97d-373081ff5c4sm14095548f8f.78.2024.08.27.14.51.53
        for <internals@lists.php.net>
        (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
        Tue, 27 Aug 2024 14:51:53 -0700 (PDT)
Message-ID: <20e14927-f691-4b74-a49b-1148aaf94d83@scriptfusion.com>
Date: Tue, 27 Aug 2024 22:51:52 +0100
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>
Content-Language: en-GB
In-Reply-To: <672fc21c-5fed-4cbe-9642-bc8e56f4955f@bastelstu.be>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
From: bilge@scriptfusion.com (Bilge)

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