cvs: ZendEngine2 / zend_reflection_api.c
| From: | Marcus Boerger | Date: | Tue, 16 Sep 2003 19:31:46 +0000 |
| Subject: | cvs: ZendEngine2 / zend_reflection_api.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-1841@lists.php.net to get a copy of this message | ||
helly Tue Sep 16 15:31:46 2003 EDT
Modified files:
/ZendEngine2 zend_reflection_api.c
Log:
- Make it clear whether it is an interface or a class
- Fix static properties
Index: ZendEngine2/zend_reflection_api.c
diff -u ZendEngine2/zend_reflection_api.c:1.64 ZendEngine2/zend_reflection_api.c:1.65
--- ZendEngine2/zend_reflection_api.c:1.64 Sat Sep 6 09:18:12 2003
+++ ZendEngine2/zend_reflection_api.c Tue Sep 16 15:31:45 2003
@@ -19,7 +19,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_reflection_api.c,v 1.64 2003/09/06 13:18:12 helly Exp $ */
+/* $Id: zend_reflection_api.c,v 1.65 2003/09/16 19:31:45 helly Exp $ */
#include "zend.h"
#include "zend_API.h"
#include "zend_default_classes.h"
@@ -257,7 +257,7 @@
if (obj) {
string_printf(str, "%sObject of class [ ", indent);
} else {
- string_printf(str, "%sClass [ ", indent);
+ string_printf(str, "%s%s [ ", indent, (ce->ce_flags & ZEND_ACC_INTERFACE) ?
"Interface" : "Class");
}
string_printf(str, (ce->type == ZEND_USER_CLASS) ? "<user> " :
"<internal> ");
if (ce->ce_flags & ZEND_ACC_ABSTRACT) {
@@ -335,7 +335,7 @@
/* static properties */
string_printf(str, "\n%s - Static properties [%d] {\n", indent, count_static_props);
- if (count > 0) {
+ if (count_static_props > 0) {
HashPosition pos;
zend_property_info *prop;