Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PHP: Fix read and write of float and double on big endian platforms (p…
…rotocolbuffers#13444) Change the pack/unpack format codes 'f' -> 'g' and 'd' -> 'e' which ensure little endian format is used on the wire regardless of machine endianness. This allows the php composer and conformance tests to pass on big endian platforms and should not change any behavior on little endian platforms. According to the PHP documentation, 'g' and 'e' were added in PHP versions 7.0.15 and 7.1.1. Closes protocolbuffers#13444 COPYBARA_INTEGRATE_REVIEW=protocolbuffers#13444 from linux-on-ibm-z:php-endian-fix 7840e09 PiperOrigin-RevId: 553954880
- Loading branch information