X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_std_defs.h;h=b5a5377e524fe19337736382a4876b5a2f8c0d44;hp=e8f8b4dca30c335ab3d59e0f52e10d7b8040593a;hb=8ae4de63a85ad21442948aa35f45e28368c91929;hpb=d5b4a39bf319a580eb7310afb691c81e44e52d71 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); \