diff options
author | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-03-11 14:25:17 +0100 |
---|---|---|
committer | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-03-11 14:25:17 +0100 |
commit | c659c37e4db9c96f01f7e540135e392174a34cb3 (patch) | |
tree | ca8a519749bf661450f3831003247117415e00b4 /src | |
parent | fc5c9305507f8eb899070b0d6d72ddb27c3bfc0f (diff) |
update documentation about __call
Diffstat (limited to 'src')
-rw-r--r-- | src/classbase.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/classbase.cpp b/src/classbase.cpp index e6fb88f..2c8efef 100644 --- a/src/classbase.cpp +++ b/src/classbase.cpp @@ -103,13 +103,18 @@ static void call_method(INTERNAL_FUNCTION_PARAMETERS) * @param method_len * @return zend_function */ +#if PHP_VERSION_ID < 50399 zend_function *ClassBase::getMethod(zval **object_ptr, char *method_name, int method_len) +#else +zend_function *ClassBase::getMethod(zval **object_ptr, char *method_name, int method_len, const struct _zend_literal *key) +#endif { // something strange about the Zend engine (once more). The structure with // object-handlers has a get_method and call_method member. When a function is - // called, the get_method function is called first, but the call_method function - // will later never be called again -- this is typical - + // called, the get_method function is called first, to retrieve information + // about the method (like the handler that should be called to execute it), + // after that, this returned handler is also called. The call_method property + // of the object_handlers structure however, never gets called. Typical. // retrieve the class entry linked to this object auto *entry = zend_get_class_entry(*object_ptr); |