Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:97307 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 1851 invoked from network); 6 Dec 2016 13:36:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Dec 2016 13:36:59 -0000 Authentication-Results: pb1.pair.com smtp.mail=bobwei9@hotmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=bobwei9@hotmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain hotmail.com designates 65.55.111.171 as permitted sender) X-PHP-List-Original-Sender: bobwei9@hotmail.com X-Host-Fingerprint: 65.55.111.171 blu004-omc4s32.hotmail.com Received: from [65.55.111.171] ([65.55.111.171:60943] helo=BLU004-OMC4S32.hotmail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E5/61-11772-AFEB6485 for ; Tue, 06 Dec 2016 08:36:58 -0500 Received: from BLU437-SMTP23 ([65.55.111.136]) by BLU004-OMC4S32.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Tue, 6 Dec 2016 05:36:55 -0800 X-TMN: [slF3116zJ5HwYWpOfg3RvCbh3Y/9TYMm] X-Originating-Email: [bobwei9@hotmail.com] Message-ID: Content-Type: multipart/alternative; boundary="Apple-Mail=_1E5B048B-D3EA-46DE-95D1-9C521371031B" MIME-Version: 1.0 (Mac OS X Mail 10.1 \(3251\)) Date: Tue, 6 Dec 2016 14:36:56 +0100 In-Reply-To: CC: "internals@lists.php.net" To: Yasuo Ohgaki References: X-Mailer: Apple Mail (2.3251) X-OriginalArrivalTime: 06 Dec 2016 13:36:53.0038 (UTC) FILETIME=[CDFF54E0:01D24FC5] Subject: Re: [PHP-DEV] [RFC][VOTE] User defined session serializer From: bobwei9@hotmail.com (Bob Weinand) --Apple-Mail=_1E5B048B-D3EA-46DE-95D1-9C521371031B Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="us-ascii" Hey, > Am 06.12.2016 um 08:06 schrieb Yasuo Ohgaki : >=20 > Hi all, >=20 > *snip* >=20 > * Why it does not use exception for error? >=20 > Session module uses "errors", not "exceptions" basically. Session save > handler uses "errors" also. We should avoid inconsistency in a module. > Exception adoption will be addressed and exceptions will be used > consistent manner by other RFC. This is not session module specific, your interface is specifying a = return type. Thus this should be enforced on the interface = implementation level. (I.e. it will be impossible for an user to define = a function not having a return type of string/array) Also, if a wrong argument is passed to a function, it should throw a = type error. Perhaps old modules from pre-PHP 5 do emit warnings or = recoverables, but we then shall transition from that to TypeError, and = definitely use TypeError in new functionality. Bob= --Apple-Mail=_1E5B048B-D3EA-46DE-95D1-9C521371031B--