cvs: php4 /ext/domxml php_domxml.c
| From: | Joey Smith | Date: | Mon, 16 Jul 2001 11:16:44 +0000 |
| Subject: | cvs: php4 /ext/domxml php_domxml.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-6239@lists.php.net to get a copy of this message | ||
joey Mon Jul 16 07:16:44 2001 EDT
Modified files:
/php4/ext/domxml php_domxml.c
Log:
Close Bug #10235.
This makes domxml_root() work again. It now works
equally as well as object method or a simple function.
Index: php4/ext/domxml/php_domxml.c
diff -u php4/ext/domxml/php_domxml.c:1.40 php4/ext/domxml/php_domxml.c:1.41
--- php4/ext/domxml/php_domxml.c:1.40 Sat Jul 7 20:54:25 2001
+++ php4/ext/domxml/php_domxml.c Mon Jul 16 07:16:44 2001
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_domxml.c,v 1.40 2001/07/08 00:54:25 joey Exp $ */
+/* $Id: php_domxml.c,v 1.41 2001/07/16 11:16:44 joey Exp $ */
#ifdef HAVE_CONFIG_H
@@ -1821,6 +1821,13 @@
int ret;
id = getThis();
+
+ if (!id) {
+ if ((ZEND_NUM_ARGS() != 1) || getParameters(ht, 1, &id) == FAILURE) {
+ RETURN_FALSE;
+ }
+ }
+
docp = php_dom_get_object(id, le_domxmldocp, 0);
node = docp->children;