IberoMedia
IberoMedia

Reputation: 2304

.htaccess setting error_display to E_ALL

I understand I can set error_display within .htaccess file using predefined constants: http://php.net/manual/en/errorfunc.constants.php

I am looking for a number that would let me set the error_display to all but disable strict mode, warnings and notices

I guess the equivalent of E_ALL | ~E_WARNINGS | ~E_NOTICES | ~E_STRICT ?

Upvotes: 1

Views: 1178

Answers (1)

Ken Richards
Ken Richards

Reputation: 3011

According to the PHP constants, this would equate to: 32767 & ~2 & ~8 & ~2048 which is 30709 (according to my Windows programmer's calculator)

# in your .htaccess file...
php_value error_reporting 30709

Upvotes: 2

Related Questions