I
I
Ivan2014-08-22 12:33:48
symfony
Ivan, 2014-08-22 12:33:48

Where does Symfony2 make display_errors = Off?

If you paint over php (errors in syntax and further down the list), then symfony displays a blank page instead of an error, even in the dev environment. I wanted to fix this by adding the following lines to app_dev.php:

error_reporting(E_ALL);
ini_set('display_errors', 'On');
ini_set('display_startup_errors', 'On');

But the framework at some stage rewrites this business to Off. If you call exit(phpinfo()); in app_dev.php - display_errors has On as it should. And if already in the action of some controller - Off.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2014-08-22
@0neS

https://github.com/symfony/symfony/issues/8703
For specifics, you should specify the PHP version, but symfony itself does nothing with php settings. He only hangs up his error handler.
Was wrong. Proof.

O
OnYourLips, 2014-08-22
@OnYourLips

In Kernel::init. Therefore, you can change in his successor.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question