From 296cbf30db9b5dc79cb16ce30c01b5fb2ecc7686 Mon Sep 17 00:00:00 2001 From: Emiel Bruijntjes Date: Mon, 17 Mar 2014 18:10:44 +0100 Subject: fixed initialization of forgotten structure fields --- src/argument.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/argument.cpp b/src/argument.cpp index 080bf79..ed37d02 100644 --- a/src/argument.cpp +++ b/src/argument.cpp @@ -30,11 +30,15 @@ Argument::Argument(const char *name, Type type, bool required, bool byref) _info->name_len = strlen(name); #if PHP_VERSION_ID >= 50400 _info->type_hint = (unsigned char)(type == Type::Array || type == Type::Callable ? type : Type::Null); +#else + _info->array_type_hint = type == Type::Array; #endif _info->class_name = NULL; _info->class_name_len = 0; _info->allow_null = false; _info->pass_by_reference = byref; + _info->return_reference = false; + _info->required_num_args = 0; // @todo is this correct? // store if required _required = required; -- cgit v1.2.3