mike Mon Feb 6 20:11:56 2006 UTC
Modified files:
/php-src/ext/reflection php_reflection.c
Log:
- fix ReflectionClass::getInterfaces()
http://cvs.php.net/viewcvs.cgi/php-src/ext/reflection/php_reflection.c?r1=1.201&r2=1.202&diff_format=u
Index: php-src/ext/reflection/php_reflection.c
diff -u php-src/ext/reflection/php_reflection.c:1.201
php-src/ext/reflection/php_reflection.c:1.202
--- php-src/ext/reflection/php_reflection.c:1.201 Tue Jan 24 20:19:49 2006
+++ php-src/ext/reflection/php_reflection.c Mon Feb 6 20:11:56 2006
@@ -20,7 +20,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_reflection.c,v 1.201 2006/01/24 20:19:49 helly Exp $ */
+/* $Id: php_reflection.c,v 1.202 2006/02/06 20:11:56 mike Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -3334,7 +3334,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);
}
}
}
@@ -4346,7 +4346,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.201
2006/01/24 20:19:49 helly Exp $");
+ php_info_print_table_row(2, "Version", "$Id: php_reflection.c,v 1.202
2006/02/06 20:11:56 mike Exp $");
php_info_print_table_end();
} /* }}} */
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php