Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:129028 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 889791A00BC for ; Fri, 31 Oct 2025 13:28:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1761917305; bh=VWm4Dba2Y5PFgxb3jot2iTKA6P3vUcQu2BthPSvQsG4=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=OFLcmwkQPKRFCzUixZSH8DxG+c64cKZ8AafLpTgmAz2nxDthU0rRO7y1OhC460H4v WQvdx1j8KCadx3hIXG38yK8QgU6sPpOgQ27Ny5ovBE49mL+Ac9W2uCWesaUTrDsHJN b8xxrlVa7Us3jN/+GqNptuzfSCfIhJNsJ6RkED29onsPFNiA+tSKSj2gHzF6R2OnYG hFm98MzG9BHkjYdMl89MglViBSqFOjfuD0j8JYOoPcBkNyvawgB43O6DN9QNyAqmzo 15gfcCr3cNMidCKQw32OkqJkobDJ6+SKjacGoBxIi18bt03FDDm1OS18Vk49ZudNf8 bRTEE68mNazvA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 29B6A180041 for ; Fri, 31 Oct 2025 13:28:21 +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_PASS,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,T_SPF_TEMPERROR autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from mail-ed1-f48.google.com (mail-ed1-f48.google.com [209.85.208.48]) (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 ; Fri, 31 Oct 2025 13:28:10 +0000 (UTC) Received: by mail-ed1-f48.google.com with SMTP id 4fb4d7f45d1cf-63c45c11be7so3872408a12.3 for ; Fri, 31 Oct 2025 06:28:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1761917285; x=1762522085; darn=lists.php.net; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=VWm4Dba2Y5PFgxb3jot2iTKA6P3vUcQu2BthPSvQsG4=; b=O6WUNQff2aU4nvpVpM+nvmQijSvb1g9mm9UHvgeFvsf4YlxeX/aodtcMsgsP2h4A5Y XEWk5cWWetlhv1KR5yLrnIH3vBKZPA2LGYdrc8N2oGxyFolI46YU9jT2Uj4Lvg2klJDu hZBfFwpUu46Ci93SJWpbNjUrtOwv6gdMrJvw6omhhiiLdTsth2EUAXsTB4n2tq27UTFL fHOkmdD5hK9OEQ02InLV3bupO0lFXGwWld2Qkje/ewwU9a7fdbOYzeJt9+zqaO09jjvT wGdTReJJiIXBf0M9poTOZlYlNHZhgqJmQdT9q1Se3pKVK7AYd7pQNja9vu/XmFdP58qe 4VpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1761917285; x=1762522085; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=VWm4Dba2Y5PFgxb3jot2iTKA6P3vUcQu2BthPSvQsG4=; b=Tx8GUClBFlfB3hneg9qBllK0T9DJI4z8eU3WrwEAFTwUiS/GVq65R/OqYTLFDBdZvH HhP+6T4+WD8fXaHalEYPDHu4N7RIVqfra8RZ3WfXWkTHKi252RlqCXNaRc1A+wUoGUOx Wu+leun6AgzzGDjOf6Ok8VQHkibVxQ+agjQ4uEJeo2PBKWK7wKgkVhHfVz9vCHEZ116d mc/qgOt14F3m0JYLyc35N8e1PDRo6i4neeOvG41D4tBEeE0Yd+SsrKNGys5Y2xMzDp1S sxVBt7UXbcFLj+Ylp01/Op3+Z8iSEtdmST10inQnbDZEuesGGLCkO95w8oWLHfyKTNtF nk9Q== X-Gm-Message-State: AOJu0YxQCyfiD4owbKWYb8of1mktVo4ysXTJAMX+m9f24ytDunhcN51t 216BoKZNO4JbXwnjXJjY50qzCZjl6kSXQ1vRpsQskppYXIdvFfsITd9Hv9OYLghrzLn2QFb+Poh 80dFkEKiBzSTG3W9Q/iCkdDcdj+K31TW9Z2bR X-Gm-Gg: ASbGnctYeX98FOglUPP5bv2hObxgiJnE10fseLOY/PEj67xnG5TBlw8x3iEvkihAGc4 g2LURNxBKptoRFXaybflh9sF++/xLcr8H4Q44C+sNullopV4KuyBicfRXjASavC8XJ9JK3/9GG5 zq4GfUPMU3KVqJS5uuqU+OEiFQ/VtGJxQ1Ehyog+lbt+JM4p8ErVHIrgPuQhtMTx2etUyAJrP1T wIVfWrJeHdhGi9WGLO2FCtWNkQ92Qovg3xeADuVFoSxl0B/r1KRkEi/bT9TZC2nSuD6XNQhodR4 MVVlyYKGtdWdSKk= X-Google-Smtp-Source: AGHT+IFnAgaRB/QfRQSfgSIL/KEd8hHbEdix5KHrRMf38eXb5SRDqd/x1JyylbQpQJfQ1uJ9H18V+KVA919VKmNojUc= X-Received: by 2002:a05:6402:438a:b0:63c:2d72:56e3 with SMTP id 4fb4d7f45d1cf-64077013134mr2826531a12.23.1761917284270; Fri, 31 Oct 2025 06:28:04 -0700 (PDT) Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 References: <86c27cd68c8ba8056d832a845eb15dcd@bastelstu.be> In-Reply-To: <86c27cd68c8ba8056d832a845eb15dcd@bastelstu.be> Date: Fri, 31 Oct 2025 14:27:52 +0100 X-Gm-Features: AWmQ_bmhamF9SW-95s7O1VBYmz0DVn3TKzaTObQbpb2y83Z23-NETT7zJTiRAZI Message-ID: Subject: Re: [PHP-DEV] Re: [RFC] Add pack()/unpack() support for signed integers with specific endianness To: =?UTF-8?Q?Tim_D=C3=BCsterhus?= Cc: PHP internals list Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable From: alex.daubois+php@gmail.com (Alexandre Daubois) Hi Tim, > I will vote against the RFC in its current state for the reasons that I > outlined before. Given the previous exchanges, I totally get it. Thank you for taking time to discuss this topic! > It's needlessly diverging from Perl by inventing new letters that are > not even internally consistent with the existing letters (lowercase vs > uppercase is 16 bit vs 32 bit, not LE vs BE). It is also still making > the false statement that Perl's approach doesn't work for PHP when we > established during the discussion that it does work, if we want it to > work. It's also needlessly confusing the reader by including information > about a PR #19368 implementation that can easily be mistaken for > something that is already an established fact rather than a proposal. I reworked the wording a bit and labeled the implementation as "proposed PR" instead of "current PR" to reduce potential confusion. Best, =E2=80=94 Alexandre Daubois