diff options
author | Rob Richards <rrichards@php.net> | 2004-03-31 17:18:59 +0000 |
---|---|---|
committer | Rob Richards <rrichards@php.net> | 2004-03-31 17:18:59 +0000 |
commit | 010c340f296243ef78e50664df19b159223850fc (patch) | |
tree | f1dae612ae3e7f7a2dda47ba7da453101a79f42b /ext/dom/text.c | |
parent | 39a43c994edfe11243f4565690fba52e854a24d9 (diff) | |
download | php-git-010c340f296243ef78e50664df19b159223850fc.tar.gz |
use new style constructors
fix return for nodelist item
Diffstat (limited to 'ext/dom/text.c')
-rw-r--r-- | ext/dom/text.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/dom/text.c b/ext/dom/text.c index 85230c89c6..78fd7feafe 100644 --- a/ext/dom/text.c +++ b/ext/dom/text.c @@ -39,12 +39,12 @@ zend_function_entry php_dom_text_class_functions[] = { PHP_FALIAS(splitText, dom_text_split_text, NULL) PHP_FALIAS(isWhitespaceInElementContent, dom_text_is_whitespace_in_element_content, NULL) PHP_FALIAS(replaceWholeText, dom_text_replace_whole_text, NULL) - PHP_FALIAS(domtext, dom_text_text, NULL) + PHP_ME(domtext, __construct, NULL, ZEND_ACC_PUBLIC) {NULL, NULL, NULL} }; -/* {{{ proto domtext_text([string value]); */ -PHP_FUNCTION(dom_text_text) +/* {{{ proto void DomText::__construct([string value]); */ +PHP_METHOD(domtext, __construct) { zval *id; @@ -71,7 +71,7 @@ PHP_FUNCTION(dom_text_text) php_libxml_increment_node_ptr((php_libxml_node_object *)intern, nodep, (void *)intern TSRMLS_CC); } } -/* }}} end dom_text_text */ +/* }}} end DomText::__construct */ /* {{{ proto wholeText string readonly=yes |