[php-src] PR #18996: Remove conditional checks for ssize_t type
| From: | petk | Date: | Tue, 01 Jul 2025 11:07:53 +0000 |
| Subject: | [php-src] PR #18996: Remove conditional checks for ssize_t type | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-32268@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/18996
Author: petk
The ssize_t type is already used unconditionally in php-src code everywhere except the
main/s{n,p}printf.c files. On Windows ssize_t is available as an alias to the SSIZE_T defined in
BaseTsd.h (available in affected files through the included windows.h in zend_config.w32.h).
This also makes the Autoconf macro PHP_CHECK_SIZEOF obsolete in favor of the AC_CHECK_SIZEOF, which
is more convenient to check for types without the need to run the test program - omitting the
cross-compilation issues. AC_CHECK_SIZEOF once didn't provide including additional headers
(resolved in Autoconf versions after 2.13).