Subversion-Projekte lars-tiefland.ci

Revision

Revision 68 | Revision 2049 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 68 Revision 1257
Zeile 542... Zeile 542...
542
				414	=> 'Request-URI Too Long',
542
				414	=> 'Request-URI Too Long',
543
				415	=> 'Unsupported Media Type',
543
				415	=> 'Unsupported Media Type',
544
				416	=> 'Requested Range Not Satisfiable',
544
				416	=> 'Requested Range Not Satisfiable',
545
				417	=> 'Expectation Failed',
545
				417	=> 'Expectation Failed',
546
				422	=> 'Unprocessable Entity',
546
				422	=> 'Unprocessable Entity',
-
 
547
				426	=> 'Upgrade Required',
-
 
548
				428	=> 'Precondition Required',
-
 
549
				429	=> 'Too Many Requests',
-
 
550
				431	=> 'Request Header Fields Too Large',
Zeile 547... Zeile 551...
547
 
551
 
548
				500	=> 'Internal Server Error',
552
				500	=> 'Internal Server Error',
549
				501	=> 'Not Implemented',
553
				501	=> 'Not Implemented',
550
				502	=> 'Bad Gateway',
554
				502	=> 'Bad Gateway',
551
				503	=> 'Service Unavailable',
555
				503	=> 'Service Unavailable',
552
				504	=> 'Gateway Timeout',
556
				504	=> 'Gateway Timeout',
-
 
557
				505	=> 'HTTP Version Not Supported',
553
				505	=> 'HTTP Version Not Supported'
558
				511	=> 'Network Authentication Required',
Zeile 554... Zeile 559...
554
			);
559
			);
555
 
560
 
556
			if (isset($stati[$code]))
561
			if (isset($stati[$code]))
Zeile 596... Zeile 601...
596
	 * @param	int	$line
601
	 * @param	int	$line
597
	 * @return	void
602
	 * @return	void
598
	 */
603
	 */
599
	function _error_handler($severity, $message, $filepath, $line)
604
	function _error_handler($severity, $message, $filepath, $line)
600
	{
605
	{
601
		$is_error = (((E_ERROR | E_COMPILE_ERROR | E_CORE_ERROR | E_USER_ERROR) & $severity) === $severity);
606
		$is_error = (((E_ERROR | E_PARSE | E_COMPILE_ERROR | E_CORE_ERROR | E_USER_ERROR) & $severity) === $severity);
Zeile 602... Zeile 607...
602
 
607
 
603
		// When an error occurred, set the status header to '500 Internal Server Error'
608
		// When an error occurred, set the status header to '500 Internal Server Error'
604
		// to indicate to the client something went wrong.
609
		// to indicate to the client something went wrong.
605
		// This can't be done within the $_error->show_php_error method because
610
		// This can't be done within the $_error->show_php_error method because
Zeile 654... Zeile 659...
654
	function _exception_handler($exception)
659
	function _exception_handler($exception)
655
	{
660
	{
656
		$_error =& load_class('Exceptions', 'core');
661
		$_error =& load_class('Exceptions', 'core');
657
		$_error->log_exception('error', 'Exception: '.$exception->getMessage(), $exception->getFile(), $exception->getLine());
662
		$_error->log_exception('error', 'Exception: '.$exception->getMessage(), $exception->getFile(), $exception->getLine());
Zeile -... Zeile 663...
-
 
663
 
658
 
664
		is_cli() OR set_status_header(500);
659
		// Should we display the error?
665
		// Should we display the error?
660
		if (str_ireplace(array('off', 'none', 'no', 'false', 'null'), '', ini_get('display_errors')))
666
		if (str_ireplace(array('off', 'none', 'no', 'false', 'null'), '', ini_get('display_errors')))
661
		{
667
		{
662
			$_error->show_exception($exception);
668
			$_error->show_exception($exception);