Skip to content

[Finder] Glob braces do not work on Alpine Linux with PHP 7.2 #30743

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
xelan opened this issue Mar 28, 2019 · 2 comments
Closed

[Finder] Glob braces do not work on Alpine Linux with PHP 7.2 #30743

xelan opened this issue Mar 28, 2019 · 2 comments

Comments

@xelan
Copy link
Contributor

xelan commented Mar 28, 2019

Symfony version(s) affected: master, did not try other versions yet

Description
Apparently, glob patterns with braces do not work on Alpine Linux with PHP 7.2 (64bit). I do not know yet what causes this issue, just wanted to document it if someone else has the same issue.

The test testInWithGlobBrace therefore fails on this platform. If I perform the same steps on the debian stretch PHP image, the test passes.

How to reproduce

docker run -it gmitirol/alpine39-php72 bash
php-ext.sh enable-all
cd /home/project
git clone https://github.com/symfony/symfony.git
cd symfony
composer update
php phpunit src/Symfony/Component/Finder/ -vvv

Additional context

There was 1 error:

1) Symfony\Component\Finder\Tests\FinderTest::testInWithGlobBrace
InvalidArgumentException: The "/home/project/symfony/src/Symfony/Component/Finder/Tests/Fixtures/{A,copy/A}/B/C" directory does not exist.

/home/project/symfony/src/Symfony/Component/Finder/Finder.php:600
/home/project/symfony/src/Symfony/Component/Finder/Tests/FinderTest.php:919
@ro0NL
Copy link
Contributor

ro0NL commented Apr 1, 2019

Shall we skip it if GLOB_BRACE is not defined?

see #30839

@xabbuh xabbuh closed this as completed Apr 11, 2019
@xabbuh
Copy link
Member

xabbuh commented Apr 11, 2019

fixed in #30839

Edit by @stof: fixed the issue number

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants