mirror of
https://github.com/php/php-src.git
synced 2026-10-29 18:24:57 +08:00
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>