cvs: php-src(PHP_5_1) /ext/reflection php_reflection.c
| From: | Marcus Boerger | Date: | Sat, 18 Feb 2006 18:14:46 +0000 |
| Subject: | cvs: php-src(PHP_5_1) /ext/reflection php_reflection.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-36917@lists.php.net to get a copy of this message | ||
helly Sat Feb 18 18:14:46 2006 UTC
Modified files: (Branch: PHP_5_1)
/php-src/ext/reflection php_reflection.c
Log:
- MFH Fix naming inconsistency (providing old name as alias)
http://cvs.php.net/viewcvs.cgi/php-src/ext/reflection/php_reflection.c?r1=1.164.2.22&r2=1.164.2.23&diff_format=u
Index: php-src/ext/reflection/php_reflection.c
diff -u php-src/ext/reflection/php_reflection.c:1.164.2.22
php-src/ext/reflection/php_reflection.c:1.164.2.23
--- php-src/ext/reflection/php_reflection.c:1.164.2.22 Mon Feb 13 14:49:26 2006
+++ php-src/ext/reflection/php_reflection.c Sat Feb 18 18:14:45 2006
@@ -20,7 +20,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_reflection.c,v 1.164.2.22 2006/02/13 14:49:26 iliaa Exp $ */
+/* $Id: php_reflection.c,v 1.164.2.23 2006/02/18 18:14:45 helly Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -1862,9 +1862,9 @@
}
/* }}} */
-/* {{{ 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 @@
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)
@@ -4320,7 +4321,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.22
2006/02/13 14:49:26 iliaa Exp $");
+ php_info_print_table_row(2, "Version", "$Id: php_reflection.c,v 1.164.2.23
2006/02/18 18:14:45 helly Exp $");
php_info_print_table_end();
} /* }}} */