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

autoload without hiding errors #2300

Merged
merged 3 commits into from
Dec 25, 2022
Merged

Conversation

Flyingmana
Copy link
Contributor

@Flyingmana Flyingmana commented Jul 10, 2022

Description (*)

Related Pull Requests

alternative to #1817

Fixed Issues (if relevant)

  1. Fixes include(): Failed opening 'Phpseclib\Crypt\Blowfish.php' #1780
  2. Closes Stop hiding errors inside broken PHP files when loaded through the autoloader #1817

Manual testing scenarios (*)

  1. ...
  2. ...

Questions or comments

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All automated tests passed successfully (all builds are green)
  • Add yourself to contributors list

@github-actions github-actions bot added Component: lib/Varien Relates to lib/Varien Component: lib/* Relates to lib/* labels Jul 10, 2022
@justinbeaty
Copy link
Contributor

This looks like a much better solution. Should you use the original return value?

return include $found;

Maybe the return value not used anywhere though...

@Flyingmana
Copy link
Contributor Author

This looks like a much better solution. Should you use the original return value?

return include $found;

Maybe the return value not used anywhere though...

you are right, will add it again

justinbeaty
justinbeaty previously approved these changes Jul 10, 2022
Copy link
Contributor

@justinbeaty justinbeaty left a comment

Choose a reason for hiding this comment

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

Applied patch in my local dev env and all seems good!

@luigifab
Copy link
Contributor

This is a simplest version of @Asfolny idea. I will test it!

lib/Varien/Autoload.php Outdated Show resolved Hide resolved
Copy link
Contributor

@sreichel sreichel left a comment

Choose a reason for hiding this comment

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

Tested.

@sreichel sreichel requested review from justinbeaty, fballiano and luigifab and removed request for justinbeaty December 25, 2022 02:17
@fballiano fballiano merged commit 6810c78 into OpenMage:1.9.4.x Dec 25, 2022
@sreichel sreichel mentioned this pull request Dec 30, 2022
4 tasks
elidrissidev pushed a commit that referenced this pull request Dec 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: lib/Varien Relates to lib/Varien Component: lib/* Relates to lib/*
Projects
None yet
Development

Successfully merging this pull request may close these issues.

include(): Failed opening 'Phpseclib\Crypt\Blowfish.php'
6 participants