Eliminating PHP Error Duplicates in VS
It can be quite inconvenient when the same error is repeated many times in the error log file. It is possible to prevent error duplicates from being written to the file.
Let's do this:
<?php
ini_set('display_errors', 'off');
ini_set('log_errors', 'on');
ini_set('error_log', 'logs/errors.log');
ini_set('ignore_repeated_errors', 'on');
ini_set('ignore_repeated_source', 'on');
echo $test;
?>
Make sure that error duplicates are not saved to the file. Ensure that everything works.