From: Uwe Steinmann Date: Fri, 3 Mar 2000 12:38:20 +0000 (+0000) Subject: - tiny changes to testscript and domxml X-Git-Tag: PHP-4.0-RC1~305 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dd4f37a4cfed47d92a475a949a1efbb2c6f60a7f;p=php - tiny changes to testscript and domxml --- 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; } } } diff --git a/tests/testdom b/tests/testdom index 923a88491d..a2ba53d186 100644 --- a/tests/testdom +++ b/tests/testdom @@ -82,7 +82,7 @@ $rootnode = $dom->root(); /* This one creates a dom tree made of php objects */ echo "Test 2: creating a tree with php objects\n"; $dom = xmltree($xmlstr); -//$dom->root->name = "section"; +$dom->root->name = "section"; var_dump($dom); echo $dom->root->name; echo "\n"; diff --git a/tests/testhyperwave b/tests/testhyperwave index 973489cf34..f7de5284dd 100644 --- a/tests/testhyperwave +++ b/tests/testhyperwave @@ -1,10 +1,10 @@