diff options
| author | Uwe Steinmann <steinm@php.net> | 2000-03-03 12:38:20 +0000 |
|---|---|---|
| committer | Uwe Steinmann <steinm@php.net> | 2000-03-03 12:38:20 +0000 |
| commit | dd4f37a4cfed47d92a475a949a1efbb2c6f60a7f (patch) | |
| tree | 75ef9d1f33acb5df5d0830eaae67f7e61dd0de17 /ext/domxml/domxml.c | |
| parent | 9318964f25225bb2fd218efd952c8962ac1952b5 (diff) | |
| download | php-git-dd4f37a4cfed47d92a475a949a1efbb2c6f60a7f.tar.gz | |
- tiny changes to testscript and domxml
Diffstat (limited to 'ext/domxml/domxml.c')
| -rw-r--r-- | ext/domxml/domxml.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/domxml/domxml.c b/ext/domxml/domxml.c index bb801c617e..3af9b851a4 100644 --- a/ext/domxml/domxml.c +++ b/ext/domxml/domxml.c @@ -1317,8 +1317,9 @@ PHP_FUNCTION(xmltree) if((*keydata)->type == IS_OBJECT) { if (zend_hash_find((*keydata)->value.obj.properties, "type", sizeof("type"), (void **)&prop) == SUCCESS) { if((*prop)->value.lval == XML_ELEMENT_NODE) { - root = *keydata; - zend_hash_update(return_value->value.obj.properties, "root", strlen("root")+1, (void *) &root, sizeof(zval *), NULL); + zend_hash_update(return_value->value.obj.properties, "root", strlen("root")+1, (void *) &(*keydata), sizeof(zval *), NULL); +// (*keydata)->is_ref = 1; +// (*keydata)->refcount = 2; } } } |
