From: RQuadling at GMail dot com Operating system: Windows XP SP3 PHP version: 5.3.0 PHP Bug Type: Filesystem function related Bug description: glob is case sensitive on windows where filenames are case insensitive.
Description: ------------ I'm not sure if this is just a documentation issue or another bug for windows. Filenames on Windows are accessible case insensitive. If you have a file ACamelCasedFile.php, then you cannot have a file aCamelCasedFile.PHP as these are considered to be the same name. So, my expectation of the glob() function on Windows would be to support this aspect of the OS. So, glob('*camel*') should return the file. Obviously it does not. Whilst I can use bracing to supply variants, getting all the variants is a lot of effort - camel, Camel, cAmel, CAmel, caMel, CaMel, etc. Remember that Windows doesn't care, so neither should glob(), at least on windows. But, having to not break BC, would introducting a new flag GLOB_CASELESS be possible? -- Edit bug report at http://bugs.php.net/?id=50164&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50164&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50164&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50164&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=50164&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50164&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=50164&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=50164&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=50164&r=needscript Try newer version: http://bugs.php.net/fix.php?id=50164&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=50164&r=support Expected behavior: http://bugs.php.net/fix.php?id=50164&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=50164&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=50164&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=50164&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50164&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=50164&r=dst IIS Stability: http://bugs.php.net/fix.php?id=50164&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=50164&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=50164&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=50164&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=50164&r=mysqlcfg