Re: Exceptions for method on non-object rather than fatal (desired feature?)
| From: | Kalle Sommer Nielsen | Date: | Tue, 21 Feb 2012 17:28:06 +0000 |
| Subject: | Re: Exceptions for method on non-object rather than fatal (desired feature?) | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-57921@lists.php.net to get a copy of this message | ||
2012/2/21 Ralf Lang <lang@b1-systems.de>:
>>> I see no reason why it would be not desirable to have PHP raise the
>>> exception rather than putting more or less repeating code snippets all
>>> around the place. That is why I am asking.
>>
>>
>> This topic have been raised many many times (Turning errors into
>> Exceptions).
>
>
> What's the result? Should we do it or not?
It was a clear no from most core guys, if you want some more detailed
answer, try search the internals@ archieve on markmail.
> No magic wanted here. Just a yes, want / no, don't want.
>
What I suggest you to do, if you want this in the core, then write an
RFC[1], and propose your suggestion for it to get voted on.
[1] http://wiki.php.net/rfc
--
regards,
Kalle Sommer Nielsen
kalle@php.net