diff options
author | Johannes Schlüter <johannes@php.net> | 2007-07-24 23:15:58 +0000 |
---|---|---|
committer | Johannes Schlüter <johannes@php.net> | 2007-07-24 23:15:58 +0000 |
commit | 179c67a64bb9e5999504061ff66cdb5ce66d1b1d (patch) | |
tree | d2517406ce069ff6d0166057f9ab2caf63eb9738 /ext/reflection/php_reflection.c | |
parent | e3b8cf0f66bdb2765c17b633c4d9df4a51e6e025 (diff) | |
download | php-git-179c67a64bb9e5999504061ff66cdb5ce66d1b1d.tar.gz |
- New ReflectionExtension::info() function to print the phpinfo() block
for an extension. [DOC]
Diffstat (limited to 'ext/reflection/php_reflection.c')
-rw-r--r-- | ext/reflection/php_reflection.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index e4f7407b1d..916a0a3188 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -4394,6 +4394,20 @@ ZEND_METHOD(reflection_extension, getDependencies) } /* }}} */ +/* {{{ proto public void ReflectionExtension::info() U + Prints phpinfo block for the extension */ +ZEND_METHOD(reflection_extension, info) +{ + reflection_object *intern; + zend_module_entry *module; + + METHOD_NOTSTATIC_NUMPARAMS(reflection_extension_ptr, 0); + GET_REFLECTION_OBJECT_PTR(module); + + php_info_print_module(module TSRMLS_CC); +} +/* }}} */ + /* {{{ method tables */ static zend_function_entry reflection_exception_functions[] = { {NULL, NULL, NULL} @@ -4770,6 +4784,7 @@ static zend_function_entry reflection_extension_functions[] = { ZEND_ME(reflection_extension, getClasses, NULL, 0) ZEND_ME(reflection_extension, getClassNames, NULL, 0) ZEND_ME(reflection_extension, getDependencies, NULL, 0) + ZEND_ME(reflection_extension, info, NULL, 0) {NULL, NULL, NULL} }; /* }}} */ |