diff options
author | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-04-05 21:15:30 +0200 |
---|---|---|
committer | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-04-05 21:15:30 +0200 |
commit | 21cfa03f1740042d0c48269430e0490e319e1408 (patch) | |
tree | 23b051bee2443030478248734442bf7a1e3fcb58 /ext/shmop | |
parent | c0cbab6002f8b111396c3ab2b9df92cbd0b3448a (diff) | |
download | php-git-21cfa03f1740042d0c48269430e0490e319e1408.tar.gz |
Generate function entries for another batch of extensions
Closes GH-5352
Diffstat (limited to 'ext/shmop')
-rw-r--r-- | ext/shmop/php_shmop.h | 7 | ||||
-rw-r--r-- | ext/shmop/shmop.c | 15 | ||||
-rw-r--r-- | ext/shmop/shmop.stub.php | 2 | ||||
-rw-r--r-- | ext/shmop/shmop_arginfo.h | 19 |
4 files changed, 22 insertions, 21 deletions
diff --git a/ext/shmop/php_shmop.h b/ext/shmop/php_shmop.h index 2181e21893..af17a2b899 100644 --- a/ext/shmop/php_shmop.h +++ b/ext/shmop/php_shmop.h @@ -28,13 +28,6 @@ extern zend_module_entry shmop_module_entry; PHP_MINIT_FUNCTION(shmop); PHP_MINFO_FUNCTION(shmop); -PHP_FUNCTION(shmop_open); -PHP_FUNCTION(shmop_read); -PHP_FUNCTION(shmop_close); -PHP_FUNCTION(shmop_size); -PHP_FUNCTION(shmop_write); -PHP_FUNCTION(shmop_delete); - #ifdef PHP_WIN32 # include "win32/ipc.h" #endif diff --git a/ext/shmop/shmop.c b/ext/shmop/shmop.c index d718c429c9..de2d966143 100644 --- a/ext/shmop/shmop.c +++ b/ext/shmop/shmop.c @@ -46,25 +46,12 @@ php_shmop_globals shmop_globals; int shm_type; -/* {{{ shmop_functions[] - */ -static const zend_function_entry shmop_functions[] = { - PHP_FE(shmop_open, arginfo_shmop_open) - PHP_FE(shmop_read, arginfo_shmop_read) - PHP_FE(shmop_close, arginfo_shmop_close) - PHP_FE(shmop_size, arginfo_shmop_size) - PHP_FE(shmop_write, arginfo_shmop_write) - PHP_FE(shmop_delete, arginfo_shmop_delete) - PHP_FE_END -}; -/* }}} */ - /* {{{ shmop_module_entry */ zend_module_entry shmop_module_entry = { STANDARD_MODULE_HEADER, "shmop", - shmop_functions, + ext_functions, PHP_MINIT(shmop), NULL, NULL, diff --git a/ext/shmop/shmop.stub.php b/ext/shmop/shmop.stub.php index 8ee2eeba9d..92f5c212b8 100644 --- a/ext/shmop/shmop.stub.php +++ b/ext/shmop/shmop.stub.php @@ -1,5 +1,7 @@ <?php +/** @generate-function-entries */ + /** @return resource|false */ function shmop_open(int $key, string $flags, int $mode, int $size) {} diff --git a/ext/shmop/shmop_arginfo.h b/ext/shmop/shmop_arginfo.h index 49afa595db..8832596db1 100644 --- a/ext/shmop/shmop_arginfo.h +++ b/ext/shmop/shmop_arginfo.h @@ -30,3 +30,22 @@ ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_shmop_delete, 0, 1, _IS_BOOL, 0) ZEND_ARG_INFO(0, shmid) ZEND_END_ARG_INFO() + + +ZEND_FUNCTION(shmop_open); +ZEND_FUNCTION(shmop_read); +ZEND_FUNCTION(shmop_close); +ZEND_FUNCTION(shmop_size); +ZEND_FUNCTION(shmop_write); +ZEND_FUNCTION(shmop_delete); + + +static const zend_function_entry ext_functions[] = { + ZEND_FE(shmop_open, arginfo_shmop_open) + ZEND_FE(shmop_read, arginfo_shmop_read) + ZEND_FE(shmop_close, arginfo_shmop_close) + ZEND_FE(shmop_size, arginfo_shmop_size) + ZEND_FE(shmop_write, arginfo_shmop_write) + ZEND_FE(shmop_delete, arginfo_shmop_delete) + ZEND_FE_END +}; |