ExceptionHandler.php 532 B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * 重庆赤晓店信息科技有限公司
  4. * https://www.chixiaodian.com
  5. * Copyright (c) 2023 赤店商城 All rights reserved.
  6. */
  7. class PHPExcel_Calculation_ExceptionHandler
  8. {
  9. /**
  10. * Register errorhandler
  11. */
  12. public function __construct()
  13. {
  14. set_error_handler(array('PHPExcel_Calculation_Exception', 'errorHandlerCallback'), E_ALL);
  15. }
  16. /**
  17. * Unregister errorhandler
  18. */
  19. public function __destruct()
  20. {
  21. restore_error_handler();
  22. }
  23. }