有没有办法阻止堆栈跟踪输出异常错误?

时间:2015-05-12 16:21:08

标签: php exception error-handling exception-handling

我想阻止Stack Traces出现在我的Download PHP中。

我的PHP代码:

fatal errors

结果:

  

致命错误:未捕获的异常'ErrorException',消息'Failed here!'在C:\ file \ path \ File.php:25堆栈跟踪:#0 C:\ xampp \ htdocs \ sample-integrations \ site-folder \ index.php(18):Realex \ Transaction :: create(Array)#在第25行的C:\ file \ path \ File.php中抛出1 {main}

在浏览器中输出。如何删除堆栈跟踪?

1 个答案:

答案 0 :(得分:1)

这可能是由https://stackoverflow.com/a/17766961/400114回答的?使用XDebug扩展中的xdebug_disable()功能。

不太理想,但可能会做到这一点!

相关问题