diff options
author | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-03-11 16:03:55 +0100 |
---|---|---|
committer | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-03-11 16:03:55 +0100 |
commit | 849c1c4cd7901213e54af954646a80137ad95619 (patch) | |
tree | 5e1c47c3337b15d866da00426a5e548564f55b45 /include/classbase.h | |
parent | 75321da61984251d6f5ab97f57efb2050f4dadf2 (diff) |
implemented __invoke method
Diffstat (limited to 'include/classbase.h')
-rw-r--r-- | include/classbase.h | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/include/classbase.h b/include/classbase.h index f0fe37b..6dba316 100644 --- a/include/classbase.h +++ b/include/classbase.h @@ -352,11 +352,28 @@ private: static int callMethod(const char *method, int ht, struct _zval_struct *return_value, struct _zval_struct **return_value_ptr, struct _zval_struct *this_ptr, int return_value_used); static int callMethod(char *method, int ht, struct _zval_struct *return_value, struct _zval_struct **return_value_ptr, struct _zval_struct *this_ptr, int return_value_used); - + /** + * Method that returns information about the function signature of a undefined method + * @param object_ptr + * @param method + * @param method_len + * @param key + * @return zend_function + */ static union _zend_function *getMethod(struct _zval_struct **object_ptr, char *method, int method_len, const struct _zend_literal *key); static union _zend_function *getMethod(struct _zval_struct **object_ptr, char *method, int method_len); /** + * Method that returns information about the __invoke() method + * @param object + * @param entry + * @param func + * @param object_ptr + * @return int + */ + static int getClosure(struct _zval_struct *object, struct _zend_class_entry **entry, union _zend_function **func, struct _zval_struct **object_ptr); + + /** * Name of the class * @var string */ |