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.

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

报告相同问题?

悬赏问题

  • ¥15 Python turtle 画图
  • ¥15 关于大棚监测的pcb板设计
  • ¥15 stm32开发clion时遇到的编译问题
  • ¥15 lna设计 源简并电感型共源放大器
  • ¥15 如何用Labview在myRIO上做LCD显示?(语言-开发语言)
  • ¥15 Vue3地图和异步函数使用
  • ¥15 C++ yoloV5改写遇到的问题
  • ¥20 win11修改中文用户名路径
  • ¥15 win2012磁盘空间不足,c盘正常,d盘无法写入
  • ¥15 用土力学知识进行土坡稳定性分析与挡土墙设计