- initialize class entries, or else the ZE will try to access ce->handlers that point...
authorMichael Wallner <mike@php.net>
Tue, 8 Nov 2005 08:39:56 +0000 (08:39 +0000)
committerMichael Wallner <mike@php.net>
Tue, 8 Nov 2005 08:39:56 +0000 (08:39 +0000)
php_http_std_defs.h

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