diff options
Diffstat (limited to 'src/callable.cpp')
-rw-r--r-- | src/callable.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/callable.cpp b/src/callable.cpp index d410c0b..5745d79 100644 --- a/src/callable.cpp +++ b/src/callable.cpp @@ -94,7 +94,7 @@ void Callable::initialize(zend_internal_function_info *info, const char *classna // because we do not support returning references in PHP-CPP, although Zend // engine allows it. Inside the name we hide a pointer to the current object info->_name = _ptr; - info->_name_len = _ptr.length(); + info->_name_len = strlen(_ptr); info->_class_name = classname; // number of required arguments, and the expected return type |