Skip to content

Instantly share code, notes, and snippets.

@cmb69 cmb69/76753.inc.php
Created Aug 17, 2018

Embed
What would you like to do?
<?php
for ($x=0; $x<10; $x++) {
switch ($x) {
case 1:
continue;
}
}
<?php
// REPORT ALL ERRORS / WARNINGS / NOTICES
error_reporting(E_ALL);
// CATCH ERRORS / WARNINGS / NOTICES, AND THROW AN EXCEPTION IN THEIR PLACE
set_error_handler(function ($errno, $errstr, $errfile, $errline) {
throw new ErrorException($errstr, $errno, 0, $errfile, $errline);
});
include __DIR__ . '/76753.inc.php';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.