From 8ae4de63a85ad21442948aa35f45e28368c91929 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Tue, 8 Nov 2005 08:58:26 +0000 Subject: [PATCH 1/1] - honor other REGISTER_CLASS macros too # actually INIT_CLASS_ENTRY should/could do that... --- php_http_std_defs.h | 2 ++ 1 file changed, 2 insertions(+) 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); \ -- 2.30.2