E_STRICT messages that are not selected

Since upgrading my test server to PHP 5.3.3 (Debian Squeeze), I have encountered strange behavior regarding error messages in PHP.

I set error_reporting as follows:

error_reporting(E_ALL);

and checked the setting with

echo error_reporting();

which echoes with 30719. According to php.net, this means "All errors and warnings are supported except for the E_STRICT level.".

But in the very next line (class definition abstract class formInputContainer extends formContainer implements formElementValueable { ... }) this leads to a message:

Strict (2048): Form declarationInputContainer :: addElement () must be compatible with the name formContainer :: addElement ()

Why is the E_STRICT message echoed, although it is not set? Even switching to E_ALL and ~ E_STRICT does not help.

+3
2

( set_error_handler()), error_reporting . :

manual :

, PHP , error_types, FALSE. error_reporting() , - error_reporting .

+4

, , , , (, ). , error_reporting(). php.ini E_STRICT . , , phpinfo().

+5

Source: https://habr.com/ru/post/1785465/


All Articles