For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > July 2007 > cvs: php-src(PHP_5_2) / NEWS /ext/reflection php_reflection.c /ext/reflection/tests









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author cvs: php-src(PHP_5_2) / NEWS /ext/reflection php_reflection.c /ext/reflection/tests
Johannes Schlüter

2007-07-24, 10:00 pm

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-s...8&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-s...3&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-s...=markup&rev=1.1
Index: php-src/ext/reflection/tests/026.phpt
+++ php-src/ext/reflection/tests/026.phpt
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com