mirror of
https://github.com/php/php-src.git
synced 2025-08-17 22:48:57 +02:00
Add ReflectionMethod::isDeprecated(). Patch reviewed by Marcus Börger <helly@php.net>.
This commit is contained in:
parent
0f1209ab3d
commit
865eaa67b5
1 changed files with 10 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue