diff options
author | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-04-07 10:55:53 +0200 |
---|---|---|
committer | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-04-07 10:55:53 +0200 |
commit | 45a79f33051ed70fd69d3b9943a1e5797402430e (patch) | |
tree | f87bacb47b746182367bbb1e9840f5cb32cbb783 /zend/callable.h | |
parent | e2b543132bdf6cf7c335801139c19cc17dca0c34 (diff) |
objects were not destructed correctly (we freed memory that we had allocated ourselves, but the Zend engine seemed to deallocate the same memory too, which caused a crash), and improved returning values from functions, which crashed when one of the own parameters was directly returned (error mentioned in issue #68)
Diffstat (limited to 'zend/callable.h')
-rw-r--r-- | zend/callable.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/zend/callable.h b/zend/callable.h index 9805174..67863a9 100644 --- a/zend/callable.h +++ b/zend/callable.h @@ -181,6 +181,19 @@ protected: info->allow_null = arg.allowNull(); info->pass_by_reference = arg.byReference(); } + + /** + * Function that is called by the Zend engine every time that a function gets called + * @param ht + * @param return_value + * @param return_value_ptr + * @param this_ptr + * @param return_value_used + * @param tsrm_ls + * @return integer + */ + static void invoke(INTERNAL_FUNCTION_PARAMETERS); + }; /** |