Code: Select all
try {
$RESULT = gzinflate($RESULT);
} catch (Exception $e) {
$RESULT = '';
}Code: Select all
$RESULT = @gzinflate($RESULT);Moderator: General Moderators
Code: Select all
try {
$RESULT = gzinflate($RESULT);
} catch (Exception $e) {
$RESULT = '';
}Code: Select all
$RESULT = @gzinflate($RESULT);Code: Select all
ob_start();
ini_set('display_errors',0);
$RESULT = @gzinflate($RESULT);
ini_set('display_errors',1);
$potentialErrorMsg = ob_get_clean();Code: Select all
ini_set('display_errors','1');
error_reporting(E_ALL);Code: Select all
$test = 'asdfasdf';
try {
$RESULT = gzinflate($test);
} catch (Exception $e) {
$RESULT = '';
}
$RESULT = @gzinflate($test);Code: Select all
set_error_handler('my_handler');
... code here ...
restore_error_handler();Code: Select all
$RESULT = @gzinflate($test);I think @ counts as an error reporting setting, and thus has no effect, your error handler gets called, which is "sorta" documented behaviorIt is important to remember that the standard PHP error handler is completely bypassed. error_reporting() settings will have no effect and your error handler will be called regardless - however you are still able to read the current value of error_reporting and act appropriately. Of particular note is that this value will be 0 if the statement that caused the error was prepended by the @ error-control operator.