duandeng7132 2012-09-04 11:52
浏览 27
已采纳

display_errors和php 5.4

maybe someone can shed some light on this: why when I upload big image to my prestashop powered website it gives "memory exhausted error" (which is what I've expected), but only when php version is 5.3.14. When I switch to 5.4.4 - the same procedure gives blank page. display_errors is set to 'on' both times.

From php.net documentation - "Although display_errors may be set at runtime (with ini_set()), it won't have any affect if the script has fatal errors. This is because the desired runtime action does not get executed.". Maybe this is the case? But why it gives error message with 5.3 and not with 5.4?

By the way error goes away as soon as I increase memory limit. Both on 5.3 and 5.4.

  • 写回答

2条回答 默认 最新

  • drv13270 2012-10-03 06:37
    关注

    Maybe you didn't set the memory limit high enough. Are you sure that you've set the error_reporting parameter correct on your 5.4.4 version?

    Try this:

    error_reporting(E_ALL);
    ini_set('display_errors', 1);
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥20 基于MSP430f5529的MPU6050驱动,求出欧拉角
  • ¥20 Java-Oj-桌布的计算
  • ¥15 powerbuilder中的datawindow数据整合到新的DataWindow
  • ¥20 有人知道这种图怎么画吗?
  • ¥15 pyqt6如何引用qrc文件加载里面的的资源
  • ¥15 安卓JNI项目使用lua上的问题
  • ¥20 RL+GNN解决人员排班问题时梯度消失
  • ¥60 要数控稳压电源测试数据
  • ¥15 能帮我写下这个编程吗
  • ¥15 ikuai客户端l2tp协议链接报终止15信号和无法将p.p.p6转换为我的l2tp线路