rrichards Fri Dec 8 16:49:25 2006 UTC Added files: /php-src/ext/dom/tests domxpath.phpt
Modified files: /php-src/ext/dom document.c xpath.c Log: mark more functions unicode safe add test http://cvs.php.net/viewvc.cgi/php-src/ext/dom/document.c?r1=1.83&r2=1.84&diff_format=u Index: php-src/ext/dom/document.c diff -u php-src/ext/dom/document.c:1.83 php-src/ext/dom/document.c:1.84 --- php-src/ext/dom/document.c:1.83 Sun Oct 8 13:34:21 2006 +++ php-src/ext/dom/document.c Fri Dec 8 16:49:25 2006 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: document.c,v 1.83 2006/10/08 13:34:21 bjori Exp $ */ +/* $Id: document.c,v 1.84 2006/12/08 16:49:25 rrichards Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -2277,7 +2277,7 @@ #endif /* defined(LIBXML_HTML_ENABLED) */ -/* {{{ proto boolean DOMDocument::registerNodeClass(string baseclass, string extendedclass) +/* {{{ proto boolean DOMDocument::registerNodeClass(string baseclass, string extendedclass) U Register extended class used to create base node type */ PHP_METHOD(domdocument, registerNodeClass) { http://cvs.php.net/viewvc.cgi/php-src/ext/dom/xpath.c?r1=1.31&r2=1.32&diff_format=u Index: php-src/ext/dom/xpath.c diff -u php-src/ext/dom/xpath.c:1.31 php-src/ext/dom/xpath.c:1.32 --- php-src/ext/dom/xpath.c:1.31 Fri Dec 8 16:28:33 2006 +++ php-src/ext/dom/xpath.c Fri Dec 8 16:49:25 2006 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: xpath.c,v 1.31 2006/12/08 16:28:33 rrichards Exp $ */ +/* $Id: xpath.c,v 1.32 2006/12/08 16:49:25 rrichards Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -102,7 +102,7 @@ return SUCCESS; } -/* {{{ proto boolean dom_xpath_register_ns(string prefix, string uri); */ +/* {{{ proto boolean dom_xpath_register_ns(string prefix, string uri) U */ PHP_FUNCTION(dom_xpath_register_ns) { zval *id; http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/domxpath.phpt?view=markup&rev=1.1 Index: php-src/ext/dom/tests/domxpath.phpt +++ php-src/ext/dom/tests/domxpath.phpt --TEST-- DOMXPath Tests --SKIPIF-- <?php require_once('skipif.inc'); ?> --FILE-- <?php require_once("dom_test.inc"); $dom = new DOMDocument; $dom->loadXML(b'<root xmlns="urn::default"><child>myval</child></root>'); $xpath = new DOMXPath($dom); $xpath->registerNamespace("def", "urn::default"); $nodelist = $xpath->query("//def:child"); if ($node = $nodelist->item(0)) { print $node->textContent."\n"; } $count = $xpath->evaluate("count(//def:child)"); var_dump($count); $xpathdoc = $xpath->document; var_dump($xpathdoc instanceof DOMDocument); ?> --EXPECT-- myval float(1) bool(true) -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php