|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2005-07-19 15:42 UTC] derick@php.net
  [2005-07-19 15:48 UTC] tony2001@php.net
  [2005-07-21 12:21 UTC] dmitry@php.net
  [2005-09-20 22:00 UTC] tony2001@php.net
  [2005-09-22 21:05 UTC] tony2001@php.net
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 04:00:01 2025 UTC | 
Description: ------------ If exception is throwed with error suppression (@) and catched by try/catch block error_reporting will fall to 0 Reproduce code: --------------- ini_set('display_errors', 1); error_reporting(E_ALL | E_STRICT); echo "1. error_reporting = " . error_reporting() . "\n"; function make_exception() { throw new Exception(); } try { @make_exception(); } catch (Exception $e) {} echo "2. error_reporting = " . error_reporting() . "\n"; Expected result: ---------------- 1. error_reporting = 4095 2. error_reporting = 4095 Actual result: -------------- 1. error_reporting = 4095 2. error_reporting = 0