From 5a04796f760a9e4770ccca5006ec5076dec0450c Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Wed, 27 May 2020 09:58:10 +0200 Subject: Fix MSVC level 1 (severe) warnings We fix (hopefully) all instances of: * * * * * * * * `zend_llist_add_element()` and `zend_llist_prepend_element()` now explicitly expect a *const* pointer. We use the macro `ZEND_VOIDP()` instead of a `(void*)` cast to suppress C4090; this should prevent accidential removal of the cast by clarifying the intention, and makes it easier to remove the casts if the issue[1] will be resolved sometime. [1] --- sapi/apache2handler/mod_php.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sapi/apache2handler/mod_php.c') diff --git a/sapi/apache2handler/mod_php.c b/sapi/apache2handler/mod_php.c index 835c5f5c90..e8e97fabeb 100644 --- a/sapi/apache2handler/mod_php.c +++ b/sapi/apache2handler/mod_php.c @@ -19,6 +19,12 @@ #define ZEND_INCLUDE_FULL_WINDOWS_HEADERS #include "php.h" +#ifdef strcasecmp +# undef strcasecmp +#endif +#ifdef strncasecmp +# undef strncasecmp +#endif #include "php_apache.h" AP_MODULE_DECLARE_DATA module php_module = { -- cgit v1.2.1