cvs: php-src(PHP_5_1) /ext/reflection php_reflection.c
| From: | Michael Wallner | Date: | Mon, 06 Feb 2006 20:12:48 +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-36800@lists.php.net to get a copy of this message | ||
mike Mon Feb 6 20:12:48 2006 UTC
Modified files: (Branch: PHP_5_1)
/php-src/ext/reflection php_reflection.c
Log:
MFH: fix ReflectionClass::getInterfaces()
http://cvs.php.net/viewcvs.cgi/php-src/ext/reflection/php_reflection.c?r1=1.164.2.19&r2=1.164.2.20&diff_format=u
Index: php-src/ext/reflection/php_reflection.c
diff -u php-src/ext/reflection/php_reflection.c:1.164.2.19
php-src/ext/reflection/php_reflection.c:1.164.2.20
--- php-src/ext/reflection/php_reflection.c:1.164.2.19 Mon Jan 30 21:14:54 2006
+++ php-src/ext/reflection/php_reflection.c Mon Feb 6 20:12:48 2006
@@ -20,7 +20,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_reflection.c,v 1.164.2.19 2006/01/30 21:14:54 tony2001 Exp $ */
+/* $Id: php_reflection.c,v 1.164.2.20 2006/02/06 20:12:48 mike Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -3320,7 +3320,7 @@
zval *interface;
ALLOC_ZVAL(interface);
zend_reflection_class_factory(ce->interfaces[i], interface TSRMLS_CC);
- add_assoc_zval_ex(return_value, ce->interfaces[i]->name,
ce->interfaces[i]->name_length, interface);
+ add_assoc_zval_ex(return_value, ce->interfaces[i]->name,
ce->interfaces[i]->name_length + 1, interface);
}
}
}
@@ -4328,7 +4328,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.19
2006/01/30 21:14:54 tony2001 Exp $");
+ php_info_print_table_row(2, "Version", "$Id: php_reflection.c,v 1.164.2.20
2006/02/06 20:12:48 mike Exp $");
php_info_print_table_end();
} /* }}} */