diff options
author | Peter Kokot <peterkokot@gmail.com> | 2018-06-03 04:05:46 +0200 |
---|---|---|
committer | Peter Kokot <peterkokot@gmail.com> | 2018-06-03 04:05:46 +0200 |
commit | 03a3faa1514fc9c8863735fd68cb135958c1a902 (patch) | |
tree | 272ecd13f21a610c0ac52e51b8086a21ad825a6c /ext/sysvshm | |
parent | e147eb24b2d44af4de64fe0ee7fe1355ac3a2bf5 (diff) | |
download | php-git-03a3faa1514fc9c8863735fd68cb135958c1a902.tar.gz |
Sync sysvsem and sysvshm versions in phpinfo
This patch removes the versions of the sysvsem and sysvshm extensions in
the phpinfo output to sync them with PHP core and bundled extensions
versions displayed. Instead it displays the extension enabled status.
Diffstat (limited to 'ext/sysvshm')
-rw-r--r-- | ext/sysvshm/php_sysvshm.h | 1 | ||||
-rw-r--r-- | ext/sysvshm/sysvshm.c | 13 |
2 files changed, 13 insertions, 1 deletions
diff --git a/ext/sysvshm/php_sysvshm.h b/ext/sysvshm/php_sysvshm.h index 24d9675a69..164dc8db59 100644 --- a/ext/sysvshm/php_sysvshm.h +++ b/ext/sysvshm/php_sysvshm.h @@ -71,6 +71,7 @@ typedef struct { } sysvshm_shm; PHP_MINIT_FUNCTION(sysvshm); +PHP_MINFO_FUNCTION(sysvshm); PHP_FUNCTION(shm_attach); PHP_FUNCTION(shm_detach); PHP_FUNCTION(shm_remove); diff --git a/ext/sysvshm/sysvshm.c b/ext/sysvshm/sysvshm.c index d30d826238..e2498d64cb 100644 --- a/ext/sysvshm/sysvshm.c +++ b/ext/sysvshm/sysvshm.c @@ -35,6 +35,7 @@ #include <errno.h> #include "php_sysvshm.h" +#include "ext/standard/info.h" #include "ext/standard/php_var.h" #include "zend_smart_str.h" #include "php_ini.h" @@ -100,7 +101,7 @@ zend_module_entry sysvshm_module_entry = { NULL, NULL, NULL, - NULL, + PHP_MINFO(sysvshm), PHP_SYSVSHM_VERSION, STANDARD_MODULE_PROPERTIES }; @@ -147,6 +148,16 @@ PHP_MINIT_FUNCTION(sysvshm) } /* }}} */ +/* {{{ PHP_MINFO_FUNCTION + */ +PHP_MINFO_FUNCTION(sysvshm) +{ + php_info_print_table_start(); + php_info_print_table_row(2, "sysvshm support", "enabled"); + php_info_print_table_end(); +} +/* }}} */ + /* {{{ proto int shm_attach(int key [, int memsize [, int perm]]) Creates or open a shared memory segment */ PHP_FUNCTION(shm_attach) |