Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:128721 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 0EFA91A00BC for ; Wed, 24 Sep 2025 07:28:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1758698823; bh=gqM0uf6GSrDlGetMQ1bx3JmyOY8HIUV6zuCQJpYZ+d8=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=OjdfqjnArZuHuT18U1DmDp8bspR+JPCmVx1TWREHDw77kivX09qC6t+QB+nCFOP89 Y4RRW2n7Fu+F1MmEwLE/Sscr7NF2ny+ID7GjJGBFdykOcO3zTuEJvgdE25BEJS+aBx 51NLFCdGfPhJppgLSg/NQTTvHQJYCGMGuSCT7G/cnEf2JjUzSqw47eHPI6QFU30wWf vOLSI5LUKofqr1eGH8fk6uVsE8KS2nvgisudMoL4waLFgAsEEKSpLM+TXBkjOjVK1C +wN3+jzNNybRO2haywP+UEVawhrFfJZt/S3KOz4iuMgfyHbr9w1LN7q7tOU2wJd8ql guO52fwFmNlhg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 3560918037E for ; Wed, 24 Sep 2025 07:26:59 +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-f49.google.com (mail-ed1-f49.google.com [209.85.208.49]) (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 07:26:58 +0000 (UTC) Received: by mail-ed1-f49.google.com with SMTP id 4fb4d7f45d1cf-62fa062a1abso10447916a12.2 for ; Wed, 24 Sep 2025 00:28:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1758698899; x=1759303699; 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=gqM0uf6GSrDlGetMQ1bx3JmyOY8HIUV6zuCQJpYZ+d8=; b=IFHW3WDVE1N79GVPsEc4pXPGPjzgm1/d0NlJdQUcbuz5Gj+0hWHg6UfPCHr4g/9NiA UyS4sfRWNOpgCKl6xepTljEzfVG+Zft73Mf1DYinM4/wApZ+K43ZYFEUPbc1MZxE8FGR vUz114TkyWrLip9pa3rih1WrZ2YsF925v6dwRQ0DvJ+YgTNgAcqUL6TcL7OZ2NGWtAB4 9D2k1MEZrmewkKypKmrW1UeQ5UQd5KAcLM4sl/f2VduGzS/4qcu7VuB/qZGNkgahU0Ag MMcIq2gJ88M7kz337gLBlYFTEYhs9wRwexeBjgii/uEeAlQfCzhaGAjB82liK0nX0gsO sdIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758698899; x=1759303699; 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=gqM0uf6GSrDlGetMQ1bx3JmyOY8HIUV6zuCQJpYZ+d8=; b=SbyK+jfo7LhPdmmaJalT23IaH3CYdQoHSXNp1DVgFo74osAZ5T05MZxKlCNjQuP+VY AS//d5fx2fydzGa54yXVEqMaSTcB8zZv7FwFF18XjUXoNCiEZzkVm8V2XTE/APJLMogG lmZNeZSaK61410xi1+9SUeak+cNScMpDUdhj953jDqXM++ugaPo3JDq1DxrtYlZ599ru lU8/2QP5G+rdnU2YOyYC892qLrfXI2ilnRhGEEz9KgYGuLtvJmhR7TN50t7S9L5URkg5 slCMXv0DzZ7DuLcqsg1qLVTKpTRyDCAo/4QMeQ79kOILcVlBG5GkJXAAtJVesGAsDDZw UORw== X-Gm-Message-State: AOJu0YzZJRi7WFlAXuTO6LPr7Vk2Pe0AVJ8ZteeVRYaicJ9dGLvY4KSQ ElGHSUqXbvquFENMOXrmDWrSrkvJ33QP267gYgJI5qOMI7/Bur6XPMRmVYA4KI9dqptkbyaAK4m 0jYxWUs2QpN2sXXLlnpOwLrhg+L1prGVu9g== X-Gm-Gg: ASbGnctpTeBooHwLZIBTiwz/Q7wlnQCjbeW2hTZ8sUQ8eIytLOVM8tFCPHO4LZFduAO OA4wSu2gjQKNnRzLr0EHnR9USbKygSoA7MMI4HmShOBnrjZ4myGavSJhgKNNLzZsAOgBWJ6H+jX l5CktoltKYnctyOG8AgBCZgSmSZMAbmKW8OakarIyeiPhRAfE+fxHGr6Q8XrBRLZVaGQmgeNMqf yKrcpDQtwFJxbaAC38P1GNRNQOPN7AtgYdUq/BfvA== X-Google-Smtp-Source: AGHT+IE1oqg5KUFosb0/tVli17E+ObqBW5swWSltr8auuMatbdASs0xvJ1p5DvBwg9CZrfOt86XBDLKlo8QcVPUM48c= X-Received: by 2002:a05:6402:42cf:b0:62f:620a:6a21 with SMTP id 4fb4d7f45d1cf-634677b0844mr4819557a12.12.1758698898953; Wed, 24 Sep 2025 00:28:18 -0700 (PDT) Precedence: list list-help: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 References: <327029177342d39a2a29051c3f28062b@bastelstu.be> In-Reply-To: <327029177342d39a2a29051c3f28062b@bastelstu.be> Date: Wed, 24 Sep 2025 09:28:07 +0200 X-Gm-Features: AS18NWAb3mYGKuNTgRezXrotqc7t4o8g8arfHJbrYc5_5CgKB_qD8lOKbEnZxwM Message-ID: Subject: Re: [PHP-DEV] [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, > 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 same > 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. 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. =E2=80=94 Alexandre Daubois