Re: [RFC][VOTE] User defined session serializer
| From: | Yasuo Ohgaki | Date: | Tue, 06 Dec 2016 03:02:01 +0000 |
| Subject: | Re: [RFC][VOTE] User defined session serializer | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-97300@lists.php.net to get a copy of this message | ||
Hi Levi,
On Tue, Dec 6, 2016 at 11:52 AM, Levi Morrison <levim@php.net> wrote:
>>> These are not consistent with return type checking. This *must* reuse
>>> the error checking that is already in-place and not provide something
>>> new to accomplish the same thing.
>>
>> What do you mean by inconsistent?
>
> We do not use E_RECOVERABLE_ERROR for return type mismatches; we use
> TypeError. That is the inconsistency.
It depends. Session module uses errors rather than exceptions. Mixing
them is inconsistent for a module.
I wrote I prefer exceptions and I'll handle error handling issue
(error -> exception) with other RFC during discussion. So don't worry
about it for now.
Regards,
--
Yasuo Ohgaki
yohgaki@ohgaki.net