diff options
| author | Marcus Boerger <helly@php.net> | 2008-12-30 18:17:28 +0000 |
|---|---|---|
| committer | Marcus Boerger <helly@php.net> | 2008-12-30 18:17:28 +0000 |
| commit | 6e29350fb87a1153a3ee1ba85d56b822dd49676b (patch) | |
| tree | e7ab2442fb214c0ec0888608009c65222610c49b /Zend/zend_builtin_functions.c | |
| parent | 4d3f948495345c9444ab3b0cb02e10d568405e71 (diff) | |
| download | php-git-6e29350fb87a1153a3ee1ba85d56b822dd49676b.tar.gz | |
Use a module struct for the built-in functions
Diffstat (limited to 'Zend/zend_builtin_functions.c')
| -rw-r--r-- | Zend/zend_builtin_functions.c | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/Zend/zend_builtin_functions.c b/Zend/zend_builtin_functions.c index d12bb127c4..52f0fb7f4e 100644 --- a/Zend/zend_builtin_functions.c +++ b/Zend/zend_builtin_functions.c @@ -291,15 +291,23 @@ static const zend_function_entry builtin_functions[] = { /* {{{ */ }; /* }}} */ -int zend_startup_builtin_functions(TSRMLS_D) /* {{{ */ -{ - return zend_register_functions(NULL, builtin_functions, NULL, MODULE_PERSISTENT TSRMLS_CC); -} +zend_module_entry zend_builtin_module = { /* {{{ */ + STANDARD_MODULE_HEADER, + "Zend", + builtin_functions, + NULL, + NULL, + NULL, + NULL, + NULL, + ZEND_VERSION, + STANDARD_MODULE_PROPERTIES +}; /* }}} */ -void zend_shutdown_builtin_functions(TSRMLS_D) /* {{{ */ +int zend_startup_builtin_functions(TSRMLS_D) /* {{{ */ { - zend_unregister_functions(builtin_functions, -1, NULL TSRMLS_CC); + return zend_register_internal_module(&zend_builtin_module TSRMLS_CC) == NULL ? FAILURE : SUCCESS; } /* }}} */ |
