- honor other REGISTER_CLASS macros too
authorMichael Wallner <mike@php.net>
Tue, 8 Nov 2005 08:58:26 +0000 (08:58 +0000)
committerMichael Wallner <mike@php.net>
Tue, 8 Nov 2005 08:58:26 +0000 (08:58 +0000)
# actually INIT_CLASS_ENTRY should/could do that...

php_http_std_defs.h

index e8f8b4dca30c335ab3d59e0f52e10d7b8040593a..b5a5377e524fe19337736382a4876b5a2f8c0d44 100644 (file)
@@ -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); \