cvs: php-src /ext/spl/examples findfile.php

From: Date: Fri, 23 Jan 2004 22:33:45 +0000
Subject: cvs: php-src /ext/spl/examples findfile.php
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-25829@lists.php.net to get a copy of this message
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

« previous php.cvs (#25829) next »