php.net |  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
Votes:1
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
Description:
------------
http://php.net/manual/en/function.glob.php 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: https://bugs.php.net/bug.php?id=70544&edit=2
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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-01-31 10:24 UTC] vrana@php.net
-Type: Bug +Type: Documentation Problem -Package: Documentation problem +Package: Filesystem function related
 
PHP Copyright © 2001-2018 The PHP Group
All rights reserved.
Last updated: Mon Jul 16 10:01:53 2018 UTC