Bug #75024 [NEW]: glob(): Non-portable GLOB_BRACE presented without warning
| From: | chealer at gmail dot com | Date: | Wed, 02 Aug 2017 14:48:30 +0000 |
| Subject: | Bug #75024 [NEW]: glob(): Non-portable GLOB_BRACE presented without warning | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-14877@lists.php.net to get a copy of this message | ||
From: chealer at gmail dot com
Operating system:
PHP version: Irrelevant
Package: Documentation problem
Bug Type: Bug
Bug description:glob(): Non-portable GLOB_BRACE presented without warning
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.
--
Edit bug report at https://bugs.php.net/bug.php?id=75024&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=75024&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=75024&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=75024&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=75024&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=75024&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=75024&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=75024&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=75024&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=75024&r=support
Expected behavior: https://bugs.php.net/fix.php?id=75024&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=75024&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=75024&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=75024&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75024&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=75024&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=75024&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=75024&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=75024&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=75024&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=75024&r=mysqlcfg