Doc #80396 [Com]: Please support apline's GLOB_BRACE
| From: | danack@php.net | Date: | Sat, 21 Nov 2020 14:58:03 +0000 |
| Subject: | Doc #80396 [Com]: Please support apline's GLOB_BRACE | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-18142@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=80396&edit=1
ID: 80396
Comment by: danack@php.net
Reported by: 2016teemo at google dot com
Summary: Please support apline's GLOB_BRACE
Status: Wont fix
Type: Documentation Problem
Package: *Extensibility Functions
Operating System: apline
PHP Version: 7.2.34
Block user comment: N
Private report: N
New Comment:
There's a fallback method in zendframework - which may or may not work https://github.com/zendframework/zend-stdlib/blob/6d965efcce81ee60e2b425792f1cd3f27aed82d9/src/Glob.php#L97-L168
Previous Comments:
------------------------------------------------------------------------
[2020-11-21 14:44:47] danack@php.net
Sorry, I just realised the other ticket doesn't contain a work around. You'd need to
expand it yourself....
"They are used during expansion of the brace expression of the deeper level. The example below
shows this
glob ("{foo/{,bar,biz},baz}", GLOB_BRACE, NULL, &result)
is equivalent to the sequence
glob ("foo/", GLOB_BRACE, NULL, &result)
glob ("foo/bar", GLOB_BRACE|GLOB_APPEND, NULL, &result)
glob ("foo/biz", GLOB_BRACE|GLOB_APPEND, NULL, &result)
glob ("baz", GLOB_BRACE|GLOB_APPEND, NULL, &result)"
------------------------------------------------------------------------
[2020-11-21 14:36:04] danack@php.net
Unmarking as duplicate, as the other bug is actually about the doc editor code...but it's still
not something that can be fixed in PHP. You need to persuade the people who maintain Musl to add it.
------------------------------------------------------------------------
[2020-11-21 14:33:58] danack@php.net
Duplicate of https://bugs.php.net/bug.php?id=72095
To be clear, the standard C library used on Alpine which is called Musl does not support GLOB_BRACE.
There is no way for PHP to 'support' something that does not exist on the platform that
you're running PHP on.
I suggest using the workaround in the other ticket, or not using Alpine if you need GLOB_BRACE
support.
------------------------------------------------------------------------
[2020-11-21 14:25:34] 2016teemo at google dot com
Description:
------------
---
From manual page: https://php.net/function.glob
---
Please support apline's GLOB_BRACE
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=80396&edit=1