Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:73293 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 50894 invoked from network); 19 Mar 2014 02:16:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Mar 2014 02:16:34 -0000 Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.51 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.215.51 mail-la0-f51.google.com Received: from [209.85.215.51] ([209.85.215.51:32895] helo=mail-la0-f51.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0F/0F-16983-10EF8235 for ; Tue, 18 Mar 2014 21:16:34 -0500 Received: by mail-la0-f51.google.com with SMTP id c6so5197214lan.10 for ; Tue, 18 Mar 2014 19:16:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=w+FyaJT5Iy7CPq0LRpkTMW7SXjL/lJtgvBc45JcvT7k=; b=zEuq/UDgGyh8DFzejfXJQbf8h4oTLnvsGGvuib/aA+TM1sJB4waMwe0VTcLUd2baH8 5CBV2dmb0lQCRqRE3+lf68rzmPPCaT+w3Cs1+dWnj5DsggJYFYx+a/qhB/HC4ZWXQ2VD F88+HlscMNFxqxO3dAf3BnTBQ95GHNu2PI++mdqR71dpap1COYXYRExo/YF+OUhXTgqr 4v6nMoGLBpajh3nx34hbjgHto3CsRvXxoa0U821zfsyW9aq7h7E6JzsOde5mXNpLIYWH Zd7zAtD/z/aVtPvaZ805JE6zKC9VWCPbg6U6nYRNeOLGeJMtyEMLeJQE+F+UfVhYbfTZ iEOw== X-Received: by 10.152.37.137 with SMTP id y9mr23378137laj.8.1395195390149; Tue, 18 Mar 2014 19:16:30 -0700 (PDT) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.112.205.73 with HTTP; Tue, 18 Mar 2014 19:15:50 -0700 (PDT) In-Reply-To: References: <53277BE2.8020203@sugarcrm.com> <5327F947.5020308@sugarcrm.com> Date: Wed, 19 Mar 2014 11:15:50 +0900 X-Google-Sender-Auth: z5-y6HAmqjs6kHfyygL9hVmfkEs Message-ID: To: Andrey Andreev Cc: Stas Malyshev , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=089e014943249f48c704f4ec3d13 Subject: Re: [PHP-DEV] Re: Session: deprecating create_sid() method and add createSid()? From: yohgaki@ohgaki.net (Yasuo Ohgaki) --089e014943249f48c704f4ec3d13 Content-Type: text/plain; charset=UTF-8 Hi Andrey, On Wed, Mar 19, 2014 at 10:55 AM, Andrey Andreev wrote: > Hi, > > On Wed, Mar 19, 2014 at 3:49 AM, Yasuo Ohgaki wrote: > > Hi Andrey, > > > > On Wed, Mar 19, 2014 at 10:26 AM, Andrey Andreev > wrote: > >> > >> On Wed, Mar 19, 2014 at 3:22 AM, Yasuo Ohgaki > wrote: > >> >> > SessionHandler does not use new > >> >> > SessionUpdateTimestampHandlerInterface, > >> >> > so > >> >> > >> >> Um ... what's the point of having this interface? Nothing uses it. > >> > > >> > > >> > You may use it like > >> > > >> > class MySessionHandler implements SessionHandlerInterface, > >> > SessionUpdateTimestampHandlerInterface > >> > > >> > I think the name is too long. > >> > Any suggestion? > >> > >> It is too long, and also useless. :) > >> You may, or you may not call it. If it's not enforced anywhere, nobody > >> needs it and nobody is going to use it. I suggest removing it, it's > >> pointless. > > > > > > It's intended for user use. > > This is the normal use of interface. > > Eh ... I know how an interface is used, but an interface is supposed > to enforce a certain set of methods to be implemented. > If you're not enforcing usage of the interface itself (which we can't > do, because of BC), it becomes optional and therefore enfoces nothing. > I can enforce users to implement all of SessionUpdateTimestampHandlerInterface when it is used. I cannot enforce users to implement SessionIdInterface for histrical/compatibility reason, though. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --089e014943249f48c704f4ec3d13--