fix(extgen): only register ext_functions if functions are declared

This commit is contained in:
Alexandre Daubois
2025-11-17 15:20:57 +01:00
committed by Kévin Dunglas
parent 8341cc98c6
commit eeb7d1a0c4

View File

@@ -172,7 +172,7 @@ PHP_MINIT_FUNCTION({{.BaseName}}) {
zend_module_entry {{.BaseName}}_module_entry = {STANDARD_MODULE_HEADER,
"{{.BaseName}}",
ext_functions, /* Functions */
{{if .Functions}}ext_functions{{else}}NULL{{end}}, /* Functions */
PHP_MINIT({{.BaseName}}), /* MINIT */
NULL, /* MSHUTDOWN */
NULL, /* RINIT */