Re: Why do disabled functions / classes generate a WARNING.
| From: | Hannes Magnusson | Date: | Fri, 03 Aug 2012 11:33:40 +0000 |
| Subject: | Re: Why do disabled functions / classes generate a WARNING. | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-62001@lists.php.net to get a copy of this message | ||
On Fri, Aug 3, 2012 at 8:08 AM, Leigh <leight@gmail.com> wrote:
> Hi all,
>
> Can anyone explain to me the reason that when a function or class is
> disabled via the ini setting, an attempt to access the disabled item
> generates a non-fatal error?
Because there isn't anything actually wrong.
A fatal error is reserved for things we cannot recover from, but a
disabled function is easily recoverable.
-Hannes