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: 2020-11-09 17:44 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: chealer at gmail dot com Assigned: cmb (profile)
Status: Closed Package: Filesystem function related
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: chealer at gmail dot com
New email:
PHP Version: OS:

 

 [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
 [2020-11-09 17:44 UTC] cmb@php.net
-Assigned To: +Assigned To: cmb
 [2020-11-09 17:46 UTC] phpdocbot@php.net
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=97750f17b2cbcb154caf4885f43ee07bf47047cb
Log: Fix #75024: glob(): Non-portable GLOB_BRACE presented without warning
 [2020-11-09 17:46 UTC] phpdocbot@php.net
-Status: Assigned +Status: Closed
 [2020-11-09 20:50 UTC] phpdocbot@php.net
Automatic comment on behalf of mumumu
Revision: http://git.php.net/?p=doc/ja.git;a=commit;h=9c23511926947e449f27a1fe07389494255a66e0
Log: Fix #75024: glob(): Non-portable GLOB_BRACE presented without warning
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Fri Nov 27 21:01:35 2020 UTC