src/app/n2n/core/err/ExceptionHandler.php
public function checkForFatalErrors() {
		// in case of memory size exhausted error
		gc_collect_cycles();
// 		$this->checkForPendingLogExceptions();
		
		$error = error_get_last();
		
		if (!isset($error) || $this->checkForError($error['type'], $error['file'], $error['line'], $error['message'])) {
			return;
		}
				
// 		if ($error['type'] == E_WARNING && substr($error['message'], 0, 23) == 'DateTime::__construct()') {
// 			return;
// 		}
		
// 		if (!$this->strictAttitude || ($error['type'] & self::STRICT_ATTITUTE_PHP_SEVERITIES)) {
// 			return;
// 		}
		
		try {
			$this->handleTriggeredError($error['type'], $error['message'], $error['file'], $error['line'], null, true);
		} catch (\Throwable $e) {
			$this->dispatchException($e);
		}

		$this->checkForPendingLogExceptions();
	}
public function checkForFatalErrors() {
		// in case of memory size exhausted error
		gc_collect_cycles();
// 		$this->checkForPendingLogExceptions();
		
		$error = error_get_last();
		
		if (!isset($error) || $this->checkForError($error['type'], $error['file'], $error['line'], $error['message'])) {
			return;
		}
				
// 		if ($error['type'] == E_WARNING && substr($error['message'], 0, 23) == 'DateTime::__construct()') {
// 			return;
// 		}
		
// 		if (!$this->strictAttitude || ($error['type'] & self::STRICT_ATTITUTE_PHP_SEVERITIES)) {
// 			return;
// 		}
		
		try {
			$this->handleTriggeredError($error['type'], $error['message'], $error['file'], $error['line'], null, true);
		} catch (\Throwable $e) {
			$this->dispatchException($e);
		}

		$this->checkForPendingLogExceptions();
	}
public function checkForFatalErrors ( ) { // in case of memory size exhausted error
 gc_collect_cycles ( ) ; // 		$this->checkForPendingLogExceptions();
 $ error = error_get_last ( ) ; if ( ! isset ( $ error ) || $ this -> checkForError ( $ error [ 'type' ] , $ error [ 'file' ] , $ error [ 'line' ] , $ error [ 'message' ] ) ) { return ; } // 		if ($error['type'] == E_WARNING && substr($error['message'], 0, 23) == 'DateTime::__construct()') {
 // 			return;
 // 		}
 // 		if (!$this->strictAttitude || ($error['type'] & self::STRICT_ATTITUTE_PHP_SEVERITIES)) {
 // 			return;
 // 		}
 try { $ this -> handleTriggeredError ( $ error [ 'type' ] , $ error [ 'message' ] , $ error [ 'file' ] , $ error [ 'line' ] , null , true ) ; } catch ( \ Throwable $ e ) { $ this -> dispatchException ( $ e ) ; } $ this -> checkForPendingLogExceptions ( ) ; }
Is called from N2N after shutdown was performed to detect and handle fatal errors which
weren't handled yet.
Is called from N2N after shutdown was performed to detect and handle fatal errors which weren t handled yet .