0

I want to hide E_STRICT warning with error_reproting , my php version is 5.4 I try this

error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT & ~E_WARNING);
ini_set('display_errors', TRUE);

I also try

error_reporting(E_ALL | E_STRICT);

and

error_reporting(E_ALL^ E_STRICT );

and

error_reporting(E_ALL ^E_NOTICE ^ E_STRICT ^E_WARNING);

but I still see the E_STRICT warning ,why it not applied?

what is the problem and how can I fix it?

my php version 5.4

hakre
  • 193,403
  • 52
  • 435
  • 836
Yuseferi
  • 7,931
  • 11
  • 67
  • 103

1 Answers1

1

Before 5.4

error_reporting(E_ALL | E_STRICT);

After 5.4 when E_STRICT became part of E_ALL

error_reporting('E_ERROR | E_WARNING | E_PARSE');
Pakspul
  • 648
  • 5
  • 17