<?php /* * @link https://github.com/php/php-src/issues/19509 */ ini_set("ignore_repeated_errors", 1); // Suppress repeated identical errors ini_set('error_reporting', 15); // Report errors, warnings & notices (value 15) set_error_handler('discard', ~error_reporting()); // Handler masks reportable errors for($i=0; $i<10; $i++ ) { trim($at); // This will only log one "undefined variable" notice or warning } function discard() { return true; // Handler consumes the error }
You have javascript disabled. You will not be able to edit any code.