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.