Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error Reporting

Status
Not open for further replies.

kettch

Programmer
Mar 5, 2001
110
US
I have just installed PHP 5.3 and dotProject. However when I try to navigate to the application PHP throws a large number of warnings about deprecated code. The recommendation from dotProject is to tell PHP not to show deprecation warnings. However, when I looked in php.ini the default values seem to indicate that this is already what is configured.

Code:
error_reporting = E_ALL & ~E_DEPRECATED

How can I do away with these warnings?

Thanks.
 
you can override the php.ini error settings in your application. so somewhere in dotProject (whatever that is) the code is setting error_reporting to (E_ALL). do a search to find it.

if you have changed your php.ini file you will need to restart apache or IIS before the changes will be apparent.
 
Hey kettch,

Along the lines of the jpadie had said, but in the php.ini file I would keep it as:

error_reporting = E_ALL

By removing ~E_DEPRECATED part, the deprecated code messages should be gone, but you still have full reporting of PHP errors for troubleshooting with the site.

Brendan Murtagh - HostMySite.com
Technical Support Representative
bmurtagh@hostmysite.com
 
the tilde prefix suppresses that type of error report. so the ~E_DEPRECATED will be suppressing the deprecation warnings but something in the OP's code will be overriding this.
 
Remember that hiding the warnings doesn't solve the problems! You will still need to fix the problems rather than just hiding them, or your app will probably break with the next PHP update.

If you want the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
 
It's not my app. It's not even my choice. I only have to force the product to work. I'm not inclined to waste any more time than necessary fixing it, even if it is open source. All of the messages are deprecation warnings from PHP. I'm just not going to update the runtime until the product is fixed.

The company has already spent more on my wages fixing it enough to work than it would have cost to buy a shrinkwrapped product.

</rant>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top