Skip to content

Avoid throw expression leaks #5450

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

Avoid throw expression leaks #5450

wants to merge 1 commit into from

Conversation

nikic
Copy link
Member

@nikic nikic commented Apr 24, 2020

This uses the hack suggested by @TysonAndre. We mark throw if it is used in expression context, and don't treat it as a terminator in that case.

This gives us a bit less optimization opportunity, but avoids the complexity of #5448 or other "proper" solutions.

Caught
Caught
Caught
int(32767)
Copy link
Contributor

@TysonAndre TysonAndre Apr 24, 2020

Choose a reason for hiding this comment

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

Could this use the following to override the users php.ini settings instead, to avoid test failures when a tester already installed something to the configured --prefix and added ini settings?

--INI--
error_reporting=E_ALL

Copy link
Member Author

Choose a reason for hiding this comment

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

This is already enforced by run-tests.

Copy link
Member Author

Choose a reason for hiding this comment

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

See

$ini_overwrites = array(
for list of ini settings that run-tests overwrites.

@TysonAndre
Copy link
Contributor

LGTM other than the question

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