dpql57753 2014-07-10 14:34
浏览 41
已采纳

Wamp Server 2.4避免显示PHP 5.4通知[关闭]

I have the following setting at my php.ini located at D:\wamp\bin\apache\Apache2.4.4\bin:

error_reporting = E_ALL

I now have changed it to

error_reporting = E_ALL | E_STRICT

Then I restarted all services of Wamp.

It doesn't still show the the notices that the production server show.

At both states, in phpinfo() I can see error_reporting set to 32767.

  • 写回答

1条回答 默认 最新

  • duanrong6802 2014-07-10 16:54
    关注

    I think there was a little bug that escaped in WampServer2.4 and that was that the php.ini file had the error_log parameter commented out.

    So edit php.ini ( using the wampmanager -> PHP -> php.ini )

    Look for

    ;error_log = "c:/wamp/logs/php_error.log"
    

    and change it to

    error_log = "c:/wamp/logs/php_error.log"
    

    Assuming you are installed on the C: drive

    Also check

    log_errors = On
    

    just to be sure.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?