How to disable E_STRICT

后端 未结 5 1366
天命终不由人
天命终不由人 2020-12-17 10:15

I need to turn off E_STRICT. I have error_reporting = E_ALL & ~E_STRICT in my php.ini but it seems to be ignored. I tried this in my code:

ini_set(\'erro         


        
5条回答
  •  -上瘾入骨i
    2020-12-17 10:46

    I was installing CMS Made simple when I ran into that error but here is how I over came it:

    1) Open your php.ini file using any of your favorite editors;notepad, notepad++ or dreamweaver.

    2) Press ctrl+f to fire up the find Dialog Box.

    3) Type E_STRICT and click ok to jump you to the E_STRICT Line, there several E_STRICT Stuff but look for one with this kind of setting;

    Common Values:

    E_ALL & ~E_NOTICE  (Show all errors, except for notices and coding standards warnings.)
       E_ALL & ~E_NOTICE | E_STRICT  (Show all errors, except for notices)
       E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR  (Show only errors)
       E_ALL | E_STRICT  (Show all errors, warnings and notices including coding standards.)
     Default Value: E_ALL & ~E_NOTICE
     Development Value: E_ALL | E_STRICT
     Production Value: E_ALL & ~E_DEPRECATED
     http://php.net/error-reporting
    

    error_reporting = E_ALL , here the value with out the ";" is what matters so I just cleared it to:

    error_reporting = (delete) and removed the E_ALL, and saved the file, I restarted all the services, and everything worked fine. Hope that works for you too!.

提交回复
热议问题