Skip to content

PHP on Alpine gives Warning: Use of undefined constant GLOB_BRACE #719

@zrhoffman

Description

@zrhoffman

Steps to reproduce:

docker run --rm -it php:alpine php -r 'var_dump(GLOB_BRACE);'

Expected result

int(1024)

Actual result


Warning: Use of undefined constant GLOB_BRACE - assumed 'GLOB_BRACE' (this will throw an Error in a future version of PHP) in Command line code on line 1
string(10) "GLOB_BRACE"

This is an Alpine-specific issue. docker run --rm -it php:stretch php -r 'var_dump(GLOB_BRACE);' produces the expected result.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions