On Wed, 31 Aug 2005 11:39:04 +1000, in php.internals [EMAIL PROTECTED]
(Kevin Waterson) wrote:

>> print_r(glob("*.{jpg,gif,tif,pdf,bmp,raw}",GLOB_BRACE));
>
>True, but not available to all. It is GNU.

You are right - I missed that win32 uses win32/glob.h

I think a better solution is just to create an emulation for
GLOB_BRACE. This is nothing new, GLOB_ONLYDIR is already emulated on
systems not using the GNU C library (where GLOB_EMULATE_ONLYDIR is
defined instead) since 4.3.3.

On one hand it would be nice with more cross-platform-compatibility.
Using local libraries might create incompatibility, forcing users to
make usage of PEAR libraries and such instead of native functions
(though File_Find, that has just reached stable for a 1.0.x-release,
could be an alternative).

On the other hand, more code would make require more maintenance. Not
that it seems like glob.h is that troublesome.

-- 
- Peter Brodersen

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

Reply via email to