[php-src] PR #20499: Fix GH-20491: SLES15 compile error with mbstring oniguruma

From: Date: Sun, 16 Nov 2025 00:26:20 +0000
Subject: [php-src] PR #20499: Fix GH-20491: SLES15 compile error with mbstring oniguruma
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-34068@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/20499 Author: ndossche The issue is specific to SLES15. Arguably this should be reported to them as it seems to me they meddled with the oniguruma source code. The definition in oniguruma.h on that platform looks like this (same as upstream): ```c ONIG_EXTERN int onig_error_code_to_str PV_((OnigUChar* s, int err_code, ...)); ``` Where PV_ is defined as (differs): ```c ``` So that means that HAVE_STDARG_PROTOTYPES is unset. This can be set if we define HAVE_STDARG_H, which we can do because PHP requires at least C99 in which the header is always available. We could also use an autoconf check, but this isn't really necessary as it will always succeed.

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