From: Michael Wallner Date: Tue, 8 Nov 2005 08:58:26 +0000 (+0000) Subject: - honor other REGISTER_CLASS macros too X-Git-Tag: RELEASE_0_18_0~26 X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=commitdiff_plain;h=8ae4de63a85ad21442948aa35f45e28368c91929 - honor other REGISTER_CLASS macros too # actually INIT_CLASS_ENTRY should/could do that... --- diff --git a/php_http_std_defs.h b/php_http_std_defs.h index e8f8b4d..b5a5377 100644 --- a/php_http_std_defs.h +++ b/php_http_std_defs.h @@ -210,6 +210,7 @@ typedef int STATUS; # define HTTP_REGISTER_CLASS(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 = NULL; \ name## _ce = zend_register_internal_class_ex(&ce, parent, NULL TSRMLS_CC); \ @@ -219,6 +220,7 @@ typedef int STATUS; # define HTTP_REGISTER_EXCEPTION(classname, cename, parent) \ { \ zend_class_entry ce; \ + memset(&ce, 0, sizeof(zend_class_entry)); \ INIT_CLASS_ENTRY(ce, #classname, NULL); \ ce.create_object = NULL; \ cename = zend_register_internal_class_ex(&ce, parent, NULL TSRMLS_CC); \