Skip to content

Remove usage of deprecated E_STRICT constant #338

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

Merged
merged 1 commit into from
Aug 8, 2025

Conversation

scq
Copy link
Member

@scq scq commented Aug 7, 2025

Having E_STRICT causes warnings under PHP 8.4, which breaks tdb on main, as it now defaults to PHP 8.4.

@ini_set('display_errors', '1');
$CFG->debug = (E_ALL | E_STRICT & ~E_DEPRECATED);
Copy link
Member Author

@scq scq Aug 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Operator precedence means this is equivalent to E_ALL | (E_STRICT & ~E_DEPRECATED). E_STRICT & ~E_DEPRECATED equals E_STRICT, so the & ~E_DEPRECATED never did anything.

Copy link
Member

@markmetcalfe markmetcalfe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@markmetcalfe markmetcalfe merged commit 9c27f34 into develop Aug 8, 2025
1 check passed
@markmetcalfe markmetcalfe deleted the remove-e-strict branch August 8, 2025 00:12
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.

2 participants