cvs: ZendEngine2 / zend_list.c

From: Date: Tue, 17 Feb 2004 22:04:05 +0000
Subject: cvs: ZendEngine2 / zend_list.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-2382@lists.php.net to get a copy of this message
sniper Tue Feb 17 17:04:05 2004 EDT Modified files: /ZendEngine2 zend_list.c Log: MFB: - Fix bug #26753 (zend_fetch_list_dtor_id() does not check NULL strings) http://cvs.php.net/diff.php/ZendEngine2/zend_list.c?r1=1.63&r2=1.64&ty=u Index: ZendEngine2/zend_list.c diff -u ZendEngine2/zend_list.c:1.63 ZendEngine2/zend_list.c:1.64 --- ZendEngine2/zend_list.c:1.63 Thu Jan 8 12:31:47 2004 +++ ZendEngine2/zend_list.c Tue Feb 17 17:04:05 2004 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_list.c,v 1.63 2004/01/08 17:31:47 sniper Exp $ */ +/* $Id: zend_list.c,v 1.64 2004/02/17 22:04:05 sniper Exp $ */ /* resource lists */ @@ -315,7 +315,7 @@ zend_hash_internal_pointer_reset_ex(&list_destructors, &pos); while (zend_hash_get_current_data_ex(&list_destructors, (void **)&lde, &pos) == SUCCESS) { - if (strcmp(type_name, lde->type_name) == 0) { + if (lde->type_name && (strcmp(type_name, lde->type_name) == 0)) { #if 0 printf("Found resource id %d for resource type %s\n", (*lde).resource_id, type_name); #endif

« previous php.zend-engine.cvs (#2382) next »