|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #75024 glob(): Non-portable GLOB_BRACE presented without warning
Submitted: 2017-08-02 14:48 UTC Modified: 2018-01-31 10:24 UTC
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: chealer at gmail dot com Assigned:
Status: Open Package: Filesystem function related
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2017-08-02 14:48 UTC] chealer at gmail dot com
------------ contains:
GLOB_BRACE - Expands {a,b,c} to match 'a', 'b', or 'c'

While this apparently works on GNU/Linux, mac OS and Windows, I am told it does not on systems like Solaris:
And there is indeed a mention to that effect in the documentation page, the only problem being that:
*There is no mention in the item under "Valid flags" for GLOB_BRACE.
*The mention is a mere "Note" (white background).

I have personally committed code using this option without realizing it was not portable.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2018-01-31 10:24 UTC]
-Type: Bug +Type: Documentation Problem -Package: Documentation problem +Package: Filesystem function related
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Wed Oct 28 04:01:23 2020 UTC