]> granicus.if.org Git - php/commitdiff
Add missing newline if no static methods are available
authorMarcus Boerger <helly@php.net>
Sat, 6 Sep 2003 13:18:12 +0000 (13:18 +0000)
committerMarcus Boerger <helly@php.net>
Sat, 6 Sep 2003 13:18:12 +0000 (13:18 +0000)
Zend/zend_reflection_api.c
ext/reflection/php_reflection.c

index 8dfe11a55d1df3a069e2e9a9272a0860c7ae7d51..ee9f7a5dff4c3d3c8207a48c89c55bf92cb82abc 100644 (file)
@@ -371,7 +371,7 @@ static void _class_string(string *str, zend_class_entry *ce, zval *obj, char *in
 
                /* static properties */         
                string_printf(str, "\n%s  - Static methods [%d] {", indent, count_static_funcs);
-               if (count > 0) {
+               if (count_static_funcs > 0) {
                        HashPosition pos;
                        zend_function *mptr;
 
index 8dfe11a55d1df3a069e2e9a9272a0860c7ae7d51..ee9f7a5dff4c3d3c8207a48c89c55bf92cb82abc 100644 (file)
@@ -371,7 +371,7 @@ static void _class_string(string *str, zend_class_entry *ce, zval *obj, char *in
 
                /* static properties */         
                string_printf(str, "\n%s  - Static methods [%d] {", indent, count_static_funcs);
-               if (count > 0) {
+               if (count_static_funcs > 0) {
                        HashPosition pos;
                        zend_function *mptr;