summaryrefslogtreecommitdiff
path: root/ext/dom/text.c
diff options
context:
space:
mode:
authorRob Richards <rrichards@php.net>2004-05-31 12:50:28 +0000
committerRob Richards <rrichards@php.net>2004-05-31 12:50:28 +0000
commit5b0f34ae80f8d20de3bc16bba8c2d738d83e0018 (patch)
tree7627d3cc33fd1431865136b6a2d12f0e768a23e6 /ext/dom/text.c
parent7d04465b7464f13dd01f3aec37efd9e136af16c1 (diff)
downloadphp-git-5b0f34ae80f8d20de3bc16bba8c2d738d83e0018.tar.gz
Fix bug #28584: DOMText::splitText() does not split text properly (benjcarson)
Prototype fixes
Diffstat (limited to 'ext/dom/text.c')
-rw-r--r--ext/dom/text.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/dom/text.c b/ext/dom/text.c
index e3c4f05a3c..ab89177065 100644
--- a/ext/dom/text.c
+++ b/ext/dom/text.c
@@ -29,7 +29,7 @@
#include "dom_ce.h"
/*
-* class domtext extends domcharacterdata
+* class DOMText extends DOMCharacterData
*
* URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#ID-1312295772
* Since:
@@ -43,7 +43,7 @@ zend_function_entry php_dom_text_class_functions[] = {
{NULL, NULL, NULL}
};
-/* {{{ proto void DomText::__construct([string value]); */
+/* {{{ proto void DOMText::__construct([string value]); */
PHP_METHOD(domtext, __construct)
{
@@ -76,7 +76,7 @@ PHP_METHOD(domtext, __construct)
php_libxml_increment_node_ptr((php_libxml_node_object *)intern, nodep, (void *)intern TSRMLS_CC);
}
}
-/* }}} end DomText::__construct */
+/* }}} end DOMText::__construct */
/* {{{ proto wholeText string
readonly=yes
@@ -107,7 +107,7 @@ int dom_text_whole_text_read(dom_object *obj, zval **retval TSRMLS_DC)
/* }}} */
-/* {{{ proto domtext dom_text_split_text(unsigned long offset);
+/* {{{ proto DOMText dom_text_split_text(int offset);
URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-38853C1D
Since:
*/
@@ -133,7 +133,7 @@ PHP_FUNCTION(dom_text_split_text)
RETURN_FALSE;
}
- cur = xmlNodeListGetString(node->doc, node, 1);
+ cur = xmlNodeGetContent(node);
if (cur == NULL) {
RETURN_FALSE;
}
@@ -190,7 +190,7 @@ PHP_FUNCTION(dom_text_is_whitespace_in_element_content)
/* }}} end dom_text_is_whitespace_in_element_content */
-/* {{{ proto domtext dom_text_replace_whole_text(string content);
+/* {{{ proto DOMText dom_text_replace_whole_text(string content);
URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-Text3-replaceWholeText
Since: DOM Level 3
*/