sebastian Tue Feb 21 20:23:10 2006 UTC
Modified files:
/php-src/ext/reflection php_reflection.c
Log:
Add ReflectionMethod::isDeprecated(). Patch reviewed by Marcus Börger <[EMAIL
PROTECTED]>.
http://cvs.php.net/viewcvs.cgi/php-src/ext/reflection/php_reflection.c?r1=1.215&r2=1.216&diff_format=u
Index: php-src/ext/reflection/php_reflection.c
diff -u php-src/ext/reflection/php_reflection.c:1.215
php-src/ext/reflection/php_reflection.c:1.216
--- php-src/ext/reflection/php_reflection.c:1.215 Tue Feb 21 20:12:42 2006
+++ php-src/ext/reflection/php_reflection.c Tue Feb 21 20:23:10 2006
@@ -20,7 +20,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_reflection.c,v 1.215 2006/02/21 20:12:42 dmitry Exp $ */
+/* $Id: php_reflection.c,v 1.216 2006/02/21 20:23:10 sebastian Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -2414,6 +2414,14 @@
}
/* }}} */
+/* {{{ proto public bool ReflectionMethod::isDeprecated()
+ Returns whether this method is deprecated */
+ZEND_METHOD(reflection_method, isDeprecated)
+{
+ _function_check_flag(INTERNAL_FUNCTION_PARAM_PASSTHRU,
ZEND_ACC_DEPRECATED);
+}
+/* }}} */
+
/* {{{ proto public bool ReflectionMethod::isConstructor()
Returns whether this method is the constructor */
ZEND_METHOD(reflection_method, isConstructor)
@@ -4260,9 +4268,10 @@
ZEND_ME(reflection_method, isPublic, NULL, 0)
ZEND_ME(reflection_method, isPrivate, NULL, 0)
ZEND_ME(reflection_method, isProtected, NULL, 0)
- ZEND_ME(reflection_method, isAbstract, NULL, 0)
+ ZEND_ME(reflection_method, isAbstract, NULL, 0)
ZEND_ME(reflection_method, isFinal, NULL, 0)
ZEND_ME(reflection_method, isStatic, NULL, 0)
+ ZEND_ME(reflection_method, isDeprecated, NULL, 0)
ZEND_ME(reflection_method, isConstructor, NULL, 0)
ZEND_ME(reflection_method, isDestructor, NULL, 0)
ZEND_ME(reflection_method, getModifiers, NULL, 0)
@@ -4484,7 +4493,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.215
2006/02/21 20:12:42 dmitry Exp $");
+ php_info_print_table_row(2, "Version", "$Id: php_reflection.c,v 1.216
2006/02/21 20:23:10 sebastian Exp $");
php_info_print_table_end();
} /* }}} */
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php