[php-src] PR #13713: Refactor ext/mbstring/libmbfl/config.h usage

From: Date: Thu, 14 Mar 2024 16:58:57 +0000
Subject: [php-src] PR #13713: Refactor ext/mbstring/libmbfl/config.h usage
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-25419@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/13713 Author: petk This simplifies the libmbfl/config.h usage and removes duplicate compile definitions on Windows (HAVE_STRICMP). The _WIN32 symbol is always defined when compiling on Windows with any current compiler, the HAVE_CONFIG_H symbol is defined only when doing phpize build inside mbstring extension (an edge case but if that is used by someone perhaps), otherwise the regular main/php_config.h is used. This is sort of an addition to make it managing changes in #13516 easier. The include style of angle brackets is based on the linked PR. Perhaps we don't even need phpize build for the mbstring extension since it is part of the php-src core. But I'm not sure what is the accepted usage for this so I've added it like it was previously in the config.m4 file (the config.h included with absolute path). I'm adding also @arnaud-lb in the PR to have an overview a bit and when @alexdowad has time for checking this a bit. Regarding Windows, I have another change planned there with this HAVE_STRICMP but that is beyond the scope here and can be done in the future.

« previous php.git-pulls (#25419) next »