Re: Shackle - disable error_reporting changes
| From: | Hannes Magnusson | Date: | Wed, 02 Dec 2009 18:57:32 +0000 |
| Subject: | Re: Shackle - disable error_reporting changes | ||
| References: | 1 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-6875@lists.php.net to get a copy of this message | ||
On Wed, Dec 2, 2009 at 19:34, Sean Coates <sean@seancoates.com> wrote:
> Hi.
>
> I've been testing a bunch of third-party PHP apps lately. A lot of them change the
> error_reporting level in userspace. This drives me crazy. Almost as crazy as @function(). Luckily
> Scream has fixed the @ problem, but the error_reporting problem continued to plague my testing.
>
> Often, these apps will change the error_reporting in their initialization code, which is often
> before sending headers.
>
> I tried using disabled_functions for error_reporting, but this causes its own warnings. This
> causes output before headers, and its own set of problems. This also leaves the ini_set() hole open.
Wouldn't php_admin_value error_reporting .... work?
Or does the error_reporting() function do some trickery to avoid it?
-Hannes