Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:128706 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 959C91A00BC for ; Tue, 16 Sep 2025 14:25:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1758032659; bh=oRSvy2o2KbO73wywHKTgHulwMsSEtA5T/weS8l5+Q/I=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=V+yfeTcDegHfSPzTsFXG/NQjGkBnvFuh0xW7VaqNWz+sQQRRZvTKZ6upssEQOT0fZ 9ZkYzlDU8rKfYLsnJ88EaVjzL9EOlE4ODNwxswHsm39IvAq0sY04wB3y4Sq//aRFK/ /3DfP67mRlfF1UyCJJLtkA+3XGRrbR/mBIpyxTXaC0bia3ttun4+jk2kyO3wOMPiL8 Lowau9bLHmCNXhy2RYSlDSDB2fvyJzHwsNFIybSvoCy4pH+7MTThp8Wba2k62DYmy4 HrhEhfMGLagggrXJKS8guYjXKhDW6qpMYpUzRjy83pylqgZxxrzFPS+Y8a7crUyJEu dB2xXlKusyY0g== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 315B11801FD for ; Tue, 16 Sep 2025 14:24:19 +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:24:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1758032742; bh=nEPKK5RpjOO2aRIjM8VW7+I/0UyYHx6h1OpJI5VLiPU=; h=MIME-Version:Date:From:To:Cc:Subject:In-Reply-To:References: Message-ID:Content-Type:from:to:cc:subject:message-id; b=beKNLN3ibOoXbPDX7SZCoCeD+E2Tf/LcUMHGZRvf5QHuQBTpYC0372MQk468Wh1YY qdzaEoinN0IKJsWAUVKKfOr9DymxAWW/6nd5xLS/W8RQhucYDRKaPyU9GnMvDDN4Qd luuH9dpDTyOhut/5+uyGcpsXEBKZLwzuA9ihAAxSdHiYu4zrGQJWd2Tpj5Xwp0h34M ENz7Ikg82BtQLiJLUlM/kv/GqloNeVXvbyJ1jMaKHskgWpAW0UIKOmyBjeriDfLDub 2AdXC+4jDj/g676Bts+QF27v7LDsOqzF0vb4w7NDPLG4ScBcayiA91rUUHDPylAbQs o5J426cVjF4EA== Precedence: list list-help: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 Date: Tue, 16 Sep 2025 16:25:41 +0200 To: Alexandre Daubois , nyamsprod@gmail.com Cc: Rob Landers , internals@lists.php.net Subject: Re: [PHP-DEV] [RFC] Add pack()/unpack() support for signed integers with specific endianness In-Reply-To: References: <694fd998-43a2-4c6b-828c-aa1feb81d424@app.fastmail.com> Message-ID: <3deb7c5d3386be11d34e5bb73a4cf72e@bastelstu.be> 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 16:10, schrieb Alexandre Daubois: > seems. I guess it would be better to have dedicated functions. I don't > think it should be included in this RFC, but that is an interesting > idea nevertheless. I'd be really interested if someone comes up with > an RFC for this feature! A better `pack()` with a streamlined format “description” would probably fit with Ignace's proposed new Encoding extension: https://externals.io/message/127716#127716 Best regards Tim Düsterhus