Skip to content

Preload the System\Error class #1

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

Merged
merged 1 commit into from
Jun 10, 2011
Merged

Preload the System\Error class #1

merged 1 commit into from
Jun 10, 2011

Conversation

hinathan
Copy link

When I autoload in some external library code which hits a compile-time warning (happened to be a parent-child typehint mismatch but that's not relevant here) the error handler fires but autoload is at best finicky and at worst nonfunctional during error/exception handling. Without the preload my compile-time warning turns into an out-of-memory runaway and segfault.

Preloading the class forces it to exist ahead of time and ensures proper, immediate handling. A similar pattern occurs in Zend Framework which loads in possible exceptions 'just in case'.

@taylorotwell
Copy link
Member

Nice find. Thanks!

taylorotwell added a commit that referenced this pull request Jun 10, 2011
Preload the System\Error class
@taylorotwell taylorotwell merged commit c17e357 into laravel:master Jun 10, 2011
stephenfrank pushed a commit to stephenfrank/laravel that referenced this pull request Aug 11, 2012
taylorotwell pushed a commit that referenced this pull request May 28, 2013
gdiggs added a commit to codeclimate-testing/laravel that referenced this pull request Feb 14, 2017
Fix unused variable issue in Code Climate
taylorotwell pushed a commit that referenced this pull request Sep 6, 2017
vortechron pushed a commit to vortechron/laravel that referenced this pull request Oct 3, 2017
flap152 pushed a commit to flap152/laravel that referenced this pull request Nov 24, 2017
SETUP - Pulling recent changes into descubraomundo fork
flap152 pushed a commit to flap152/laravel that referenced this pull request Nov 24, 2017
flap152 pushed a commit to flap152/laravel that referenced this pull request Nov 24, 2017
Updated path for latest cross-env version
krisanalfa added a commit to krisanalfa/laravel that referenced this pull request Apr 11, 2018
taylorotwell pushed a commit that referenced this pull request Jul 31, 2018
Added Webdock.io to sponsors list
jradtilbrook pushed a commit to jradtilbrook/laravel that referenced this pull request Apr 7, 2019
Add HealthEngine defaults/customisations
biddqb added a commit to biddqb/laravel-jenkins that referenced this pull request Jan 12, 2021
arnoldyonata referenced this pull request in arnoldyonata/crm-backend Oct 17, 2022
sl0wik added a commit to sl0wik/laravel that referenced this pull request Oct 4, 2023
drewmw5 added a commit to drewmw5/laravel that referenced this pull request Nov 3, 2023
HabZsolt pushed a commit to HabZsolt/laravel that referenced this pull request Sep 25, 2024
maddios pushed a commit to genvideo/laravel that referenced this pull request May 28, 2025
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