On Tue, Dec 21, 2010 at 8:16 AM, Soxred93 <soxre...@gmail.com> wrote:

> I'm not looking to integrate these frameworks entirely into MediaWiki; I'm
> just talking about this one single file with one single class. (to be fair,
> it's 3 classes, but they're all in that one file).
>

Before going into too much detail on the thread, consider what you actually
need out of a fancy directory iterator. Offhand, I really can't think of
many places where that even *happens* in MediaWiki... maybe when purging
thumbnails?

Now, if you *do* find yourself writing lots of new code that does a lot of
directory iteration, then feel free to use whatever convenient mechanism is
nice and doesn't have security or licensing problems or otherwise takes more
effort than just using things built into PHP (there's at least 3 or for
directory iterator systems already, including the opendir() stuff, the
object-oriented variant in the Dir class, and the SPL iterators).

Getting code done and working will be far, far more important than any list
discussion about hypotheticals.

-- brion
_______________________________________________
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to