Hello Adam,

Friday, January 23, 2004, 11:18:09 PM, you wrote:

> On Fri, 23 Jan 2004, Adam Maccabee Trachtenberg wrote:

>> I will try rebuilding things and take a second look.

> The tree.php example now works, but I am getting errors with
> findfile.php:

> [EMAIL PROTECTED]:~/CVS/php/php-src/ext/spl/examples] $
> ../../../sapi/cli/php -d auto_prepend_file=autoload.inc findfile.php
> . findfile.php
> PHP Notice:  Undefined property:  FindFile::$it in
> /usr/local/cvs/php/php-src/ext/spl/examples/findfile.php on line 36
> PHP Fatal error:  Call to a member function current() on a non-object
> in /usr/local/cvs/php/php-src/ext/spl/examples/findfile.php on line 36
> /Users/adam/CVS/php/php-src/main/streams/streams.c(371) : Stream of
> type 'dir' 0xac0e80 (path:(null)) was not closed

Fixed too. Hey if you find some cool & easy examples please tell me.
Lukas already mentioned some random iterator. That would require an
interface that add a count() method to the Seekable interface. And
an iterator class that randomly seeks and reads from such interfaces.
Of course the class would need to build up an array of available indices
and only return elements not read so far by dropping any read index from
the available list when read.


Best regards,
 Marcus                            mailto:[EMAIL PROTECTED]

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to