Last 5.3 release ever available: PHP 5.3.29 - 5.3 now EOL

Informe de errores

Desde PHP 5, la constante de informe de error E_STRICT queda disponible, con el valor 2048. Cuando se habilite, se emitirán mensajes para alertar del uso de código que ha quedado obsoleto o que podría quedarlo en un futuro.

Nota: E_ALL no incluye E_STRICT, de modo que no está habilitado por omisión. Se puede incluir el nivel de error E_STRICT explícitamente para poder ver sus mensajes.

Revise las Constantes Predefinidas para más información.

add a note add a note

User Contributed Notes 4 notes

up
7
Anonymous
2 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
4
matthew dot flaschen at gatech dot edu
1 year ago
E_ALL includes E_STRICT in 5.4.0 and up.
up
0
Toon Spin
9 days ago
One way to see all errors, is to set error_reporting to -1. Because the value is a signed integer, this has the effect of setting all its bits to 1, enabling every possible error_reporting mode, even ones that PHP developers may add in the future.
up
-2
Anonymous
6 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