Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:128705 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 EE1F11A00BC for ; Tue, 16 Sep 2025 14:14:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1758031979; bh=7R3BB2X9LhCNuxDkXlBCeYPHgRonWHGPLDi2AH/JwWI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=UXtWl7BseaGsndXDeX+jqzAaTPfQf/v2vLyP84A9TUn57P9TpIfY9ibHJHkxG1yis /ky2F0mDQMO/p/Xj4nkCt0ljBtNiFXqr/cTfoj0OzJoqFSs+Ct95HwpAlvd57GXDJK +SgFIdEMhOoC1i9hVBT4FHPj87DslThfS45G74OlvFWyqgt/VgecVcAGl4Ye3WiggC pz0BDfGf6YcjUmxVvRmhjXLVrKqBctfC0srUzV4rfhMMLHcPKT4sv+ykOQrKHa30NX g9Y9BShbPVgi7rm/r7HcVldM7TGzmX+otoCUKBXILACzNtkIHBvKAa68usGVQYoi/E vJ0hJ9dz8vyLw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 243871801E9 for ; Tue, 16 Sep 2025 14:12:58 +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.7 required=5.0 tests=BAYES_05,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from chrono.xqk7.com (chrono.xqk7.com [176.9.45.72]) (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 ; Tue, 16 Sep 2025 14:12:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1758032060; bh=vB4CuyX206VbhsQWdnG65jMwiP36FqB7zz2L4CTtBnc=; h=MIME-Version:Date:From:To:Cc:Subject:In-Reply-To:References: Message-ID:Content-Type:from:to:cc:subject:message-id; b=YGFEmOHEFlU8SIUPOQFOVs2rHQfE0ZiEEtN2nTM8HAY6QRnLX/KhT21HU4PJja1jf KBWUPsU1EmxutK/YdBy9uHcxQkYlPupFH2VA+QR4t1rcafRzaUVI6I6XdBUzkbwyhp I7TE3x4NjEa1PX2wKFLINzAqgn7JZeqRCazKevISC9k+ilhIwNQF+rGXudekUKnlRv kA3vbHeL06TVA4Di/pt81bOe00DCbanwL68RcihCurioRRc0tqkFJ6bUAR9/y9HLO7 n3fon5MvjIOjQpXe+ZNNwmV+vcDgRWfTYnz+fq7XqPFb1e7Vf1bamTaK2qoL+hMQyx z3V9zN1uSarow== Precedence: list list-help: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 Date: Tue, 16 Sep 2025 16:14:19 +0200 To: Alexandre Daubois Cc: PHP internals list Subject: Re: [PHP-DEV] [RFC] Add pack()/unpack() support for signed integers with specific endianness In-Reply-To: References: Message-ID: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit From: tim@bastelstu.be (=?UTF-8?Q?Tim_D=C3=BCsterhus?=) Hi Am 2025-09-16 13:45, schrieb Alexandre Daubois: > Here is the link to the RFC: > https://wiki.php.net/rfc/pack-unpack-endianness-signed-integers-support Thank you for the RFC. I'm confused by the “Why Perl's Approach Cannot Be Used in PHP” section. > 1. Base Letters Already Taken The point of a modifier is to modify something. That means that there needs to be a “base letter”. The same base letters are also “taken” in Perl and have the same definition. > 2. Parser Architecture Limitations That sounds like a simple problem to solve. When reaching one of the “base letters” in question, look at the next character. > 3. Different Design Philosophy This is simply false. v/n/V/N identically exist in Perl. J is not clear to me, and P appears to be different (but I don't do enough Perl to say for certain). Best regards Tim Düsterhus