[php-src] PR #16847: Move iconv const check into autoconf

From: Date: Mon, 18 Nov 2024 15:27:38 +0000
Subject: [php-src] PR #16847: Move iconv const check into autoconf
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-29681@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/16847 Author: NattyNarwhal Some systems (older NetBSD pre-10, Solaris) may have a non-standard const parameter with iconv. Instead of hardcoding the OS check, move this to a feature check performed by autoconf. autoconf doesn't have a nicer way of checking this (well, except for AM_ICONV, which is part of gettext and we're presumably not using it), so we have to repeat the function signature and check for it with a mismatched signature. Tested on NetBSD/amd64 9.4 (for const) and macOS/arm64 14 (for non-const).

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