"PHP error reporting()"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-== 참고 자료 == +==참고==))
38번째 줄: 38번째 줄:
*[[PHP 에러 핸들링 함수]]
*[[PHP 에러 핸들링 함수]]


==참고 자료==
==참고==
*http://php.net/manual/en/function.error-reporting.php
*http://php.net/manual/en/function.error-reporting.php
*http://php.net/manual/en/errorfunc.configuration.php#ini.error-reporting
*http://php.net/manual/en/errorfunc.configuration.php#ini.error-reporting


[[분류: PHP 오류]]
[[분류: PHP 오류]]

2017년 6월 27일 (화) 12:21 판

1 개요

PHP error_reporting()
  • 오류 보고 수준을 설정하는 PHP 함수

2 예시

오류 출력 끄기
PHP
Copy
error_reporting(0);
모든 오류 보기
PHP
Copy
error_reporting(E_ALL);
PHP
Copy
error_reporting(E_ALL);
PHP
Copy
error_reporting(-1);
PHP
Copy
ini_set('error_reporting', E_ALL);
E_NOTICE를 제외한 모든 오류 보기
PHP
Copy
error_reporting(E_ALL & ~E_NOTICE);
E_ERROR, E_WARNING 보기
PHP
Copy
error_reporting(E_ERROR | E_WARNING);

3 같이 보기

4 참고