diff options
author | Marcus Boerger <helly@php.net> | 2006-02-18 18:14:45 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2006-02-18 18:14:45 +0000 |
commit | afd8f0b608cbcbefb6d8ec5c02541a08295d20eb (patch) | |
tree | f96bf538469cb80c1c2c608afaed11b6d13cc9b8 /ext/reflection/php_reflection.c | |
parent | 78516c79059e9566cb573998497bd72b7be1a0dc (diff) | |
download | php-git-afd8f0b608cbcbefb6d8ec5c02541a08295d20eb.tar.gz |
- MFH Fix naming inconsistency (providing old name as alias)
Diffstat (limited to 'ext/reflection/php_reflection.c')
-rw-r--r-- | ext/reflection/php_reflection.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index d871e36459..13498ed418 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -1862,9 +1862,9 @@ ZEND_METHOD(reflection_parameter, getName) } /* }}} */ -/* {{{ proto public ReflectionClass ReflectionParameter::getClass() +/* {{{ proto public ReflectionClass ReflectionParameter::getDeclaringClass() Returns this parameters's class hint or NULL if there is none */ -ZEND_METHOD(reflection_parameter, getClass) +ZEND_METHOD(reflection_parameter, getDeclaringClass) { reflection_object *intern; parameter_reference *param; @@ -4187,7 +4187,8 @@ static zend_function_entry reflection_parameter_functions[] = { ZEND_ME(reflection_parameter, __toString, NULL, 0) ZEND_ME(reflection_parameter, getName, NULL, 0) ZEND_ME(reflection_parameter, isPassedByReference, NULL, 0) - ZEND_ME(reflection_parameter, getClass, NULL, 0) + ZEND_ME(reflection_parameter, getDeclaringClass, NULL, 0) + ZEND_MALIAS(reflection_parameter, getClass, getDeclaringClass, NULL, 0) ZEND_ME(reflection_parameter, isArray, NULL, 0) ZEND_ME(reflection_parameter, allowsNull, NULL, 0) ZEND_ME(reflection_parameter, isOptional, NULL, 0) |