Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:18635 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 47309 invoked by uid 1010); 1 Sep 2005 03:16:08 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 47294 invoked from network); 1 Sep 2005 03:16:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Sep 2005 03:16:08 -0000 X-Host-Fingerprint: 213.237.67.135 213.237.67.135.adsl.by.worldonline.dk Linux 2.4/2.6 Received: from ([213.237.67.135:17596] helo=mail.ter.dk) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id CC/17-15098-77276134 for ; Wed, 31 Aug 2005 23:16:07 -0400 Received: from workpenguin (workpenguin [192.168.1.32]) by mail.ter.dk (Symaskine) with SMTP id 931F78A4010 for ; Thu, 1 Sep 2005 05:15:45 +0200 (CEST) To: internals@lists.php.net Date: Thu, 01 Sep 2005 05:15:08 +0200 Message-ID: <1pqch15rm9e89j3ejko187c286f6gkskeq@4ax.com> References: <20050830235453.4e94a8bd.kevin@oceania.net> <20050831113904.42421a66.kevin@oceania.net> In-Reply-To: <20050831113904.42421a66.kevin@oceania.net> X-Mailer: Forte Agent 1.91/32.564 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Re: glob to take array as an arg From: php@ter.dk (Peter Brodersen) 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. --=20 - Peter Brodersen