sherlockwhite
0.01D
V2EX  ›  问与答

PHP 报错不显示的问题

  •  
  •   sherlockwhite · Mar 5, 2020 · 1707 views
    This topic created in 2436 days ago, the information mentioned may be changed or developed.

    ini_set('display_errors',TRUE); error_reporting(E_ALL); 我已经开启了这两个,phpinfo 里 Local Value 也显示生效了,为什么还是不报错还是直接 500 呢

    10 replies  •  2020-03-06 07:48:28 +08:00
    sherlockwhite
    sherlockwhite
    OP
    Mar 5, 2020
    1
    求大佬解答
    sherlockwhite
    sherlockwhite
    OP
    Mar 5, 2020
    2
    有大佬遇到过这个问题吗
    qiayue
    qiayue
    Mar 5, 2020
    3
    php.ini 也要改
    GM
    GM
    Mar 5, 2020
    4
    有可能你用的框架拦截了这个错误
    sherlockwhite
    sherlockwhite
    OP
    Mar 5, 2020 via Android
    5
    @qiayue 我记得以前不改 php.ini 也可以
    sherlockwhite
    sherlockwhite
    OP
    Mar 5, 2020 via Android
    6
    @GM 没用框架,原生的 php
    sherlockwhite
    sherlockwhite
    OP
    Mar 5, 2020
    7
    还有就是是 docker 镜像 lnmp 搭建的容器里面的
    sherlockwhite
    sherlockwhite
    OP
    Mar 5, 2020
    8
    修改了 php.ini 是可以,但是原来的问题还没搞明白。
    yafoo
    yafoo
    Mar 5, 2020 via Android
    9
    也可能 nginx 拦截了
    sherlockwhite
    sherlockwhite
    OP
    Mar 6, 2020 via Android
    10
    @yafoo nginx 会拦截么,但是我改了 php.ini 是可以的啊,这两个效果不是一样的么
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4812 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 07:49 · PVG 15:49 · LAX 23:49 · JFK 02:49
    ♥ Do have faith in what you're doing.