Search This Blog

Monday, April 9, 2012

Hide PHP E_DEPRECATED Error Message in PHP 5.3.0

With PHP 5.3 the error level E_DEPRECATED was introduced that shows messages concerning deprecated PHP methods and behaviours.

To avoid displaying these messages on productive systems, the error_reporting (e.g. used in index_ts.php) should be extended like this:

error_reporting (E_ALL ^ E_NOTICE ^ E_DEPRECATED);

1 comment:

  1. Thanks a lot for sharing this information.Hope you will keep this good job in future also.

    classified ad software

    ReplyDelete

content-wide advt