Ignore:
Timestamp:
Aug 26, 2022, 11:04:38 PM (2 years ago)
Author:
chronos
Message:
  • Fixed: Do not terminate script with error if fsockopen fails.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Common/Global.php

    r938 r942  
    397397  return $Data;
    398398}
     399
     400function ExeceuteNoError(callable $Function): void
     401{
     402  try
     403  {
     404    $LastErrorReporting = error_reporting();
     405    error_reporting(0);
     406    $function();
     407  }
     408  finally
     409  {
     410    error_reporting($LastErrorReporting);
     411  }
     412}
Note: See TracChangeset for help on using the changeset viewer.