PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Отстраняване на грешки в PHP> <Migrating from PHP 4 to PHP 5
Last updated: Fri, 27 Jun 2008

view this page in

Error Reporting

As of PHP 5 new error reporting constant E_STRICT was introduced with value 2048. It enables run-time PHP suggestions on your code interoperability and forward compatibility, that will help you to keep latest and greatest suggested method of coding. E.g. STRICT message will warn you on using deprecated functions.

Забележка: E_ALL does not include E_STRICT so it's not enabled by default



add a note add a note User Contributed Notes
Error Reporting
Anonymous
31-Mar-2008 04:52
To enable full error reporting (recommended for development boxes) use:

use error_reporting(E_ALL | E_STRICT);

or in php.ini:

error_reporting  =  E_ALL | E_STRICT

 
show source | credits | stats | sitemap | contact | advertising | mirror sites