RE: [PHP] how to say "inverse your value" (to a boolean)?
| From: | Ford, Mike | Date: | Tue, 11 Aug 2009 09:53:36 +0000 |
| Subject: | RE: [PHP] how to say "inverse your value" (to a boolean)? | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-296613@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Daevid Vincent [mailto:daevid@daevid.com]
> Sent: 11 August 2009 02:19
>
> Then YOU have more aggressive error_reporting than the default
> setting
> turned on. You might consider turning it down a notch. NOTICEs are
> basically
> useless and bloat your code IMHO -- and apparently the PHP devs too
> as per
> this...
>
> http://us2.php.net/manual/en/function.error-reporting.php
>
> // Report all errors except E_NOTICE
> // This is the default value set in php.ini
> error_reporting(E_ALL ^ E_NOTICE);
Yes, but recent versions also have the following recommended settings:
; error_reporting
; Development Value: E_ALL | E_STRICT
; Production Value: E_ALL & ~E_DEPRECATED
; display_errors
; Development Value: On
; Production Value: Off
Cheers!
Mike
--
Mike Ford,
Electronic Information Developer, Libraries and Learning Innovation,
Leeds Metropolitan University, C507, Civic Quarter Campus,
Woodhouse Lane, LEEDS, LS1 3HE, United Kingdom
Email: m.ford@leedsmet.ac.uk
Tel: +44 113 812 4730
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm