From 865eaa67b5d3ad0ba4bdd400331e28f269cf532c Mon Sep 17 00:00:00 2001 From: Sebastian Bergmann Date: Tue, 21 Feb 2006 20:23:10 +0000 Subject: [PATCH] =?utf8?q?Add=20ReflectionMethod::isDeprecated().=20Patch?= =?utf8?q?=20reviewed=20by=20Marcus=20B=C3=B6rger=20.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- ext/reflection/php_reflection.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index 7fb8cf8cb1..3945f5111d 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -2414,6 +2414,14 @@ ZEND_METHOD(reflection_method, isStatic) } /* }}} */ +/* {{{ 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 @@ static zend_function_entry reflection_method_functions[] = { 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) -- 2.50.1