FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

GLOB_BRACE not widely supported · Issue #79 · NativePHP/desktop · GitHub

GLOB_BRACE not widely supported #79

Description

What were you trying to do?

CopiesToBuildDirectory.php

$matchingFiles = glob($sourcePath.DIRECTORY_SEPARATOR.$pattern, GLOB_BRACE);
This causes the build to crash in Ubuntu as GLOB_BRACE is not defined.
This can be corrected to the below and the build should compile correctly:
$matchingFiles = glob($sourcePath.DIRECTORY_SEPARATOR.$pattern, (defined('GLOB_BRACE') ? GLOB_BRACE | GLOB_ONLYDIR : GLOB_ONLYDIR));

What happened?

The build crashed with error GLOB_BRACE undefined

How to reproduce the bug

Compile on Linux Ubuntu

Debug Output

n/a

Which operating systems have you seen this occur on?

Linux

Notes

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL