cvs: /php4/ext/domxml domxml.c
| From: | Uwe Steinmann | Date: | Mon, 06 Mar 2000 13:11:51 +0000 |
| Subject: | cvs: /php4/ext/domxml domxml.c | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-11568@lists.php.net to get a copy of this message | ||
steinm Mon Mar 6 05:11:51 2000 EDT
Modified files:
/php4/ext/domxml domxml.c
Log:
- root property in Dom Doc class is now reference to array element in
children property
Index: php4/ext/domxml/domxml.c
diff -u php4/ext/domxml/domxml.c:1.27 php4/ext/domxml/domxml.c:1.28
--- php4/ext/domxml/domxml.c:1.27 Fri Mar 3 04:38:19 2000
+++ php4/ext/domxml/domxml.c Mon Mar 6 05:11:21 2000
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: domxml.c,v 1.27 2000/03/03 12:38:19 steinm Exp $ */
+/* $Id: domxml.c,v 1.28 2000/03/06 13:11:21 steinm Exp $ */
#include "php.h"
@@ -1317,9 +1317,9 @@
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) {
- zend_hash_update(return_value->value.obj.properties, "root",
strlen("root")+1, (void *) &(*keydata), sizeof(zval *), NULL);
-// (*keydata)->is_ref = 1;
-// (*keydata)->refcount = 2;
+ zend_hash_update(return_value->value.obj.properties, "root",
sizeof("root"), (void **) keydata, sizeof(zval *), NULL);
+ (*keydata)->is_ref = 1;
+ (*keydata)->refcount++;
}
}
}