Files
php-src/sapi/apache2handler
Louis-Arnaudandlacatoire b2cf4608e7 Enforce zero arity in apache_get_version() and apache_get_modules() (#23102)
Both functions are declared with no parameters in the stub, but neither
implementation called ZEND_PARSE_PARAMETERS_NONE(), so extra positional
arguments were silently accepted instead of raising ArgumentCountError.

Every other zero-arity function of the same SAPI (apache_request_headers(),
apache_response_headers(), getallheaders()) already enforces its arity, and
so does the litespeed implementation of apache_get_modules(). No stub or
arginfo change is needed.

Co-authored-by: lacatoire <ext-lacatoire@cenef.fr>
2026-08-07 18:05:37 +01:00
..