From: Shane Caraveo Date: Tue, 28 Oct 2003 05:24:46 +0000 (+0000) Subject: fix crash in do_implement_interface when compiling X-Git-Tag: RELEASE_2_0_0RC1~35 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4bde74c3bece2793f2dd8f544d296aded72fe9d3;p=php fix crash in do_implement_interface when compiling pear/PHPUnit/Framework/TestCase.php line 63 while only interface_gets_implemented is the issue in this instance, both these vars were unitialized, causing potential other issues --- diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index bd3d16c0b5..0b9d458775 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -3544,6 +3544,8 @@ void zend_initialize_class_data(zend_class_entry *ce, zend_bool nullify_handlers ce->parent = NULL; ce->num_interfaces = 0; ce->interfaces = NULL; + ce->get_iterator = NULL; + ce->interface_gets_implemented = NULL; }