go to bug id or search bugs for
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?
Add a Patch
Add a Pull Request