I'm having trouble turning error reporting off.
I've set the following in php.ini:
error_reporting = E_ALL & ~E_DEPRECATED
display_errors = off
Also tried ~E_NOTICE but that didn't work either.
Specifically I'm getting deprecated errors:
Deprecated: Assigning the return value of new by reference is deprecated in <path>
The above line of code did not turn it off.
I also tried error_reporting(0); right on the page (actually on both pages involved) and that hasn't worked either.
Bottom line is, I have to get rid of that error! how do I do that? Getting rid of the code that causing the error isn't an option right now.
PHP Error Reporting
Moderator: General Moderators
Re: PHP Error Reporting
You know, all you have to do to resolve that error is remove the & from
Two seconds.
What if you do the error_reporting(0); just before that one line?
Code: Select all
$var =& new Object();What if you do the error_reporting(0); just before that one line?
Re: PHP Error Reporting
I removed & and that did trick. I appreciate it!