From: Michael Wallner Date: Tue, 8 Nov 2005 08:39:56 +0000 (+0000) Subject: - initialize class entries, or else the ZE will try to access ce->handlers that point... X-Git-Tag: RELEASE_0_18_0~27 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=d5b4a39bf319a580eb7310afb691c81e44e52d71;p=m6w6%2Fext-http - initialize class entries, or else the ZE will try to access ce->handlers that point to nirvana --- diff --git a/php_http_std_defs.h b/php_http_std_defs.h index 40dc8c7..e8f8b4d 100644 --- a/php_http_std_defs.h +++ b/php_http_std_defs.h @@ -197,6 +197,7 @@ typedef int STATUS; # define HTTP_REGISTER_CLASS_EX(classname, name, parent, flags) \ { \ zend_class_entry ce; \ + memset(&ce, 0, sizeof(zend_class_entry)); \ INIT_CLASS_ENTRY(ce, #classname, name## _fe); \ ce.create_object = _ ##name## _new; \ name## _ce = zend_register_internal_class_ex(&ce, parent, NULL TSRMLS_CC); \