[php-src] PR #13898: Improve check for broken iconv //IGNORE

From: Date: Sat, 06 Apr 2024 20:49:36 +0000
Subject: [php-src] PR #13898: Improve check for broken iconv //IGNORE
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-25642@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/13898 Author: petk As discussed in #13894 with @Redfoxymoon about ext/iconv and Autoconf checks... Previous check defined the symbol ICONV_BROKEN_IGNORE to 0 or 1 and the #ifdef macro condition in iconv.c file was always using a bypass. Even when the //IGNORE is supported (for example, on GNU Libiconv). With this change, the ICONV_BROKEN_IGNORE symbol is only defined if the //IGNORE Autoconf check fails or when cross-compiling without setting the php_cv_iconv_ignore variable. This also enables overriding the ext/iconv //IGNORE check when cross-compiling, by setting the php_cv_iconv_ignore variable to "yes" in case the iconv library is known to have a working //IGNORE (for example, GNU libiconv). These cache variables can be set at configure step, when cross-compiling ./configure php_cv_iconv_ignore=yes

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