From 20b60f49d98094f11e8a6cc44eb9defd8ef090c3 Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Mon, 31 May 2004 21:46:00 +0000 Subject: [PATCH] Add missing initialization --- Zend/zend_reflection_api.c | 3 +++ ext/reflection/php_reflection.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/Zend/zend_reflection_api.c b/Zend/zend_reflection_api.c index cfc84fca6c0..b6727460f74 100644 --- a/Zend/zend_reflection_api.c +++ b/Zend/zend_reflection_api.c @@ -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) { diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index cfc84fca6c0..b6727460f74 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -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) {