cvs: php4 /ext/com com.h

From: Date: Fri, 26 Apr 2002 18:20:45 +0000
Subject: cvs: php4 /ext/com com.h
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-11453@lists.php.net to get a copy of this message
phanto Fri Apr 26 14:20:45 2002 EDT Modified files: /php4/ext/com com.h Log: this patch should fix a bug where intermediate comvals were not released before they were freed. this caused outproc com server to belive that they still referenced even when the php process already terminated. Index: php4/ext/com/com.h diff -u php4/ext/com/com.h:1.10 php4/ext/com/com.h:1.11 --- php4/ext/com/com.h:1.10 Mon Aug 13 19:39:10 2001 +++ php4/ext/com/com.h Fri Apr 26 14:20:44 2002 @@ -30,8 +30,7 @@ ALLOC_HASHTABLE(properties); \ zend_hash_init(properties, 0, NULL, ZVAL_PTR_DTOR, 0); \ \ - ALLOC_ZVAL(handle); \ - INIT_PZVAL(handle); \ + MAKE_STD_ZVAL(handle); \ ZVAL_LONG(handle, zend_list_insert((o), IS_COM)); \ \ zval_copy_ctor(handle); \ @@ -46,7 +45,7 @@ #define ALLOC_COM(z) (z) = (comval *) emalloc(sizeof(comval)); \ C_REFCOUNT(z) = 0; -#define FREE_COM(z) efree(z); +#define FREE_COM(z) php_COM_destruct(z TSRMLS_CC); #define IS_COM php_COM_get_le_comval()

« previous php.cvs (#11453) next »