]> granicus.if.org Git - php/commitdiff
Add missing initialization
authorMarcus Boerger <helly@php.net>
Mon, 31 May 2004 21:46:00 +0000 (21:46 +0000)
committerMarcus Boerger <helly@php.net>
Mon, 31 May 2004 21:46:00 +0000 (21:46 +0000)
Zend/zend_reflection_api.c
ext/reflection/php_reflection.c

index cfc84fca6c0bde8e6018305b929f1091d5c16925..b6727460f74cccb17659c114c33e9967939f6b66 100644 (file)
@@ -941,6 +941,9 @@ static void _reflection_export(INTERNAL_FUNCTION_PARAMETERS, zend_class_entry *c
                }
        }
 
+       INIT_PZVAL(&output);
+       output.refcount = 1;
+
        /* Create object */
        INIT_PZVAL(&reflector);
        if (object_and_properties_init(&reflector, ce_ptr, NULL) == FAILURE) {
index cfc84fca6c0bde8e6018305b929f1091d5c16925..b6727460f74cccb17659c114c33e9967939f6b66 100644 (file)
@@ -941,6 +941,9 @@ static void _reflection_export(INTERNAL_FUNCTION_PARAMETERS, zend_class_entry *c
                }
        }
 
+       INIT_PZVAL(&output);
+       output.refcount = 1;
+
        /* Create object */
        INIT_PZVAL(&reflector);
        if (object_and_properties_init(&reflector, ce_ptr, NULL) == FAILURE) {