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

Error/Assertion: ASSERT_QUIET_EVAL has been removed in PHP8 #1421

Closed
CatoTH opened this issue Jan 16, 2021 · 0 comments
Closed

Error/Assertion: ASSERT_QUIET_EVAL has been removed in PHP8 #1421

CatoTH opened this issue Jan 16, 2021 · 0 comments

Comments

@CatoTH
Copy link

CatoTH commented Jan 16, 2021

Describe the bug
At https://github.com/simplesamlphp/simplesamlphp/blob/master/lib/SimpleSAML/Error/Assertion.php#L61 , assert_options(ASSERT_QUIET_EVAL, 0); is called. This fails on PHP 8, as this constant has been removed, according to https://www.php.net/manual/en/migration80.incompatible.php . (The documentation at https://www.php.net/manual/en/function.assert-options.php does not mention this, but discurages assert_options in general starting PHP 7.

In my case, this leads to an exception being thrown, breaking the authentication.

Expected behavior
This particular assert_options call is probably unnecessary starting with PHP 8.

tvdijen added a commit that referenced this issue Jan 16, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant