diff options
author | Martijn Otto <martijn.otto@copernica.com> | 2014-02-14 16:30:23 +0100 |
---|---|---|
committer | Martijn Otto <martijn.otto@copernica.com> | 2014-02-14 16:30:23 +0100 |
commit | 06aa5fd5afaba69544b93654fb0a4f9c2651306e (patch) | |
tree | 99cd2ee120786a84531b450f9ef64e2319ef5192 /src/function.cpp | |
parent | 5c23fee5ce58ae66a70f3bd19a1dc2dff7220f13 (diff) |
Merged pull request #14
Diffstat (limited to 'src/function.cpp')
-rw-r--r-- | src/function.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/function.cpp b/src/function.cpp index 376b453..3fa5fe6 100644 --- a/src/function.cpp +++ b/src/function.cpp @@ -101,7 +101,7 @@ Function::~Function() * @param classname Optional class name * @param pub Is this a public property? */ -void Function::fill(zend_function_entry *entry, const char *classname, bool pub) const +void Function::fill(zend_function_entry *entry, const char *classname, int flags) const { // fill the members of the entity, and hide a pointer to the current object in the name entry->fname = _ptr; @@ -110,7 +110,8 @@ void Function::fill(zend_function_entry *entry, const char *classname, bool pub) entry->num_args = _argc; // there are no flags like deprecated, private or protected - entry->flags = classname ? (pub ? ZEND_ACC_PUBLIC : ZEND_ACC_PROTECTED) : 0; + entry->flags = classname ? flags : 0; + // we should fill the first argument as well #if PHP_VERSION_ID >= 50400 |