Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:129427 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 E8F521A00BC for ; Mon, 24 Nov 2025 11:27:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1763983640; bh=agO1xTZVOVmkhsHI/rx14jrCmJobtj4c/7Fh1nT28t8=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=EwmeK8vIMQRyNAVoiAcqI5EzhfPvq18lEcRKvi4Nn2d++ctRFeFl55ebWSWhJzu9r muNcRi+tQrycXEtmjr2Ip1flgErO2S9BHpOqNcfEF0p1HKnDpMWpMu4/naugIP+GWN PTIyMgYBqN5dto9l2uvspdlyttxNymkYYjVOAHvJRUGVI/DACiJs5gNzASx0SbH9G5 t1eVGFU/3dDLNWlX783leB3gZcp+7x+hmLZ3xP2XLeIBNoG/shFlmnGYLCVHSnA+KT n7D/6OwHff/GPA9QPcjRUdT0mVd/EEWqIyF5QyHr09WfgBigm+9oxR9pZHmRuTVrhf zjzKHl+NmiDAw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id E32C6180072 for ; Mon, 24 Nov 2025 11:27: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.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from mail-ej1-f44.google.com (mail-ej1-f44.google.com [209.85.218.44]) (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 ; Mon, 24 Nov 2025 11:27:19 +0000 (UTC) Received: by mail-ej1-f44.google.com with SMTP id a640c23a62f3a-b73161849e1so728723566b.2 for ; Mon, 24 Nov 2025 03:27:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1763983633; x=1764588433; 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=agO1xTZVOVmkhsHI/rx14jrCmJobtj4c/7Fh1nT28t8=; b=gQpQZ5DaOniFXM0yscApaV0zEcdpVwa3dtW8epX4kaMUPdO19EmIfindz/lZtBJxih N8dScQLS5qry1bDcjIxB4Qf5OzFwjNOL76RsVb4/ZCvicAVzOKJFxlfiazA5zpzvRxnL gnkVjp6AZjlAcywEJ0ObR1fgIxuEhuU5Uf6zxDZUGKmDiAzPw9TTmSnXuwxu4YxyMB0D 4gv1xIZ1rVdHqxTS0m1bHT6FuccPCNZQn5MZWPFPk/zr6YOhhyNgbcVf5kux6tnmtzJ3 BoNlwMNb75C0dR2mcwsh1gPrwaltYvaS8h7qM32nd93kxHuIwEAGY0dsJn+1hKxUYXmU 7YSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763983633; x=1764588433; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=agO1xTZVOVmkhsHI/rx14jrCmJobtj4c/7Fh1nT28t8=; b=uqb6f3VpVkLxH+9YhofsArXh/RenuwRktakGk7l5eARlBj4iNiiHFTK4AWVegse9yB Cq8lknjVTOD4zye7rpOuyGlwPKCwovyaWEbgkl88osQQk7tQGCzgQ2D8BLNCbaO1ELoa 3q8sLja3yoyApCkK13/dTToyO3F1d5WOoCxlvJsNqb1nmLKUxTQFGzTJDGA3R1oKG/dR 0K40qfO7V6SGnNC19LrcKPMO2vN8dlA05Pwqo0b9yfPsIiZ9Mq8ZwkkLoPgNFbi20T4N 8fGs+zVUryT3tdr2eHADbWC2PDYCbsorQ5zpvAls3X84+oWuJKofs0eZZBAm5AvLSwOl qVSg== X-Gm-Message-State: AOJu0Yza5OgJLXc0I37acMsSoS5BFBhD1t7mY051hAeiO6qWnNtS5myn m06V1txzxdafWOqZ7mbOD+p0KWUroD/1bToWFC/6AnSq8vKappRr5Fbm5JnH+2nAofqdDAi2K22 gEQBXhVujULd2kW4lpcKrcRHFXi/eZcTTsFTw X-Gm-Gg: ASbGncsBNkPr1yYK1qDbmZjh9nmcTH8LVP+Y71P6kORmikd+IroMmZelcWar0sK8S+y wLudtr1C1rqSc/FgY9uInS9gpsajcoM3BlTQKFRYnzoAikdpP7mt4BLYDGQq2Y61uMv0P/FGHHq ZdCctOhnet/PJ9qzWS4dsEBo6VrNrvhY0h/8g5hw52tJAt47XSib5N4nsv44n5ROtAB52kKiVg6 FGn3PFcPsxAWpwBRsPvt5/uSRK2MAZ1D8uo2WRQ6riIKD3fvqCx/HmR4YZQNIQTOSURqK/jGgEZ rJgADieqStFCn7doghjJKCMz X-Google-Smtp-Source: AGHT+IGxHLwf93OdvSpEh6pLspHiH3ko0wokmKPqfkH6u9ftdAUVHWVm9kkuQODGqX3Kzmthhk8cLWRhfgeeu+dv4ug= X-Received: by 2002:a17:906:181b:b0:b76:7fe7:ff37 with SMTP id a640c23a62f3a-b767fe8084emr738503566b.18.1763983633431; Mon, 24 Nov 2025 03:27:13 -0800 (PST) Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 References: <9b6665e9-7daa-4138-9e4d-180425cc7c8c@bastelstu.be> In-Reply-To: Date: Mon, 24 Nov 2025 12:27:02 +0100 X-Gm-Features: AWmQ_bkEtUlob8REkjQCqHFtyrhlfjG8OeIkXj9_kebtSqrqF_xB2nwd4XgxrJs Message-ID: Subject: Re: [PHP-DEV] Re: [RFC] Add pack()/unpack() support for signed integers with specific endianness To: "Marc B." Cc: internals@lists.php.net Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable From: alex.daubois+php@gmail.com (Alexandre Daubois) Hello Marc, Le dim. 23 nov. 2025 =C3=A0 18:04, Marc B. a =C3=A9crit = : > Quoting the docs from Perl, it's also supported to use <> modifiers on fl= oating point values but I haven't found any note about it in your RFC. In m= y opinion it makes sense to allow these modifiers on fd as well for the sam= e reasons as QLS. Thanks for this information! I think that it would make sense. I added this to the future scope section of the RFC. While I'm eager to go deeper into the floating points topic with pack/unpack, I feel that it would deserve a follow-up RFC so this one doesn't grow too much. This one's focus on integers as its title and URL suggest, but the core feature is actually adding support for modifiers now. In the scenario of this one being accepted, we would have plenty of time to create a follow-up and implement it (especially since modifiers would have already been accepted). =E2=80=94 Alexandre Daubois