summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-17 18:13:22 +0100
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-17 18:13:22 +0100
commit5d1ca1099a434fb2aba66ae02f93238853a8c3aa (patch)
treec962b054bd94a63a84f7874baf5588462ca91f6d
parent296cbf30db9b5dc79cb16ce30c01b5fb2ecc7686 (diff)
fix compile issue on php > 5.3
-rw-r--r--src/argument.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/argument.cpp b/src/argument.cpp
index ed37d02..268e2e9 100644
--- a/src/argument.cpp
+++ b/src/argument.cpp
@@ -32,12 +32,12 @@ Argument::Argument(const char *name, Type type, bool required, bool byref)
_info->type_hint = (unsigned char)(type == Type::Array || type == Type::Callable ? type : Type::Null);
#else
_info->array_type_hint = type == Type::Array;
+ _info->return_reference = false;
#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