PHP Velho Oeste 2024

오류 보고

PHP 5부터 새 오류 보고 상수 E_STRICT가 2048 값으로 나왔습니다. 이는 코드에 대해서 상호 운용성과 상위 호환을 전제로 한 런타임 PHP 제안을 활성화합니다. 이로써 최신의 좋은 권고 방식으로 코딩할 수 있습니다. 예를 들면, STRICT 메세지는 배제된 함수에 대해서 경고를 해줍니다.

Note: E_ALL은 E_STRICT를 포함하지 않으므로, 기본값으로 활성화 되어 있지 않습니다.

add a note add a note

User Contributed Notes 2 notes

up
18
Anonymous
11 years ago
According to the notes in the php.ini file, E_ALL *does* include E_STRICT; to exclude it you would use E_ALL & ~E_STRICT

This may be useful for someone who has upgraded and kept their old php.ini
up
-12
Anonymous
16 years ago
To enable full error reporting (recommended for development boxes) use:

use error_reporting(E_ALL | E_STRICT);

or in php.ini:

error_reporting  =  E_ALL | E_STRICT
To Top