summaryrefslogtreecommitdiff
path: root/ext/reflection/php_reflection.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/reflection/php_reflection.c')
-rw-r--r--ext/reflection/php_reflection.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c
index cfc84fca6c..b6727460f7 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) {