I am using this code to show syntax errors in php
error_reporting(E_ALL);
ini_set('display_errors', TRUE);
ini_set('display_startup_errors', TRUE);
It works well but as soon as I start working with classes, errors don't show anymore for some classes (the core classes included in my index.php). I don't know why but they are still displayed in the action of the controller.
Anybody has an idea of what's going on and how to solve this problem without changing the php.ini ?
Thanks!!