Re: Re: glob to take array as an arg

From: Date: Thu, 01 Sep 2005 03:15:08 +0000
Subject: Re: Re: glob to take array as an arg
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-18635@lists.php.net to get a copy of this message
On Wed, 31 Aug 2005 11:39:04 +1000, in php.internals kevin@oceania.net (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

« previous php.internals (#18635) next »