Skip to content

Commit eeb7d1a

Browse files
alexandre-dauboisdunglas
authored andcommitted
fix(extgen): only register ext_functions if functions are declared
1 parent 8341cc9 commit eeb7d1a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/extgen/templates/extension.c.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ PHP_MINIT_FUNCTION({{.BaseName}}) {
172172

173173
zend_module_entry {{.BaseName}}_module_entry = {STANDARD_MODULE_HEADER,
174174
"{{.BaseName}}",
175-
ext_functions, /* Functions */
175+
{{if .Functions}}ext_functions{{else}}NULL{{end}}, /* Functions */
176176
PHP_MINIT({{.BaseName}}), /* MINIT */
177177
NULL, /* MSHUTDOWN */
178178
NULL, /* RINIT */

0 commit comments

Comments
 (0)