[PHP] Re: RecursiveDirectoryIterator and foreach

2009-02-24 Thread Nathan Rixham
Ryan Panning wrote: I have discovered that when I foreach over a RecursiveDirectoryIterator (see example below) the $item actually turns into a SplFileInfo object. I would expect it to be a RecursiveDirectoryIterator. How do I do a hasChildren() on SplFileInfo? seems like expected

[PHP] Re: RecursiveDirectoryIterator and foreach

2009-02-23 Thread Ryan Panning
Ryan Panning wrote: I have discovered that when I foreach over a RecursiveDirectoryIterator (see example below) the $item actually turns into a SplFileInfo object. I would expect it to be a RecursiveDirectoryIterator. How do I do a hasChildren() on SplFileInfo? However, if I change it to a