diff options
author | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-03-17 18:10:44 +0100 |
---|---|---|
committer | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-03-17 18:10:44 +0100 |
commit | 296cbf30db9b5dc79cb16ce30c01b5fb2ecc7686 (patch) | |
tree | 1e7c40a22857c59321108fd047eb78ef42af8af5 /src | |
parent | cf1cd5c771db918dc73609848780f1b51f1f47f4 (diff) |
fixed initialization of forgotten structure fields
Diffstat (limited to 'src')
-rw-r--r-- | src/argument.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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; |