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 Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
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

Pull Requests

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
 [2020-12-30 11:58 UTC] nikic@php.net
Automatic comment on behalf of mumumu
Revision: http://git.php.net/?p=doc/ja.git;a=commit;h=6841c935f1d14f5ec09dbc4f4e8be0214b770112
Log: Fix #75024: glob(): Non-portable GLOB_BRACE presented without warning
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 30 14:01:28 2024 UTC