Skip to content

[7.2] Fix tests bareword fallback with error suppression #3816

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
wants to merge 1 commit into from
Closed

[7.2] Fix tests bareword fallback with error suppression #3816

wants to merge 1 commit into from

Conversation

guilliamxavier
Copy link
Contributor

@guilliamxavier guilliamxavier commented Feb 10, 2019

Backport of #3815 adapted for PHP-7.2 (diff: integer/boolean vs int/bool in error messages)

Note: after merging this into PHP-7.2, the merge of PHP-7.2 into PHP-7.3 will conflict on some modified files: the resolution is to simply discard them (the changes have already been merged in 7.3)

Backport of commit a369326 to PHP-7.2
(cherry picked from commit aad3987)
(cherry picked from commit 76f8a90)
guilliamxavier referenced this pull request Feb 23, 2019
Access to undefined constants will now always result in an Error
exception being thrown.

This required quite a few test changes, because there were many
buggy tests that unintentionally used bareword fallback in combination
with error suppression.
@guilliamxavier
Copy link
Contributor Author

I don't know, but in case you don't want to merge the whole thing (maybe because of the announced conflicts, or too many changes for the 7.2 branch), then what about picking just the tests/lang/operators/bitwiseShiftLeft_variationStr.phpt file? It's the really buggy one (and won't cause conflict alone)

@php-pulls php-pulls closed this in 32c6842 Jul 2, 2019
@nikic
Copy link
Member

nikic commented Jul 2, 2019

I've committed the fix for bitwiseShiftLeft now. I'm leaving the rest alone, as we generally don't make test changes on release branches (unless they're failing...)

@nikic nikic reopened this Jul 2, 2019
@nikic nikic closed this Jul 2, 2019
@guilliamxavier guilliamxavier deleted the fix-tests-bareword-fallback-error-suppression-7.2 branch July 3, 2019 06:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants