[php-src] PR #19368: Fix GH-17068: Add pack()/unpack() format for signed integer endianness
| From: | alexandre-daubois | Date: | Mon, 04 Aug 2025 17:51:33 +0000 |
| Subject: | [php-src] PR #19368: Fix GH-17068: Add pack()/unpack() format for signed integer endianness | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-32789@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/19368
Author: alexandre-daubois
Fix #17068
Adds signed integer endianness support to pack()/unpack() functions. There are 2 new format codes
(from the original issue): m/y for signed 2-byte (little/big endian), M/Y for signed 4-byte
(little/big endian), and p/j for signed 8-byte (little/big endian). It follows the existing pattern
where lowercase matches uppercase endianness.