[php-src] Issue #20491: gcc-15 can't compile 8.4.14

From: Date: Sat, 15 Nov 2025 12:27:05 +0000
Subject: [php-src] Issue #20491: gcc-15 can't compile 8.4.14
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-251227@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/20491 Author: VARGA-Peter ### Description Compiling 8.4.14 fails with gcc 15.2.0 /builds/php-8.4.14/ext/mbstring/php_mbregex.c: In function ‘php_mbregex_compile_pattern’: /builds/php-8.4.14/ext/mbstring/php_mbregex.c:472:25: error: too many arguments to function ‘onig_error_code_to_str’; expected 0, have 3 472 | onig_error_code_to_str(err_str, err_code, &err_info); | ^~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~ In file included from /builds/php-8.4.14/ext/mbstring/php_mbregex.c:31: /usr/include/oniguruma.h:751:5: note: declared here 751 | int onig_error_code_to_str PV_((OnigUChar* s, int err_code, ...)); | ^~~~~~~~~~~~~~~~~~~~~~ /builds/php-8.4.14/ext/mbstring/php_mbregex.c: In function ‘_php_mb_regex_ereg_replace_exec’: /builds/php-8.4.14/ext/mbstring/php_mbregex.c:1070:25: error: too many arguments to function ‘onig_error_code_to_str’; expected 0, have 2 1070 | onig_error_code_to_str(err_str, err); | ^~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~ /usr/include/oniguruma.h:751:5: note: declared here 751 | int onig_error_code_to_str PV_((OnigUChar* s, int err_code, ...)); | ^~~~~~~~~~~~~~~~~~~~~~ /builds/php-8.4.14/ext/mbstring/php_mbregex.c: In function ‘zif_mb_split’: /builds/php-8.4.14/ext/mbstring/php_mbregex.c:1242:17: error: too many arguments to function ‘onig_error_code_to_str’; expected 0, have 2 1242 | onig_error_code_to_str(err_str, err); | ^~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~ /usr/include/oniguruma.h:751:5: note: declared here 751 | int onig_error_code_to_str PV_((OnigUChar* s, int err_code, ...)); | ^~~~~~~~~~~~~~~~~~~~~~ /builds/php-8.4.14/ext/mbstring/php_mbregex.c: In function ‘_php_mb_regex_ereg_search_exec’: /builds/php-8.4.14/ext/mbstring/php_mbregex.c:1383:17: error: too many arguments to function ‘onig_error_code_to_str’; expected 0, have 2 1383 | onig_error_code_to_str(err_str, err); | ^~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~ /usr/include/oniguruma.h:751:5: note: declared here 751 | int onig_error_code_to_str PV_((OnigUChar* s, int err_code, ...)); ### PHP Version ```plain PHP 8.4.14 ``` ### Operating System SLES 15 SP7

« previous php.bugs (#251227) next »