helly           Fri Jan 23 17:33:45 2004 EDT

  Modified files:              
    /php-src/ext/spl/examples   findfile.php 
  Log:
  Fix this example
  
http://cvs.php.net/diff.php/php-src/ext/spl/examples/findfile.php?r1=1.3&r2=1.4&ty=u
Index: php-src/ext/spl/examples/findfile.php
diff -u php-src/ext/spl/examples/findfile.php:1.3 
php-src/ext/spl/examples/findfile.php:1.4
--- php-src/ext/spl/examples/findfile.php:1.3   Thu Dec  4 14:39:46 2003
+++ php-src/ext/spl/examples/findfile.php       Fri Jan 23 17:33:45 2004
@@ -33,9 +33,9 @@
                parent::__construct(new RecursiveIteratorIterator(new 
RecursiveDirectoryIterator($path)));
        }
        function accept() {
-               return !strcmp($this->it->current(), $this->file);
+               return !strcmp($this->current(), $this->file);
        }
 }
 
-foreach(new FindFile($argv[1], $argv[2]) as $pathname => $file) echo "$pathname\n";
+foreach(new FindFile($argv[1], $argv[2]) as $pathname => $file) echo 
$file->getPathname()."\n";
 ?>
\ No newline at end of file

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to