]> granicus.if.org Git - php/commitdiff
fix crash in do_implement_interface when compiling
authorShane Caraveo <shane@php.net>
Tue, 28 Oct 2003 05:24:46 +0000 (05:24 +0000)
committerShane Caraveo <shane@php.net>
Tue, 28 Oct 2003 05:24:46 +0000 (05:24 +0000)
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

Zend/zend_compile.c

index bd3d16c0b56e11d1f7e124a7958200357055469d..0b9d458775ec897b5c5d01104ef4c8d6df8173ef 100644 (file)
@@ -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;
 }