sterling Sat Jun 7 11:03:45 2003 EDT
Modified files:
/php4/ext/dom text.c
Log:
add the wholeText property
Index: php4/ext/dom/text.c
diff -u php4/ext/dom/text.c:1.2 php4/ext/dom/text.c:1.3
--- php4/ext/dom/text.c:1.2 Fri Jun 6 16:10:05 2003
+++ php4/ext/dom/text.c Sat Jun 7 11:03:45 2003
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: text.c,v 1.2 2003/06/06 20:10:05 sterling Exp $ */
+/* $Id: text.c,v 1.3 2003/06/07 15:03:45 sterling Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -81,8 +81,13 @@
*/
int dom_text_whole_text_read(dom_object *obj, zval **retval TSRMLS_DC)
{
+ xmlNodePtr node;
+
+ node = obj->ptr;
+
ALLOC_ZVAL(*retval);
- ZVAL_NULL(*retval);
+ ZVAL_STRING(*retval, xmlNodeListGetString(node->doc, node, 1), 1);
+
return SUCCESS;
}
@@ -97,7 +102,6 @@
*/
PHP_FUNCTION(dom_text_split_text)
{
- zval *id;
xmlChar *cur;
xmlChar *first;
xmlChar *second;
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php