- error_log: documentation ( source)
- error_reporting: documentation ( source)
- ini_get: documentation ( source)
<?php
error_reporting(E_ALL);
class asd {
function run() {
echo $unexisting;
echo 'error_reporting on silent errors function: ' . ini_get('error_reporting') . PHP_EOL;
asd_function();
}
}
function asd_function() {
echo 'error_reporting on trigger error_log function: ' . ini_get('error_reporting') . PHP_EOL;
@error_log('I am an error');
}
$asd = new asd();
echo 'error_reporting before @: ' . ini_get('error_reporting') . PHP_EOL;
@$asd->run();