From: Marcus Boerger Date: Mon, 1 Nov 2004 22:31:11 +0000 (+0000) Subject: - Update examples X-Git-Tag: RELEASE_0_2~764 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=36a9455a48ef2902894f0b8641d6b339332ac7ff;p=php - Update examples --- diff --git a/ext/spl/examples/directorygraphiterator.inc b/ext/spl/examples/directorygraphiterator.inc new file mode 100644 index 0000000000..6847de4a19 --- /dev/null +++ b/ext/spl/examples/directorygraphiterator.inc @@ -0,0 +1,25 @@ + \ No newline at end of file diff --git a/ext/spl/examples/tree.php b/ext/spl/examples/tree.php index a9f6d8beaf..d7a321dffc 100755 --- a/ext/spl/examples/tree.php +++ b/ext/spl/examples/tree.php @@ -29,9 +29,10 @@ EOF; } if (!class_exists("DirectoryTreeIterator", false)) require_once("directorytreeiterator.inc"); +if (!class_exists("DirectoryGraphIterator", false)) require_once("directorygraphiterator.inc"); echo $argv[1]."\n"; -foreach(new DirectoryTreeIterator($argv[1]) as $file) +foreach(new DirectoryGraphIterator($argv[1]) as $file) { echo $file . "\n"; }