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

Put back exception during class scanning #24601

Merged
merged 1 commit into from
Sep 24, 2022

Conversation

demeritcowboy
Copy link
Contributor

Overview

In #24580 the exception was changed to a log call to avoid problems with test environments. But it can cause infinite loops with some extensions.

Before

On a site with, e.g. the csvimport extension installed, an infinite loop gives out of memory on every page. No error actually gets logged.

After

Error logged, but back to the original problem.

Technical Details

Comments

An intermediate option might be trigger_error() with E_USER_DEPRECATED, but whether that helps the original problem depends on that test environment's config on how it handles php deprecations during tests.

@eileenmcnaughton

@civibot
Copy link

civibot bot commented Sep 23, 2022

(Standard links)

@civibot civibot bot added the 5.54 label Sep 23, 2022
@eileenmcnaughton
Copy link
Contributor

@demeritcowboy the alternative is just to continue & not do either - we know the exception is actively bad & now we know the log is too - so if the goal is not to break people then we can just do neither

@demeritcowboy
Copy link
Contributor Author

Ok let's do that.

@eileenmcnaughton eileenmcnaughton merged commit b630856 into civicrm:5.54 Sep 24, 2022
@eileenmcnaughton
Copy link
Contributor

first, do no harm

@demeritcowboy demeritcowboy deleted the err branch September 24, 2022 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants