-
Notifications
You must be signed in to change notification settings - Fork 11.3k
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
[L5.2] Wrong Auth Driver causes unexpected application end without errors #12821
Comments
Sounds like your php config is suppressing the fatal error. |
@GrahamCampbell Looks like this isn't the problem:
|
The same occours using PHP5.6:
|
Tracking the issue, I found this piece of code: vendor/laravel/framework/src/Illuminate/Auth/AuthManager.php Method
The problem is happening here: Since the driver name does not exists, it goes to the This call will be catch by the |
@GrahamCampbell I've made a Pull Request to solve this infinite loop bug. Please, take a look. |
Thank you so much! |
Framework version: 5.2.24
PHP version: PHP 7.0.4-6+deb.sury.org~trusty+1
If a wrong (unexistent) auth driver is choose on
config/auth.php
setting, running anything that uses auth() facade will cause an unexpected end of execution.Reproducing the bug
config/auth.php
tofoobarbiz
php artisan tinker
auth()->attempt([])
The text was updated successfully, but these errors were encountered: