diff options
| author | Xinchen Hui <laruence@php.net> | 2012-08-04 10:41:26 +0800 |
|---|---|---|
| committer | Xinchen Hui <laruence@php.net> | 2012-08-04 10:41:26 +0800 |
| commit | 03a1fcabf31210d3f304bfacf5096ce43c2b8f93 (patch) | |
| tree | 53b8940d4d584f43ee9dc7941d0532072f2030d5 /Zend/zend_API.h | |
| parent | 49b202f2cfe04d577671b685b7c0d3a096a433c7 (diff) | |
| download | php-git-03a1fcabf31210d3f304bfacf5096ce43c2b8f93.tar.gz | |
Fixed bug #62744 (dangling pointers made by zend_disable_class)
the test will be added while commit the fix for #62737
Diffstat (limited to 'Zend/zend_API.h')
| -rw-r--r-- | Zend/zend_API.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Zend/zend_API.h b/Zend/zend_API.h index 0a2a595557..ddd84fa584 100644 --- a/Zend/zend_API.h +++ b/Zend/zend_API.h @@ -170,6 +170,11 @@ typedef struct _zend_fcall_info_cache { int _len = class_name_len; \ class_container.name = zend_strndup(class_name, _len); \ class_container.name_length = _len; \ + INIT_CLASS_ENTRY_INIT_METHODS(class_container, functions, handle_fcall, handle_propget, handle_propset, handle_propunset, handle_propisset) \ + } + +#define INIT_CLASS_ENTRY_INIT_METHODS(class_container, functions, handle_fcall, handle_propget, handle_propset, handle_propunset, handle_propisset) \ + { \ class_container.builtin_functions = functions; \ class_container.constructor = NULL; \ class_container.destructor = NULL; \ |
