1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Remove conditional checks for ssize_t type (#18996)

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).
This commit is contained in:
Peter Kokot
2025-07-02 01:45:40 +02:00
committed by GitHub
parent 45c46504e2
commit 8a75b3c50c
5 changed files with 9 additions and 12 deletions

View File

@@ -451,9 +451,6 @@ AC_CHECK_TYPES([socklen_t], [], [], [
#endif
])
dnl These are defined elsewhere than stdio.h.
PHP_CHECK_SIZEOF([ssize_t], [8])
dnl Check stdint types (must be after header check).
PHP_CHECK_STDINT_TYPES