johannes Tue Jul 24 23:15:59 2007 UTC Added files: (Branch: PHP_5_2) /php-src/ext/reflection/tests 026.phpt
Modified files: /php-src NEWS /php-src/ext/reflection php_reflection.c Log: - New ReflectionExtension::info() function to print the phpinfo() block for an extension. [DOC] http://cvs.php.net/viewvc.cgi/php-src/NEWS?r1=1.2027.2.547.2.857&r2=1.2027.2.547.2.858&diff_format=u Index: php-src/NEWS diff -u php-src/NEWS:1.2027.2.547.2.857 php-src/NEWS:1.2027.2.547.2.858 --- php-src/NEWS:1.2027.2.547.2.857 Tue Jul 24 22:57:13 2007 +++ php-src/NEWS Tue Jul 24 23:15:58 2007 @@ -35,6 +35,8 @@ (Andrey A. Belashkov, Tony) - Added missing MSG_EOR and MSG_EOF constants to sockets extension. (Jani) - Added PCRE_VERSION constant. (Tony) +- Added ReflectionExtension::info() function to print the phpinfo() block for + an extension. (Johannes) - Implemented FR #41884 (ReflectionClass::getDefaultProperties() does not handle static attributes). (Tony) http://cvs.php.net/viewvc.cgi/php-src/ext/reflection/php_reflection.c?r1=1.164.2.33.2.42&r2=1.164.2.33.2.43&diff_format=u Index: php-src/ext/reflection/php_reflection.c diff -u php-src/ext/reflection/php_reflection.c:1.164.2.33.2.42 php-src/ext/reflection/php_reflection.c:1.164.2.33.2.43 --- php-src/ext/reflection/php_reflection.c:1.164.2.33.2.42 Mon Jul 23 01:13:43 2007 +++ php-src/ext/reflection/php_reflection.c Tue Jul 24 23:15:58 2007 @@ -20,7 +20,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_reflection.c,v 1.164.2.33.2.42 2007/07/23 01:13:43 bjori Exp $ */ +/* $Id: php_reflection.c,v 1.164.2.33.2.43 2007/07/24 23:15:58 johannes Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -4394,6 +4394,20 @@ } /* }}} */ +/* {{{ 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 @@ 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} }; /* }}} */ @@ -4888,7 +4903,7 @@ php_info_print_table_start(); php_info_print_table_header(2, "Reflection", "enabled"); - php_info_print_table_row(2, "Version", "$Id: php_reflection.c,v 1.164.2.33.2.42 2007/07/23 01:13:43 bjori Exp $"); + php_info_print_table_row(2, "Version", "$Id: php_reflection.c,v 1.164.2.33.2.43 2007/07/24 23:15:58 johannes Exp $"); php_info_print_table_end(); } /* }}} */ http://cvs.php.net/viewvc.cgi/php-src/ext/reflection/tests/026.phpt?view=markup&rev=1.1 Index: php-src/ext/reflection/tests/026.phpt +++ php-src/ext/reflection/tests/026.phpt -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php