[php-src] PR #17259: Fix FD getting code on big endian
| From: | NattyNarwhal | Date: | Tue, 24 Dec 2024 21:07:04 +0000 |
| Subject: | [php-src] PR #17259: Fix FD getting code on big endian | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-30107@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/17259
Author: NattyNarwhal
stream casting as FD returns a php_socket_t, which is an int, but zend_long is 64-bit (on those
platforms). This works on LE by accidental (unless it forgets to clear the high word), but is fatal
on big endian.
fb2443ac5c9990f1cc9adb3e8781b50cd6f03d54 in master seems to have made this obvious, but the issue
exists in earlier versions too. Fixes a regression introduced by that commit on big endian. (see
GH-17258 for CI there)