cvs: TSRM / TSRM.c

From: Date: Sun, 14 Dec 2003 09:36:23 +0000
Subject: cvs: TSRM / TSRM.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-2111@lists.php.net to get a copy of this message
zeev Sun Dec 14 04:36:23 2003 EDT Modified files: /TSRM TSRM.c Log: Fix from Michael Sisolak (destructors weren't always properly called) Index: TSRM/TSRM.c diff -u TSRM/TSRM.c:1.53 TSRM/TSRM.c:1.54 --- TSRM/TSRM.c:1.53 Tue Aug 5 16:03:54 2003 +++ TSRM/TSRM.c Sun Dec 14 04:36:23 2003 @@ -157,7 +157,12 @@ int j; next_p = p->next; - for (j=0; j<id_count; j++) { + for (j=0; j<p->count; j++) { + if (resource_types_table[j].dtor) { + resource_types_table[j].dtor(p->storage[j], &p->storage); + } + } + for (j=0; j<p->count; j++) { if (resource_types_table && resource_types_table[j].dtor) { resource_types_table[j].dtor(p->storage[j], &p->storage); }

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