glob behavior on OSX

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, am using glob in linux to match files like this with no problems:

glob("../dbimages/banners/{*.[jJ][pP][gG],*.[gG][iI][fF]}",GLOB_BRACE);

that matches gif o jpg case insensitive, now this works on linux with no
problems, but it does not in OSX.

//This works nice in OSX
glob("../dbimages/banners/*.[jJ][pP][gG]"); 
//This also works but not case insensistive
glob("../dbimages/banners/{*.jpg,*.gif}",GLOB_BRACE); 
//This does not work at all 
glob("../dbimages/banners/{*.[jJ][pP][gG],*.[gG][iI][fF]}",GLOB_BRACE);

It seem that GLOB_BRACE + the complex regexp does not work in OSX.

PHP is 4.3.11
OSX is 8.2.0

Thanks

-- 
Luis Magaña
Gnovus Networks & Software
www.gnovus.com

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux