Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:129001 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 96BA21A00C1 for ; Wed, 29 Oct 2025 16:58:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1761757106; bh=oPq1nRmSERsKw7DueETTtsPgiBAYKYBPZ+8vVq4HwVc=; h=Date:From:To:CC:Subject:In-Reply-To:References:From; b=HbcjV2MPajqYTfedQiO3Cy+NYej3/cCIujGgK+s96twXjjShKVaeywSwe8HvBQYOa lcFtjOjOS1clGEyua29AyT9c14yuU+hGdoAd9VXPsoyqiIIi3jpflYYmnlYsehBQj/ X1+QJp2YrFud7QBBpTLI+Ww9j+hRX9KDUnXS/H4vP+PVAE2l1Ph7CrOzK1/B6Hz7t+ wyj1JbqbeAEPC8fKGvuN1cxR/NnEsPEjLPCAscA1UC5y+fludOZwqGU1L5epHXx35K /ydjtzl5TvP5QbBZzgbq1f0Jeja60F7wixh8ByuJdPzvmqchuwJ0FIsh3bU5SdlQI5 QNYt8nJBivOjA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 0A559180389 for ; Wed, 29 Oct 2025 16:58:24 +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=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from fout-a6-smtp.messagingengine.com (fout-a6-smtp.messagingengine.com [103.168.172.149]) (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 ; Wed, 29 Oct 2025 16:58:21 +0000 (UTC) Received: from phl-compute-03.internal (phl-compute-03.internal [10.202.2.43]) by mailfout.phl.internal (Postfix) with ESMTP id 37469EC018C for ; Wed, 29 Oct 2025 12:58:16 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-03.internal (MEProxy); Wed, 29 Oct 2025 12:58:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rwec.co.uk; h=cc :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=fm3; t=1761757096; x=1761843496; bh=oPq1nRmSERsKw7DueETTtsPgiBAYKYBPZ+8vVq4HwVc=; b= GKDXZ0atAVdQ71udX7X23u21g8NXK/XDq6bXEx0sncAwtMv0ATdo3bhlVonVQWIB n91BxP5ZjEg24Xhudq84BssDDw9gKOCgA2sNytJYj/da/Y58ERx5e7M+trxpFnS+ CCHRzOa8xqETVtJz17Yaxh1zsH/j2vIi0yD7rnScIPo5ei8Zvh8aYbnVHClTDQs1 la9Pf1qPfcky+Ji/uOk9hqhzxBzyzueLOhTimxNT0an5WgMRmNwmF0jziwbOOvLT OHKU5R8vBN4INgc0IvtkIWvTt058s0bF+bblmiV3GRfr+tHZNzC3yikbQlVLeD1y KzFF6lGEqT16BpDjsMgeLA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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-sender:x-me-sender:x-sasl-enc; s=fm3; t=1761757096; x= 1761843496; bh=oPq1nRmSERsKw7DueETTtsPgiBAYKYBPZ+8vVq4HwVc=; b=B 3NUtZlnHSsJ3izvz/h5yj2Vug1vpwdk+hd9OOBpc5DKn2pjr6DqZmat/QdfzrAUb BaNIRv+qrJQICTesVE5T8Q7mIinG+q+lUzm0LNRn2qJHgseEBPj07BT1nr2GIl6w FdHHh7Njufr96YNe56NoxPCwmaroOhuf0/NsLbuLgn+UdI83Sog/uLLk3if2KMzk ysL68ERXc24V0MwSzElR57Qol7QP+//6dEtlImO8J0khp1U90nsxr/ev8eQ/t2PO WBU8xyydxlFcbbp5uTJPHW5CuKtVlRaXYv7yh6Oppsna2g7XzXDGgJUdqTptOe6P ohONRRXiCwW/cjfi7Bvig== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggdduieegvdejucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepfffhvfevufgfjghfkfggtgfgsehtqhhmtddtreejnecuhfhrohhmpedftfhofigr nhcuvfhomhhmihhnshculgfkoffuohfrngdfuceoihhmshhophdrphhhphesrhifvggtrd gtohdruhhkqeenucggtffrrghtthgvrhhnpeettdeifeeltdeluddukedvvedutdekgeeg ueeuiedvledtvefgvdeuteetieffffenucffohhmrghinhepphhhphdrnhgvthenucevlh hushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehimhhsohhprdhp hhhpsehrfigvtgdrtghordhukhdpnhgspghrtghpthhtohepuddpmhhouggvpehsmhhtph houhhtpdhrtghpthhtohepihhnthgvrhhnrghlsheslhhishhtshdrphhhphdrnhgvth X-ME-Proxy: Feedback-ID: id5114917:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Wed, 29 Oct 2025 12:58:15 -0400 (EDT) Date: Wed, 29 Oct 2025 16:58:14 +0000 To: PHP Internals CC: "internals@lists.php.net" Subject: =?US-ASCII?Q?RE=3A_=5BPHP-DEV=5D_Change_=60se?= =?US-ASCII?Q?tlocale=28=29=60_to_use_the_=60u?= =?US-ASCII?Q?selocale=28=29=60_C_function_if_available_on_POSIX_too?= User-Agent: K-9 Mail for Android In-Reply-To: References: Message-ID: <2C589089-CA71-40DB-AE79-C3C12680489D@rwec.co.uk> Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: imsop.php@rwec.co.uk ("Rowan Tommins [IMSoP]") On 29 October 2025 15:56:21 GMT, Marc Henderkes wrote: >I assume it=E2=80=99s not a bug because it=E2=80=99s the documented in th= e manual at https://www=2Ephp=2Enet/manual/en/function=2Esetlocale=2Ephp Perhaps "known limitation" is a better term than "bug"=2E I don't think an= yone considers this a *feature*, or would deliberately make use of it; the = general advice is just "don't use it in multi-threaded contexts"=2E This was one of the main reasons given for deprecating strftime() in PHP 8= =2E1 - because it was not thread safe, users should be encouraged to use so= mething else=2E Removing that limitation is not likely to be controversial, in principle= =2E What is probably needed is detailed *technical* discussion of the propo= sed approach, so a Pull Request is probably more relevant than an RFC=2E [PS: policy on this list is to edit quoted text and place your reply below= , as I've done here, rather than above as many email clients do by default] Rowan Tommins [IMSoP]