Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:128723 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 C29231A00BC for ; Wed, 24 Sep 2025 21:45:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1758750264; bh=bgYFXTpuzWRoWWysdgkdQIlUGt6HxX5nm6n5gj4r6gM=; h=Date:From:To:Cc:In-Reply-To:References:Subject:From; b=FMjopMdy8Brksdkfxax03YJRO+UNQYiTT62jEfoH80xZeNIfl9yAevGyErBZQMGU4 aaurWWG+6VuyEAtePJwdGZ8wrdeJeNoQtoQZTYLQMTlhAP9UVrbQdqVVcdUKe0N1hr lr+KSlTQylI9ObSo45yIYITlhYoFNDCe7xcI0IqPfLp0JTnpVfUhEsUReqBwLVhJ5i MiPmUyaEetH/jBtrRrb14CWWuKTXgK3h9XIAcimnxTmcaKhNAKeGQY1O0qkX2e1Sri Hrd+VP8Cdz4L3+RY6kG+Sv8pDbXiwMgESGfX6aHqSrICqQIcvSK/gb0xG5S6ekd56M tsSe5wYloZLig== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id AE92018006D for ; Wed, 24 Sep 2025 21:44:23 +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,HTML_MESSAGE, 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 fhigh-b1-smtp.messagingengine.com (fhigh-b1-smtp.messagingengine.com [202.12.124.152]) (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, 24 Sep 2025 21:44:23 +0000 (UTC) Received: from phl-compute-05.internal (phl-compute-05.internal [10.202.2.45]) by mailfhigh.stl.internal (Postfix) with ESMTP id 027E17A015F; Wed, 24 Sep 2025 17:45:43 -0400 (EDT) Received: from phl-imap-05 ([10.202.2.95]) by phl-compute-05.internal (MEProxy); Wed, 24 Sep 2025 17:45:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bottled.codes; h=cc:cc: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=1758750343; x= 1758836743; bh=bgYFXTpuzWRoWWysdgkdQIlUGt6HxX5nm6n5gj4r6gM=; b=r MFYnDSwZhYM7mrw+6MgLpT8EBoUntZeKbvwH7gw8uRMsK/oXwa++CVLk0W3KF30r 4Ws+mqVA/GDYn4r7rkTfijRAqkJRHaxDWmkj38VVCQ1/zBmyK0xyAE6UGBxPuvau ovvAS1GZeVK+9FD6XgYjn6MbsSDisWi0sUetYqVztYHucZ5kIOME+nQhM6o6ZgIr HkDaJEvsm0mSHbp/gWmnsfuKOW7r+bth8KVszHUaZLyQXRnhyV5I5T9Asxh4Ae+S 49e3IIXWZWxjkzPnB1i6w4pV3cDWcMTjmV3fSs+XgMNlcRB8nQI6bvD6C5D5FICy 165r4syqP8jlnSqRpokxw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc: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=fm1; t= 1758750343; x=1758836743; bh=bgYFXTpuzWRoWWysdgkdQIlUGt6HxX5nm6n 5gj4r6gM=; b=XClfPa3nvhf6295yC9wn9a77TbOLwQHJJ9MN3Pa5l2DOv41ofaW TlUgR5TGRy0MceaaHviYr3iSlrFwiHs6QfPX0Z6bPDFCJaL7dl+KvP+ReY98P/9f NQ4HHbCRrOot4HQXLFfec6BRa2AGb8AYPslFTMqP4Z7voX2rLnt5eg2/32bPY0Fl 8GVH5ufsq8mO6cbcRHO81xyGh3G01lrCLeQkGAbIIUL09PfaPPky1odsi14FslRY iVztUqqJEj/7rzqNI1mEwHV34GKkdNyTCBGo3U2IcbksCWyeTDev++0XB8gI2B2I t1UDtrJKOrD8z/MHHj/CiSokyhyoOrtW7lQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggdeigeejvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpefoggffhffvvefkjghfufgtsegrtderreertdejnecuhfhrohhmpedftfhosgcunfgr nhguvghrshdfuceorhhosgessghothhtlhgvugdrtghouggvsheqnecuggftrfgrthhtvg hrnhepieeuteehvddvfeejhffgieehleehhedthfefkeejffelgfevvdekudetjeejtddt necuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprhhosg essghothhtlhgvugdrtghouggvshdpnhgspghrtghpthhtohepfedpmhhouggvpehsmhht phhouhhtpdhrtghpthhtohepthhimhessggrshhtvghlshhtuhdrsggvpdhrtghpthhtoh eprghlvgigrdgurghusghoihhsodhphhhpsehgmhgrihhlrdgtohhmpdhrtghpthhtohep ihhnthgvrhhnrghlsheslhhishhtshdrphhhphdrnhgvth X-ME-Proxy: Feedback-ID: ifab94697:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id 50290182007E; Wed, 24 Sep 2025 17:45:43 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface Precedence: list list-help: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 X-ThreadId: AypYfSb8ssWo Date: Wed, 24 Sep 2025 23:45:21 +0200 To: "Alexandre Daubois" , =?UTF-8?Q?Tim_D=C3=BCsterhus?= Cc: "PHP internals list" Message-ID: In-Reply-To: References: <327029177342d39a2a29051c3f28062b@bastelstu.be> Subject: Re: [PHP-DEV] [RFC] Add pack()/unpack() support for signed integers with specific endianness Content-Type: multipart/alternative; boundary=f9dff0034f64461191cc20c76ad09c33 From: rob@bottled.codes ("Rob Landers") --f9dff0034f64461191cc20c76ad09c33 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Wed, Sep 24, 2025, at 09:28, Alexandre Daubois wrote: > Hi, >=20 > > I'm proposing to introduce the `<` and `>` modifiers, following Perl= 's > > lead. This would then allow to deprecate e, E, g, and G in a future > > version and if / when that happens, PHP would be in sync with Perl > > again. I'm not proposing that the deprecation should happen at the s= ame > > time, because folks should have at least one PHP version to migrate > > where the new logic is available, but the old is not yet deprecated. >=20 > That would be an interesting addition. Given that only those 4 have > diverged from Perl, that could be great to sync them again. Let's wait > for other inputs to see if someone agrees with the idea before > potentially revamping the RFC. I personally like it. >=20 > =E2=80=94 Alexandre Daubois >=20 Hi, I like the idea of following Perl, but also I have some concerns: 1. It will make it hard or impossible to justify adding something to PH= P that isn=E2=80=99t in Perl. The fact that they=E2=80=99re different is= a boon and a curse. That being said, nobody has really changed this or = proposed anything PHP specific in a long time.=20 2. This is a pretty breaking change, so will it have to land in PHP 9.0 3. Which begs the question, what will be the next version of PHP? 9.0 o= r 8.6? =E2=80=94 Rob --f9dff0034f64461191cc20c76ad09c33 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable


On Wed, Sep 24, 2025, at 09:28, Alexandre Daubois wrot= e:
Hi,

> I'm proposing to introduce the `<` and `>` m= odifiers, following Perl's
> lead. This would then allow to= deprecate e, E, g, and G in a future
> version and if / wh= en that happens, PHP would be in sync with Perl
> again. I'= m not proposing that the deprecation should happen at the same
> time, because folks should have at least one PHP version to migrat= e
> where the new logic is available, but the old is not ye= t deprecated.

That would be an interesting addi= tion. Given that only those 4 have
diverged from Perl, that co= uld be great to sync them again. Let's wait
for other inputs t= o see if someone agrees with the idea before
potentially revam= ping the RFC. I personally like it.

=E2=80=94 A= lexandre Daubois


Hi= ,

I like the idea of following Perl, but also I= have some concerns:
  1. It will make it hard or impossible= to justify adding something to PHP that isn=E2=80=99t in Perl. The fact= that they=E2=80=99re different is a boon and a curse. That being said, = nobody has really changed this or proposed anything PHP specific in a lo= ng time. 
  2. This is a pretty breaking change, so will it have= to land in PHP 9.0
  3. Which begs the question, what will be the ne= xt version of PHP? 9.0 or 8.6?

=E2=80=94 Rob
--f9dff0034f64461191cc20c76ad09c33--