summaryrefslogtreecommitdiff
path: root/src/callable.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/callable.cpp')
-rw-r--r--src/callable.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/callable.cpp b/src/callable.cpp
index 66333d5..5229722 100644
--- a/src/callable.cpp
+++ b/src/callable.cpp
@@ -76,6 +76,9 @@ void Callable::initialize(zend_function_entry *entry, const char *classname, int
entry->num_args = _argc;
entry->flags = flags;
+ std::cout << entry->fname << " num_args " << entry->num_args << std::endl;
+ std::cout << entry->fname << " flags " << entry->flags << std::endl;
+
// we should fill the first argument as well
#if PHP_VERSION_ID >= 50400
initialize((zend_internal_function_info *)entry->arg_info, classname);
@@ -101,6 +104,8 @@ void Callable::initialize(zend_internal_function_info *info, const char *classna
info->required_num_args = _required;
info->_type_hint = (unsigned char)_return;
+ std::cout << "required_num_args " << info->required_num_args << std::endl;
+
// we do not support return-by-reference
info->return_reference = false;