]> granicus.if.org Git - php/commitdiff
Bugfix #23670: implements and extends cause Apache 2 crash
authorMarcus Boerger <helly@php.net>
Sun, 1 Jun 2003 17:28:52 +0000 (17:28 +0000)
committerMarcus Boerger <helly@php.net>
Sun, 1 Jun 2003 17:28:52 +0000 (17:28 +0000)
Zend/zend_opcode.c

index af9ff1450e95c2ed209ffe66b7680200e186a9f0..5bb264bb45169898de8072ead4d3e6efc55dd146 100644 (file)
@@ -156,7 +156,7 @@ ZEND_API void destroy_zend_class(zend_class_entry **pce)
                        FREE_HASHTABLE(ce->static_members);
                        zend_hash_destroy(&ce->constants_table);
                        zend_hash_destroy(&ce->class_table);
-                       if (ce->num_interfaces > 0) {
+                       if (ce->num_interfaces > 0 && ce->interfaces) {
                                efree(ce->interfaces);
                        }
                        if (ce->doc_comment) {