output asked headers in the order they were asked; avoid header name spoofing by...
[hband-tools.git] / user-tools / error_reporting.php
blobc85b9cadad37fc8efdbd41246a25074bb55ea84c
1 #!/usr/bin/env php
2 <?php
4 $err_rep = isset($argv[1]) ? $argv[1] : error_reporting();
6 foreach(get_defined_constants() as $const => $val)
8 if(preg_match('/^E_/', $const))
10 $mask = ($err_rep & $val);
11 if($mask == $val) $c = '';
12 elseif($mask == 0) $c = '~';
13 else $c = '#';
15 echo "$c$const\n";