Skip to content
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

Fix NavigationTest::testLinks on PHP 7.1 #342

Merged
merged 1 commit into from
Oct 13, 2021
Merged

Fix NavigationTest::testLinks on PHP 7.1 #342

merged 1 commit into from
Oct 13, 2021

Conversation

alexpott
Copy link
Contributor

@alexpott alexpott commented Oct 12, 2021

This fixes a segfault that occurs on PHP 7.1 when date.timezone is not configured.

In testing this has not proved enough because another segfault occurs in \Behat\Mink\Tests\Driver\Form\GeneralTest::testBasicForm() after running NavigationTest::testLinks(). What's really odd is if you run them the other way around it works just fine.

@alexpott
Copy link
Contributor Author

The last commit proves that

In testing this has not proved enough because another segfault occurs in \Behat\Mink\Tests\Driver\Form\GeneralTest::testBasicForm() after running NavigationTest::testLinks(). What's really odd is if you run them the other way around it works just fine.

is correct. Very very odd.

@alexpott
Copy link
Contributor Author

https://github.com/marketplace/actions/setup-php-action doesn't support patch versions so there's no new info from the last commit.

@stof
Copy link
Member

stof commented Oct 12, 2021

@alexpott I suggest giving up on this one, as you don't find a way to avoid the segfault on PHP 7.1

@oleg-andreyev
Copy link
Contributor

When working on #304, I've faced same issue with 7.1. I've fixed this issue by adding USE_ZEND_ALLOC=0

See https://bugs.php.net/bug.php?id=71443,
ba7fad4

@alexpott
Copy link
Contributor Author

@oleg-andreyev thanks! Works like a treat - nice one.

@stof stof merged commit 3c3da51 into minkphp:master Oct 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants