Try/Catch block in PHP not catching Exception

后端 未结 12 813
既然无缘
既然无缘 2020-12-04 13:45

I am trying to run this Example #1 from this page: http://php.net/manual/en/language.exceptions.php



        
12条回答
  •  猫巷女王i
    2020-12-04 14:38

    in Xdebug there is a setting:

    xdebug.show_exception_trace = 1
    

    This will force php to output exceptions even in a try catch block. Turn this to 0

提交回复
热议问题