Skip to content

Instantly share code, notes, and snippets.

@pkruithof
Created August 8, 2011 11:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pkruithof/1131598 to your computer and use it in GitHub Desktop.
Save pkruithof/1131598 to your computer and use it in GitHub Desktop.
Sag error reporting
<?php
error_reporting(E_ALL & ~E_NOTICE | E_STRICT); // (Show all errors, except for notices)
$sag_supported = E_ALL ^ E_NOTICE;
$current = error_reporting();
var_dump($current > $sag_supported || $current < 0); // true
var_dump(($current & E_NOTICE) > 0); // false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment