Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

View @ supressed errors in php

Tags:

php

I know you can use @ to suppress errors. But is there anyway you can make php ignore @ ?

In my case, I have to use a 3th party script that uses @, the script is huge and I'm having a hard time finding out where it dies.

like image 522
johnlemon Avatar asked Dec 10 '22 10:12

johnlemon


1 Answers

When you use the PHP Xdebug extension you can ignore the error control operator @ by using this config setting:

xdebug.scream = 1

This disables the @ (shut-up) operator so that notices, warnings and errors are no longer hidden.

like image 100
powtac Avatar answered Dec 24 '22 16:12

powtac