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

Workaround for trace infinity loop in exception handling #66

Merged
merged 4 commits into from
Jan 16, 2020

Conversation

marvinhinz
Copy link

I copied the workaround from #54 because the pr is not yet splitted and i needed the functionality.

I copied the workaround from macopedia#54 because the pr is not yet splitted and i needed the functionality.
@tmotyl
Copy link
Member

tmotyl commented Dec 30, 2019

Ive got the counter solution, looks ok, but why did you also change the dirname part?

@marvinhinz
Copy link
Author

Ive got the counter solution, looks ok, but why did you also change the dirname part?

Oops, didnt see this while copying. I'll fix it

magmi/inc/magmi_engine.php Outdated Show resolved Hide resolved
@@ -409,7 +409,7 @@ public function getExceptionTrace($tk, &$traces)
}
}
// simple max trace depth fix
if (++$counter % 20) {
if (++$counter % 20 == 0) {
Copy link
Member

Choose a reason for hiding this comment

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

lets have === just for a sake of being clean.

Copy link
Author

Choose a reason for hiding this comment

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

Done :)

@tmotyl tmotyl merged commit a162c39 into macopedia:magento2 Jan 16, 2020
@tmotyl
Copy link
Member

tmotyl commented Jan 16, 2020

thanks!

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