Re: In regards to E_STRICT and PHP5
| From: | Rasmus Lerdorf | Date: | Thu, 16 Jun 2005 20:32:11 +0000 |
| Subject: | Re: In regards to E_STRICT and PHP5 | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-16765@lists.php.net to get a copy of this message | ||
Jason Garber wrote:
> Hello boots,
>
> if(AppDevLevel == 'Production')
> {
> error_reporting(E_ALL);
> }
> else
> {
> error_reporting(E_ALL | E_STRICT);
> }
>
> Why don't you implement something like this in your application -
> then you CAN control what error level is used at the client site.
Because setting E_SCRIPT at runtime is mostly useless as many of the
E_STRICT checks are compile-time.
-Rasmus