I have a very strange situation: code shown below should print no error in PHP.
try {
throw new Exception('foo');
} catch(Exception $e) {
// here could be some custom functions to handle errors
die();
}
On my computer it prints
( ! ) SCREAM: Error suppression ignored for
( ! ) Exception: foo. in D:\wamp\www\index.php on line 4
Why? Which php ini option does that?
The Scream extension is an extension aimed at developers, so that they get to see error messages from their code even when they would normally be suppressed.
xDebug is another developer extension that also includes the same functionality.
If you have either of these extensions, the Scream feature can be disabled in your PHP config.
But neither of those extensions should be in use on a production system — they are intended for use on a developer’s system only. If it’s on your live site, then the extension should be disabled entirely.