sherlockwhite
0.01D
V2EX  ›  问与答

PHP 报错不显示的问题

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