CVS update: php4/ext/xml

From: Date: Fri, 02 Jul 1999 15:45:52 +0000
Subject: CVS update: php4/ext/xml
Groups: php.version4 
Request: Send a blank email to php-version4+get-1832@lists.php.net to get a copy of this message
Date: Friday July 2, 1999 @ 11:45 Author: thies Update of /repository/php4/ext/xml In directory php:/tmp/cvs-serv31148 Modified Files: xml.c Log Message: added some refcount stuff Index: php4/ext/xml/xml.c diff -u php4/ext/xml/xml.c:1.6 php4/ext/xml/xml.c:1.7 --- php4/ext/xml/xml.c:1.6 Fri Jul 2 11:31:02 1999 +++ php4/ext/xml/xml.c Fri Jul 2 11:45:52 1999 @@ -27,7 +27,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: xml.c,v 1.6 1999/07/02 15:31:02 thies Exp $ */ +/* $Id: xml.c,v 1.7 1999/07/02 15:45:52 thies Exp $ */ #define IS_EXT_MODULE #if COMPILE_DL # if PHP_31 @@ -101,7 +101,7 @@ /* XXXXX this is AN UGLY HACK - we'll need to do a cleanup here!!! */ #if PHP_API_VERSION >= 19990421 -#define php3tls_pval_destructor(a) pval_destructor(a) +#define php3tls_pval_destructor(a) zval_dtor(a) #endif static pval *php3i_long_pval(long value) { @@ -646,6 +646,9 @@ php3_error(E_ERROR, "Unable to initialize array"); return; } + + values->is_ref = 0; + values->refcount = 1; _php3_hash_update(parser->info->value.ht, name, strlen(name)+1, (void *) &values, sizeof(pval*), (void **) &element); } @@ -709,7 +712,13 @@ int atcnt = 0; tag = emalloc(sizeof(pval)); + tag->is_ref = 0; + tag->refcount = 1; + atr = emalloc(sizeof(pval)); + atr->is_ref = 0; + atr->refcount = 1; + array_init(tag); array_init(atr); @@ -793,6 +802,8 @@ tag = emalloc(sizeof(pval)); array_init(tag); + tag->is_ref = 0; + tag->refcount = 1; php3i_add_to_info(parser,((char *) name) + parser->toffset);

« previous php.version4 (#1832) next »