mirror of
https://github.com/php/frankenphp.git
synced 2026-03-24 00:52:11 +01:00
fix(extgen): only register ext_functions if functions are declared
This commit is contained in:
committed by
Kévin Dunglas
parent
8341cc98c6
commit
eeb7d1a0c4
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user