From e06836a1a345d0f6975036dc6c0cf7596aa07031 Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Sun, 24 Feb 2019 10:21:25 +0100 Subject: Remove checks for locale.h, setlocale, localeconv The `` header file, setlocale, and localeconv are part of the standard C89 [1] and on current systems can be used unconditionally. Since PHP 7.4 requires at least C89 or greater, the `HAVE_LOCALE_H`, `HAVE_SETLOCALE`, and `HAVE_LOCALECONV` symbols defined by Autoconf in configure.ac [2] can be ommitted and simplifed. The bundled libmagic (file) has also been patched already in version 5.35 and up in upstream location so when it will be patched also in php-src the check for locale.h header is still left in the configure.ac and in windows headers definition file. [1] https://port70.net/~nsz/c/c89/c89-draft.html#4.4 [2] https://git.savannah.gnu.org/cgit/autoconf.git/tree/lib/autoconf/headers.m4 Omit the bundled libmagic files --- sapi/cli/php_cli.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'sapi/cli/php_cli.c') diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c index 364fd13106..82051758f3 100644 --- a/sapi/cli/php_cli.c +++ b/sapi/cli/php_cli.c @@ -48,10 +48,7 @@ #endif #include - -#if HAVE_SETLOCALE #include -#endif #include "zend.h" #include "zend_extensions.h" #include "php_ini.h" -- cgit v1.2.1