|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-12-01 16:32 UTC] jani@php.net
-Package: Feature/Change Request
+Package: Filesystem function related
[2021-10-01 13:19 UTC] cmb@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 22:00:01 2025 UTC |
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?