diff options
author | Gu Weigang <guweigang@outlook.com> | 2013-12-13 13:29:34 +0800 |
---|---|---|
committer | Gu Weigang <guweigang@outlook.com> | 2013-12-13 13:29:34 +0800 |
commit | 7c042cfcee984e16e7024a661c95d2cd3eb0b50b (patch) | |
tree | 1ea956b13fa9108c6b29e7505b998ea2d75954db /src/function.cpp | |
parent | e84fb687091e7093f9aa72f74ce4e678ab84e5f3 (diff) |
add macros for PHP 5.3
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 |