Skip to content

Code in index.php causes issue on Alpine Docker images #1304

@nielsdrost7

Description

@nielsdrost7

Title

Code in index.php causes issue on Alpine Docker images

Current Behavior

On running a Docker image with Alpine Linux this error occurred:

Undefined constant "GLOB_BRACE" in /var/www/html/index.php:306

Possible Solution (Optional)

Open index.php
Find line 306

Right now it's saying:

array_map('unlink', glob(UPLOADS_TEMP_FOLDER . '*.{pdf,xml}', \GLOB_BRACE));

Replace that with:

$files = array_merge(
    glob(UPLOADS_TEMP_FOLDER . '*.pdf'),
    glob(UPLOADS_TEMP_FOLDER . '*.xml')
);

array_map('unlink', $files);

Metadata

Metadata

Assignees

Labels

BugSupportIssue user is experiencing requires support attentiondependenciesPull requests that update a dependency file

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions