john Sat Aug 28 14:10:21 2004 EDT
Removed files:
/php-src/ext/tidy/examples dumpit.php urlgrab.php
Modified files:
/php-src/ext/tidy/examples cleanhtml5.php dumpit5.php urlgrab5.php
Log:
Removed examples which don't actually work anymore for PHP 4, and
updated those that do for PHP 5.
http://cvs.php.net/diff.php/php-src/ext/tidy/examples/cleanhtml5.php?r1=1.2&r2=1.3&ty=u
Index: php-src/ext/tidy/examples/cleanhtml5.php
diff -u php-src/ext/tidy/examples/cleanhtml5.php:1.2
php-src/ext/tidy/examples/cleanhtml5.php:1.3
--- php-src/ext/tidy/examples/cleanhtml5.php:1.2 Thu Jan 22 10:45:50 2004
+++ php-src/ext/tidy/examples/cleanhtml5.php Sat Aug 28 14:10:21 2004
@@ -23,10 +23,10 @@
$tidy->cleanRepair();
- if(!empty($tidy->error_buf)) {
+ if(!empty($tidy->errorBuffer)) {
echo "\n\nThe following errors or warnings occured:\n";
- echo "{$tidy->error_buf}\n";
+ echo "{$tidy->errorBuffer}\n";
}
http://cvs.php.net/diff.php/php-src/ext/tidy/examples/dumpit5.php?r1=1.1&r2=1.2&ty=u
Index: php-src/ext/tidy/examples/dumpit5.php
diff -u php-src/ext/tidy/examples/dumpit5.php:1.1
php-src/ext/tidy/examples/dumpit5.php:1.2
--- php-src/ext/tidy/examples/dumpit5.php:1.1 Sat Jan 3 00:23:23 2004
+++ php-src/ext/tidy/examples/dumpit5.php Sat Aug 28 14:10:21 2004
@@ -51,7 +51,7 @@
echo $string;
}
- function dump_tree(tidy_node $node, $indent = 0) {
+ function dump_tree(tidyNode $node, $indent = 0) {
/* Put something there if the node name is empty */
$nodename = trim(strtoupper($node->name));
@@ -80,7 +80,7 @@
}
/* Recurse along the children to generate the remaining nodes */
- if($node->has_children()) {
+ if($node->hasChildren()) {
foreach($node->child as $child) {
dump_tree($child, $indent + 3);
}
http://cvs.php.net/diff.php/php-src/ext/tidy/examples/urlgrab5.php?r1=1.2&r2=1.3&ty=u
Index: php-src/ext/tidy/examples/urlgrab5.php
diff -u php-src/ext/tidy/examples/urlgrab5.php:1.2
php-src/ext/tidy/examples/urlgrab5.php:1.3
--- php-src/ext/tidy/examples/urlgrab5.php:1.2 Thu Jan 22 10:45:50 2004
+++ php-src/ext/tidy/examples/urlgrab5.php Sat Aug 28 14:10:21 2004
@@ -12,7 +12,7 @@
* Usage: php urlgrab5.php <file>
*
*/
- function dump_nodes(tidy_node $node, &$urls = NULL) {
+ function dump_nodes(tidyNode $node, &$urls = NULL) {
$urls = (is_array($urls)) ? $urls : array();
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php