diff options
Diffstat (limited to 'src/function.cpp')
-rw-r--r-- | src/function.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/function.cpp b/src/function.cpp index cc4315f..a2864ac 100644 --- a/src/function.cpp +++ b/src/function.cpp @@ -106,7 +106,9 @@ void Function::fill(zend_function_entry *entry, const char *classname, bool pub) entry->flags = classname ? (pub ? ZEND_ACC_PUBLIC : ZEND_ACC_PROTECTED) : 0; // we should fill the first argument as well +#if PHP_VERSION_ID >= 50400 fill((zend_internal_function_info *)entry->arg_info, classname); +#endif } /** @@ -114,6 +116,7 @@ void Function::fill(zend_function_entry *entry, const char *classname, bool pub) * @param info Info to be filled * @param classname Optional classname */ +#if PHP_VERSION_ID >= 50400 void Function::fill(zend_internal_function_info *info, const char *classname) const { // fill in all the members, note that return reference is false by default, @@ -133,6 +136,7 @@ void Function::fill(zend_internal_function_info *info, const char *classname) co // passing by reference is not used info->pass_rest_by_reference = false; } +#endif /** * End of namespace |