rrichards Fri Dec 8 16:28:33 2006 UTC Added files: /php-src/ext/dom/tests domfragment.phpt domimplementation.phpt dompi.phpt
Modified files: /php-src/ext/dom documentfragment.c domconfiguration.c domerrorhandler.c domimplementation.c domimplementationlist.c domimplementationsource.c domstringlist.c entityreference.c namednodemap.c namelist.c node.c processinginstruction.c string_extend.c text.c userdatahandler.c xpath.c /php-src/ext/dom/tests domattributes.phpt domelement.phpt Log: mark more functions unicode safe add tests
http://cvs.php.net/viewvc.cgi/php-src/ext/dom/documentfragment.c?r1=1.19&r2=1.20&diff_format=u Index: php-src/ext/dom/documentfragment.c diff -u php-src/ext/dom/documentfragment.c:1.19 php-src/ext/dom/documentfragment.c:1.20 --- php-src/ext/dom/documentfragment.c:1.19 Fri Aug 4 18:11:27 2006 +++ php-src/ext/dom/documentfragment.c Fri Dec 8 16:28:33 2006 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: documentfragment.c,v 1.19 2006/08/04 18:11:27 rrichards Exp $ */ +/* $Id: documentfragment.c,v 1.20 2006/12/08 16:28:33 rrichards Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -41,7 +41,7 @@ {NULL, NULL, NULL} }; -/* {{{ proto void DOMDocumentFragment::__construct(); */ +/* {{{ proto void DOMDocumentFragment::__construct() U */ PHP_METHOD(domdocumentfragment, __construct) { @@ -107,7 +107,7 @@ } } -/* {{{ proto void DOMDocumentFragment::appendXML(string data); */ +/* {{{ proto void DOMDocumentFragment::appendXML(string data) U */ PHP_METHOD(domdocumentfragment, appendXML) { zval *id; xmlNode *nodep; http://cvs.php.net/viewvc.cgi/php-src/ext/dom/domconfiguration.c?r1=1.6&r2=1.7&diff_format=u Index: php-src/ext/dom/domconfiguration.c diff -u php-src/ext/dom/domconfiguration.c:1.6 php-src/ext/dom/domconfiguration.c:1.7 --- php-src/ext/dom/domconfiguration.c:1.6 Sun Jan 1 13:09:49 2006 +++ php-src/ext/dom/domconfiguration.c Fri Dec 8 16:28:33 2006 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: domconfiguration.c,v 1.6 2006/01/01 13:09:49 sniper Exp $ */ +/* $Id: domconfiguration.c,v 1.7 2006/12/08 16:28:33 rrichards Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -45,7 +45,7 @@ /* {{{ attribute protos, not implemented yet */ -/* {{{ proto dom_void dom_domconfiguration_set_parameter(string name, domuserdata value); +/* {{{ proto dom_void dom_domconfiguration_set_parameter(string name, domuserdata value) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#DOMConfiguration-property Since: */ @@ -56,7 +56,7 @@ /* }}} end dom_domconfiguration_set_parameter */ -/* {{{ proto domdomuserdata dom_domconfiguration_get_parameter(string name); +/* {{{ proto domdomuserdata dom_domconfiguration_get_parameter(string name) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#DOMConfiguration-getParameter Since: */ @@ -67,7 +67,7 @@ /* }}} end dom_domconfiguration_get_parameter */ -/* {{{ proto boolean dom_domconfiguration_can_set_parameter(string name, domuserdata value); +/* {{{ proto boolean dom_domconfiguration_can_set_parameter(string name, domuserdata value) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#DOMConfiguration-canSetParameter Since: */ http://cvs.php.net/viewvc.cgi/php-src/ext/dom/domerrorhandler.c?r1=1.6&r2=1.7&diff_format=u Index: php-src/ext/dom/domerrorhandler.c diff -u php-src/ext/dom/domerrorhandler.c:1.6 php-src/ext/dom/domerrorhandler.c:1.7 --- php-src/ext/dom/domerrorhandler.c:1.6 Sun Jan 1 13:09:49 2006 +++ php-src/ext/dom/domerrorhandler.c Fri Dec 8 16:28:33 2006 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: domerrorhandler.c,v 1.6 2006/01/01 13:09:49 sniper Exp $ */ +/* $Id: domerrorhandler.c,v 1.7 2006/12/08 16:28:33 rrichards Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -43,7 +43,7 @@ /* {{{ attribute protos, not implemented yet */ -/* {{{ proto dom_boolean dom_domerrorhandler_handle_error(domerror error); +/* {{{ proto dom_boolean dom_domerrorhandler_handle_error(domerror error) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#ID-ERRORS-DOMErrorHandler-handleError Since: */ http://cvs.php.net/viewvc.cgi/php-src/ext/dom/domimplementation.c?r1=1.20&r2=1.21&diff_format=u Index: php-src/ext/dom/domimplementation.c diff -u php-src/ext/dom/domimplementation.c:1.20 php-src/ext/dom/domimplementation.c:1.21 --- php-src/ext/dom/domimplementation.c:1.20 Fri Aug 4 18:11:27 2006 +++ php-src/ext/dom/domimplementation.c Fri Dec 8 16:28:33 2006 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: domimplementation.c,v 1.20 2006/08/04 18:11:27 rrichards Exp $ */ +/* $Id: domimplementation.c,v 1.21 2006/12/08 16:28:33 rrichards Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -42,7 +42,7 @@ {NULL, NULL, NULL} }; -/* {{{ proto boolean dom_domimplementation_has_feature(string feature, string version); +/* {{{ proto boolean dom_domimplementation_has_feature(string feature, string version) URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#ID-5CED94D7 Since: */ @@ -64,7 +64,7 @@ /* }}} end dom_domimplementation_has_feature */ -/* {{{ proto DOMDocumentType dom_domimplementation_create_document_type(string qualifiedName, string publicId, string systemId); +/* {{{ proto DOMDocumentType dom_domimplementation_create_document_type(string qualifiedName, string publicId, string systemId) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#Level-2-Core-DOM-createDocType Since: DOM Level 2 */ @@ -120,7 +120,7 @@ /* }}} end dom_domimplementation_create_document_type */ -/* {{{ proto DOMDocument dom_domimplementation_create_document(string namespaceURI, string qualifiedName, DOMDocumentType doctype); +/* {{{ proto DOMDocument dom_domimplementation_create_document(string namespaceURI, string qualifiedName, DOMDocumentType doctype) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#Level-2-Core-DOM-createDocument Since: DOM Level 2 */ @@ -223,7 +223,7 @@ /* }}} end dom_domimplementation_create_document */ -/* {{{ proto DOMNode dom_domimplementation_get_feature(string feature, string version); +/* {{{ proto DOMNode dom_domimplementation_get_feature(string feature, string version) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#DOMImplementation3-getFeature Since: DOM Level 3 */ http://cvs.php.net/viewvc.cgi/php-src/ext/dom/domimplementationlist.c?r1=1.7&r2=1.8&diff_format=u Index: php-src/ext/dom/domimplementationlist.c diff -u php-src/ext/dom/domimplementationlist.c:1.7 php-src/ext/dom/domimplementationlist.c:1.8 --- php-src/ext/dom/domimplementationlist.c:1.7 Sun Jan 1 13:09:49 2006 +++ php-src/ext/dom/domimplementationlist.c Fri Dec 8 16:28:33 2006 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: domimplementationlist.c,v 1.7 2006/01/01 13:09:49 sniper Exp $ */ +/* $Id: domimplementationlist.c,v 1.8 2006/12/08 16:28:33 rrichards Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -59,7 +59,7 @@ -/* {{{ proto domdomimplementation dom_domimplementationlist_item(int index); +/* {{{ proto domdomimplementation dom_domimplementationlist_item(int index) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#DOMImplementationList-item Since: */ http://cvs.php.net/viewvc.cgi/php-src/ext/dom/domimplementationsource.c?r1=1.6&r2=1.7&diff_format=u Index: php-src/ext/dom/domimplementationsource.c diff -u php-src/ext/dom/domimplementationsource.c:1.6 php-src/ext/dom/domimplementationsource.c:1.7 --- php-src/ext/dom/domimplementationsource.c:1.6 Sun Jan 1 13:09:49 2006 +++ php-src/ext/dom/domimplementationsource.c Fri Dec 8 16:28:33 2006 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: domimplementationsource.c,v 1.6 2006/01/01 13:09:49 sniper Exp $ */ +/* $Id: domimplementationsource.c,v 1.7 2006/12/08 16:28:33 rrichards Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -44,7 +44,7 @@ /* {{{ attribute protos, not implemented yet */ -/* {{{ proto domdomimplementation dom_domimplementationsource_get_domimplementation(string features); +/* {{{ proto domdomimplementation dom_domimplementationsource_get_domimplementation(string features) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#ID-getDOMImpl Since: */ @@ -55,7 +55,7 @@ /* }}} end dom_domimplementationsource_get_domimplementation */ -/* {{{ proto domimplementationlist dom_domimplementationsource_get_domimplementations(string features); +/* {{{ proto domimplementationlist dom_domimplementationsource_get_domimplementations(string features) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#ID-getDOMImpls Since: */ http://cvs.php.net/viewvc.cgi/php-src/ext/dom/domstringlist.c?r1=1.7&r2=1.8&diff_format=u Index: php-src/ext/dom/domstringlist.c diff -u php-src/ext/dom/domstringlist.c:1.7 php-src/ext/dom/domstringlist.c:1.8 --- php-src/ext/dom/domstringlist.c:1.7 Sun Jan 1 13:09:49 2006 +++ php-src/ext/dom/domstringlist.c Fri Dec 8 16:28:33 2006 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: domstringlist.c,v 1.7 2006/01/01 13:09:49 sniper Exp $ */ +/* $Id: domstringlist.c,v 1.8 2006/12/08 16:28:33 rrichards Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -59,7 +59,7 @@ -/* {{{ proto domstring dom_domstringlist_item(int index); +/* {{{ proto domstring dom_domstringlist_item(int index) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#DOMStringList-item Since: */ http://cvs.php.net/viewvc.cgi/php-src/ext/dom/entityreference.c?r1=1.17&r2=1.18&diff_format=u Index: php-src/ext/dom/entityreference.c diff -u php-src/ext/dom/entityreference.c:1.17 php-src/ext/dom/entityreference.c:1.18 --- php-src/ext/dom/entityreference.c:1.17 Thu Sep 14 13:35:49 2006 +++ php-src/ext/dom/entityreference.c Fri Dec 8 16:28:33 2006 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: entityreference.c,v 1.17 2006/09/14 13:35:49 rrichards Exp $ */ +/* $Id: entityreference.c,v 1.18 2006/12/08 16:28:33 rrichards Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -40,7 +40,7 @@ {NULL, NULL, NULL} }; -/* {{{ proto void DOMEntityReference::__construct(string name); */ +/* {{{ proto void DOMEntityReference::__construct(string name) U */ PHP_METHOD(domentityreference, __construct) { zval *id; http://cvs.php.net/viewvc.cgi/php-src/ext/dom/namednodemap.c?r1=1.20&r2=1.21&diff_format=u Index: php-src/ext/dom/namednodemap.c diff -u php-src/ext/dom/namednodemap.c:1.20 php-src/ext/dom/namednodemap.c:1.21 --- php-src/ext/dom/namednodemap.c:1.20 Fri Aug 4 18:11:27 2006 +++ php-src/ext/dom/namednodemap.c Fri Dec 8 16:28:33 2006 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: namednodemap.c,v 1.20 2006/08/04 18:11:27 rrichards Exp $ */ +/* $Id: namednodemap.c,v 1.21 2006/12/08 16:28:33 rrichards Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -91,7 +91,7 @@ -/* {{{ proto DOMNode dom_namednodemap_get_named_item(string name); +/* {{{ proto DOMNode dom_namednodemap_get_named_item(string name) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-1074577549 Since: */ @@ -146,7 +146,7 @@ /* }}} end dom_namednodemap_get_named_item */ -/* {{{ proto DOMNode dom_namednodemap_set_named_item(DOMNode arg); +/* {{{ proto DOMNode dom_namednodemap_set_named_item(DOMNode arg) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-1025163788 Since: */ @@ -157,7 +157,7 @@ /* }}} end dom_namednodemap_set_named_item */ -/* {{{ proto DOMNode dom_namednodemap_remove_named_item(string name); +/* {{{ proto DOMNode dom_namednodemap_remove_named_item(string name) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-D58B193 Since: */ @@ -168,7 +168,7 @@ /* }}} end dom_namednodemap_remove_named_item */ -/* {{{ proto DOMNode dom_namednodemap_item(int index); +/* {{{ proto DOMNode dom_namednodemap_item(int index) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-349467F9 Since: */ @@ -227,7 +227,7 @@ /* }}} end dom_namednodemap_item */ -/* {{{ proto DOMNode dom_namednodemap_get_named_item_ns(string namespaceURI, string localName); +/* {{{ proto DOMNode dom_namednodemap_get_named_item_ns(string namespaceURI, string localName) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-getNamedItemNS Since: DOM Level 2 */ @@ -282,7 +282,7 @@ /* }}} end dom_namednodemap_get_named_item_ns */ -/* {{{ proto DOMNode dom_namednodemap_set_named_item_ns(DOMNode arg); +/* {{{ proto DOMNode dom_namednodemap_set_named_item_ns(DOMNode arg) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-setNamedItemNS Since: DOM Level 2 */ @@ -293,7 +293,7 @@ /* }}} end dom_namednodemap_set_named_item_ns */ -/* {{{ proto DOMNode dom_namednodemap_remove_named_item_ns(string namespaceURI, string localName); +/* {{{ proto DOMNode dom_namednodemap_remove_named_item_ns(string namespaceURI, string localName) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-removeNamedItemNS Since: DOM Level 2 */ http://cvs.php.net/viewvc.cgi/php-src/ext/dom/namelist.c?r1=1.8&r2=1.9&diff_format=u Index: php-src/ext/dom/namelist.c diff -u php-src/ext/dom/namelist.c:1.8 php-src/ext/dom/namelist.c:1.9 --- php-src/ext/dom/namelist.c:1.8 Sun Jan 1 13:09:49 2006 +++ php-src/ext/dom/namelist.c Fri Dec 8 16:28:33 2006 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: namelist.c,v 1.8 2006/01/01 13:09:49 sniper Exp $ */ +/* $Id: namelist.c,v 1.9 2006/12/08 16:28:33 rrichards Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -58,7 +58,7 @@ -/* {{{ proto string dom_namelist_get_name(int index); +/* {{{ proto string dom_namelist_get_name(int index) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#NameList-getName Since: */ @@ -69,7 +69,7 @@ /* }}} end dom_namelist_get_name */ -/* {{{ proto string dom_namelist_get_namespace_uri(int index); +/* {{{ proto string dom_namelist_get_namespace_uri(int index) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#NameList-getNamespaceURI Since: */ http://cvs.php.net/viewvc.cgi/php-src/ext/dom/node.c?r1=1.52&r2=1.53&diff_format=u Index: php-src/ext/dom/node.c diff -u php-src/ext/dom/node.c:1.52 php-src/ext/dom/node.c:1.53 --- php-src/ext/dom/node.c:1.52 Sun Oct 8 13:34:21 2006 +++ php-src/ext/dom/node.c Fri Dec 8 16:28:33 2006 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: node.c,v 1.52 2006/10/08 13:34:21 bjori Exp $ */ +/* $Id: node.c,v 1.53 2006/12/08 16:28:33 rrichards Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -905,7 +905,7 @@ return newchild; } -/* {{{ proto domnode dom_node_insert_before(DomNode newChild, DomNode refChild); +/* {{{ proto domnode dom_node_insert_before(DomNode newChild, DomNode refChild) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-952280727 Since: */ @@ -1067,7 +1067,7 @@ /* }}} end dom_node_insert_before */ -/* {{{ proto DomNode dom_node_replace_child(DomNode newChild, DomNode oldChild); +/* {{{ proto DomNode dom_node_replace_child(DomNode newChild, DomNode oldChild) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-785887307 Since: */ @@ -1159,7 +1159,7 @@ /* }}} end dom_node_replace_child */ -/* {{{ proto DomNode dom_node_remove_child(DomNode oldChild); +/* {{{ proto DomNode dom_node_remove_child(DomNode oldChild) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-1734834066 Since: */ @@ -1212,7 +1212,7 @@ /* }}} end dom_node_remove_child */ -/* {{{ proto DomNode dom_node_append_child(DomNode newChild); +/* {{{ proto DomNode dom_node_append_child(DomNode newChild) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-184E7107 Since: */ @@ -1314,7 +1314,7 @@ /* }}} end dom_node_append_child */ -/* {{{ proto boolean dom_node_has_child_nodes(); +/* {{{ proto boolean dom_node_has_child_nodes() U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-810594187 Since: */ @@ -1343,7 +1343,7 @@ /* }}} end dom_node_has_child_nodes */ -/* {{{ proto DomNode dom_node_clone_node(boolean deep); +/* {{{ proto DomNode dom_node_clone_node(boolean deep) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-3A0ED0A4 Since: */ @@ -1407,7 +1407,7 @@ -/* {{{ proto void dom_node_normalize(); +/* {{{ proto void dom_node_normalize() U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-normalize Since: */ @@ -1452,7 +1452,7 @@ /* }}} end dom_node_is_supported */ -/* {{{ proto boolean dom_node_has_attributes(); +/* {{{ proto boolean dom_node_has_attributes() U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-NodeHasAttrs Since: DOM Level 2 */ @@ -1479,7 +1479,7 @@ } /* }}} end dom_node_has_attributes */ -/* {{{ proto short dom_node_compare_document_position(DomNode other); +/* {{{ proto short dom_node_compare_document_position(DomNode other) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#Node3-compareDocumentPosition Since: DOM Level 3 */ @@ -1490,7 +1490,7 @@ /* }}} end dom_node_compare_document_position */ -/* {{{ proto boolean dom_node_is_same_node(DomNode other); +/* {{{ proto boolean dom_node_is_same_node(DomNode other) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#Node3-isSameNode Since: DOM Level 3 */ @@ -1517,7 +1517,7 @@ /* }}} end dom_node_is_same_node */ -/* {{{ proto string dom_node_lookup_prefix(string namespaceURI); +/* {{{ proto string dom_node_lookup_prefix(string namespaceURI) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#Node3-lookupNamespacePrefix Since: DOM Level 3 */ @@ -1569,7 +1569,7 @@ /* }}} end dom_node_lookup_prefix */ -/* {{{ proto boolean dom_node_is_default_namespace(string namespaceURI); +/* {{{ proto boolean dom_node_is_default_namespace(string namespaceURI) U URL: http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node3-isDefaultNamespace Since: DOM Level 3 */ @@ -1600,7 +1600,7 @@ /* }}} end dom_node_is_default_namespace */ -/* {{{ proto string dom_node_lookup_namespace_uri(string prefix); +/* {{{ proto string dom_node_lookup_namespace_uri(string prefix) U URL: http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node3-lookupNamespaceURI Since: DOM Level 3 */ @@ -1630,7 +1630,7 @@ /* }}} end dom_node_lookup_namespace_uri */ -/* {{{ proto boolean dom_node_is_equal_node(DomNode arg); +/* {{{ proto boolean dom_node_is_equal_node(DomNode arg) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#Node3-isEqualNode Since: DOM Level 3 */ @@ -1641,7 +1641,7 @@ /* }}} end dom_node_is_equal_node */ -/* {{{ proto DomNode dom_node_get_feature(string feature, string version); +/* {{{ proto DomNode dom_node_get_feature(string feature, string version) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#Node3-getFeature Since: DOM Level 3 */ @@ -1652,7 +1652,7 @@ /* }}} end dom_node_get_feature */ -/* {{{ proto DomUserData dom_node_set_user_data(string key, DomUserData data, userdatahandler handler); +/* {{{ proto DomUserData dom_node_set_user_data(string key, DomUserData data, userdatahandler handler) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#Node3-setUserData Since: DOM Level 3 */ @@ -1663,7 +1663,7 @@ /* }}} end dom_node_set_user_data */ -/* {{{ proto DomUserData dom_node_get_user_data(string key); +/* {{{ proto DomUserData dom_node_get_user_data(string key) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#Node3-getUserData Since: DOM Level 3 */ @@ -1919,14 +1919,14 @@ } } -/* {{{ proto string DOMNode::C14N([bool exclusive [, bool with_comments [, array xpath [, array ns_prefixes]]]]) +/* {{{ proto string DOMNode::C14N([bool exclusive [, bool with_comments [, array xpath [, array ns_prefixes]]]]) U Canonicalize nodes to a string */ PHP_METHOD(domnode, C14N) { dom_canonicalization(INTERNAL_FUNCTION_PARAM_PASSTHRU, 0); } -/* {{{ proto int DOMNode::C14NFile(string uri [, bool exclusive [, bool with_comments [, array xpath [, array ns_prefixes]]]]) +/* {{{ proto int DOMNode::C14NFile(string uri [, bool exclusive [, bool with_comments [, array xpath [, array ns_prefixes]]]]) U Canonicalize nodes to a file */ PHP_METHOD(domnode, C14NFile) { @@ -1935,7 +1935,7 @@ #endif -/* {{{ proto int DOMNode::getNodePath() +/* {{{ proto int DOMNode::getNodePath() U Gets an xpath for a node */ PHP_METHOD(domnode, getNodePath) http://cvs.php.net/viewvc.cgi/php-src/ext/dom/processinginstruction.c?r1=1.21&r2=1.22&diff_format=u Index: php-src/ext/dom/processinginstruction.c diff -u php-src/ext/dom/processinginstruction.c:1.21 php-src/ext/dom/processinginstruction.c:1.22 --- php-src/ext/dom/processinginstruction.c:1.21 Fri Aug 4 18:11:27 2006 +++ php-src/ext/dom/processinginstruction.c Fri Dec 8 16:28:33 2006 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: processinginstruction.c,v 1.21 2006/08/04 18:11:27 rrichards Exp $ */ +/* $Id: processinginstruction.c,v 1.22 2006/12/08 16:28:33 rrichards Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -40,7 +40,7 @@ {NULL, NULL, NULL} }; -/* {{{ proto void DOMProcessingInstruction::__construct(string name, [string value]); */ +/* {{{ proto void DOMProcessingInstruction::__construct(string name, [string value]) U */ PHP_METHOD(domprocessinginstruction, __construct) { http://cvs.php.net/viewvc.cgi/php-src/ext/dom/string_extend.c?r1=1.6&r2=1.7&diff_format=u Index: php-src/ext/dom/string_extend.c diff -u php-src/ext/dom/string_extend.c:1.6 php-src/ext/dom/string_extend.c:1.7 --- php-src/ext/dom/string_extend.c:1.6 Sun Jan 1 13:09:49 2006 +++ php-src/ext/dom/string_extend.c Fri Dec 8 16:28:33 2006 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: string_extend.c,v 1.6 2006/01/01 13:09:49 sniper Exp $ */ +/* $Id: string_extend.c,v 1.7 2006/12/08 16:28:33 rrichards Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -44,7 +44,7 @@ /* {{{ attribute protos, not implemented yet */ -/* {{{ proto int dom_string_extend_find_offset16(int offset32); +/* {{{ proto int dom_string_extend_find_offset16(int offset32) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#i18n-methods-StringExtend-findOffset16 Since: */ @@ -55,7 +55,7 @@ /* }}} end dom_string_extend_find_offset16 */ -/* {{{ proto int dom_string_extend_find_offset32(int offset16); +/* {{{ proto int dom_string_extend_find_offset32(int offset16) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#i18n-methods-StringExtend-findOffset32 Since: */ http://cvs.php.net/viewvc.cgi/php-src/ext/dom/text.c?r1=1.28&r2=1.29&diff_format=u Index: php-src/ext/dom/text.c diff -u php-src/ext/dom/text.c:1.28 php-src/ext/dom/text.c:1.29 --- php-src/ext/dom/text.c:1.28 Thu Sep 21 11:53:58 2006 +++ php-src/ext/dom/text.c Fri Dec 8 16:28:33 2006 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: text.c,v 1.28 2006/09/21 11:53:58 rrichards Exp $ */ +/* $Id: text.c,v 1.29 2006/12/08 16:28:33 rrichards Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -191,7 +191,7 @@ /* }}} 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) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-Text3-replaceWholeText Since: DOM Level 3 */ http://cvs.php.net/viewvc.cgi/php-src/ext/dom/userdatahandler.c?r1=1.7&r2=1.8&diff_format=u Index: php-src/ext/dom/userdatahandler.c diff -u php-src/ext/dom/userdatahandler.c:1.7 php-src/ext/dom/userdatahandler.c:1.8 --- php-src/ext/dom/userdatahandler.c:1.7 Sun Jan 1 13:09:49 2006 +++ php-src/ext/dom/userdatahandler.c Fri Dec 8 16:28:33 2006 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: userdatahandler.c,v 1.7 2006/01/01 13:09:49 sniper Exp $ */ +/* $Id: userdatahandler.c,v 1.8 2006/12/08 16:28:33 rrichards Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -43,7 +43,7 @@ /* {{{ attribute protos, not implemented yet */ -/* {{{ proto dom_void dom_userdatahandler_handle(short operation, string key, domobject data, node src, node dst); +/* {{{ proto dom_void dom_userdatahandler_handle(short operation, string key, domobject data, node src, node dst) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#ID-handleUserDataEvent Since: */ http://cvs.php.net/viewvc.cgi/php-src/ext/dom/xpath.c?r1=1.30&r2=1.31&diff_format=u Index: php-src/ext/dom/xpath.c diff -u php-src/ext/dom/xpath.c:1.30 php-src/ext/dom/xpath.c:1.31 --- php-src/ext/dom/xpath.c:1.30 Fri Aug 4 18:11:27 2006 +++ php-src/ext/dom/xpath.c Fri Dec 8 16:28:33 2006 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: xpath.c,v 1.30 2006/08/04 18:11:27 rrichards Exp $ */ +/* $Id: xpath.c,v 1.31 2006/12/08 16:28:33 rrichards Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -44,7 +44,7 @@ {NULL, NULL, NULL} }; -/* {{{ proto void DOMXPath::__construct(DOMDocument doc); */ +/* {{{ proto void DOMXPath::__construct(DOMDocument doc) U */ PHP_METHOD(domxpath, __construct) { zval *id, *doc; @@ -280,14 +280,14 @@ xmlXPathFreeObject(xpathobjp); } -/* {{{ proto DOMNodeList dom_xpath_query(string expr [,DOMNode context]); */ +/* {{{ proto DOMNodeList dom_xpath_query(string expr [,DOMNode context]) U */ PHP_FUNCTION(dom_xpath_query) { php_xpath_eval(INTERNAL_FUNCTION_PARAM_PASSTHRU, PHP_DOM_XPATH_QUERY); } /* }}} end dom_xpath_query */ -/* {{{ proto mixed dom_xpath_evaluate(string expr [,DOMNode context]); */ +/* {{{ proto mixed dom_xpath_evaluate(string expr [,DOMNode context]) U */ PHP_FUNCTION(dom_xpath_evaluate) { php_xpath_eval(INTERNAL_FUNCTION_PARAM_PASSTHRU, PHP_DOM_XPATH_EVALUATE); http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/domattributes.phpt?r1=1.1&r2=1.2&diff_format=u Index: php-src/ext/dom/tests/domattributes.phpt diff -u php-src/ext/dom/tests/domattributes.phpt:1.1 php-src/ext/dom/tests/domattributes.phpt:1.2 --- php-src/ext/dom/tests/domattributes.phpt:1.1 Thu Sep 21 11:53:58 2006 +++ php-src/ext/dom/tests/domattributes.phpt Fri Dec 8 16:28:33 2006 @@ -14,9 +14,10 @@ } $node = $dom->documentElement; - -$lang = $node->getAttributeNode('language'); -echo "Language: ".$lang->value."\n"; +if ($node->hasAttributes()) { + $lang = $node->getAttributeNode('language'); + echo "Language: ".$lang->value."\n"; +} $lang->value = 'en-US'; echo "Language: ".$lang->value."\n"; @@ -32,7 +33,18 @@ print $dom->saveXML($top_element); - +$dom->loadXML(b'<root xmlns:a="urn::atest" a:att1="1" a:att2="2" />'); +$root = $dom->documentElement; +$nmap = $root->attributes; + +print "\n\n"; + +if ($attr = $nmap->getNamedItemNS(NULL, 'att1')) { + print $attr->nodeValue."\n"; +} +if ($attr = $nmap->getNamedItemNS("urn::atest", 'att1')) { + print $attr->nodeValue."\n"; +} ?> --EXPECT-- @@ -41,3 +53,4 @@ Is ID?: NO <chapter language="en-US" num="1"/> +1 http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/domelement.phpt?r1=1.1&r2=1.2&diff_format=u Index: php-src/ext/dom/tests/domelement.phpt diff -u php-src/ext/dom/tests/domelement.phpt:1.1 php-src/ext/dom/tests/domelement.phpt:1.2 --- php-src/ext/dom/tests/domelement.phpt:1.1 Fri Sep 22 10:13:27 2006 +++ php-src/ext/dom/tests/domelement.phpt Fri Dec 8 16:28:33 2006 @@ -14,7 +14,11 @@ } $node = $dom->documentElement; -echo "Tag Name: ".$node->tagName."\n"; +$node2 = $node->firstChild->parentNode; + +if ($node2->isSameNode($node)) { + echo "Tag Name: ".$node->tagName."\n"; +} $node->setAttribute('num', '1'); http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/domfragment.phpt?view=markup&rev=1.1 Index: php-src/ext/dom/tests/domfragment.phpt +++ php-src/ext/dom/tests/domfragment.phpt --TEST-- DOMDocumentFragment Tests --SKIPIF-- <?php require_once('skipif.inc'); ?> --FILE-- <?php require_once("dom_test.inc"); $dom = new DOMDocument; $dom->loadXML(b'<root/>'); if(!$dom) { echo "Error while parsing the document\n"; exit; } $node = $dom->documentElement; try { $frag1 = new DOMDocumentFragment(); $frag1->appendXML('<fragnode>1</fragnode>'); $node->appendXML($frag1); } catch (DOMException $e) { print "Read Only!\n\n"; } $frag2 = $dom->createDocumentFragment(); $frag2->appendXML('<fragnode2>2</fragnode2>'); $node->appendChild($frag2); print $dom->saveXML(); ?> --EXPECT-- Read Only! <?xml version="1.0"?> <root><fragnode2>2</fragnode2></root> http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/domimplementation.phpt?view=markup&rev=1.1 Index: php-src/ext/dom/tests/domimplementation.phpt +++ php-src/ext/dom/tests/domimplementation.phpt --TEST-- DOMImplementation Tests --SKIPIF-- <?php require_once('skipif.inc'); ?> --FILE-- <?php require_once("dom_test.inc"); $domimp = new DOMImplementation(); var_dump($domimp->hasFeature("1.0", "Core")); $doctype = $domimp->createDocumentType("HTML", "-//W3C//DTD HTML 4.01//EN", "http://www.w3.org/TR/html4/strict.dtd"); $dom = $domimp->createDocument(NULL, "HTML", $doctype); $html = $dom->documentElement; $html->appendChild(new DOMElement("body", "hello world")); $html->firstChild->appendChild(new DOMEntityReference("preformatted")); print $dom->saveXML(); ?> --EXPECT-- bool(false) <?xml version="1.0"?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <HTML><body>hello world&preformatted;</body></HTML> http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/dompi.phpt?view=markup&rev=1.1 Index: php-src/ext/dom/tests/dompi.phpt +++ php-src/ext/dom/tests/dompi.phpt --TEST-- DOMProcessingInstruction Tests --SKIPIF-- <?php require_once('skipif.inc'); ?> --FILE-- <?php require_once("dom_test.inc"); $dom = new DOMDocument; $dom->loadXML(b'<root />'); $pi = new DOMProcessingInstruction("mypi", "my instructions"); $dom->documentElement->appendChild($pi); print $pi->target."\n"; print $pi->data."\n"; $pi->data = "my new instructions"; print $dom->saveXML(); ?> --EXPECT-- mypi my instructions <?xml version="1.0"?> <root><?mypi my new instructions?></root>
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php