Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:73253 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 91721 invoked from network); 18 Mar 2014 00:24:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Mar 2014 00:24:54 -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.52 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.215.52 mail-la0-f52.google.com Received: from [209.85.215.52] ([209.85.215.52:33476] helo=mail-la0-f52.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FF/F5-17561-45297235 for ; Mon, 17 Mar 2014 19:24:52 -0500 Received: by mail-la0-f52.google.com with SMTP id ec20so4277585lab.11 for ; Mon, 17 Mar 2014 17:24:49 -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=9I/ZVeuLpiq22Gbye2bN3ElJ24Sm6UqDnO7hr5H5Ti4=; b=Z7czWwTZo0bvkiwmLjXwGRZkfgeDH7eqLoXIhTGsicmIi0C4CmY+7i1Ft+89jv9fFb vmx3gZdlJ15DpzvHGLQYga2LZIaBnVfuBppNp8LkWj96GjA0wfTwDMMnkCex99evg2b/ zRziNEkDR8gJ9dArwAmyX/SMKaZmLaR2uNPs27/03gZ0gNuynRZeIloPNwUgbEXm7fW6 f7LIs0T6r+pQQ73yfOp5bGeO9+g5YPdXF6KWoebsc5XBCKZH92T3jhOOWeSm+VwXEyER p951PZ26XWDo4Ubk823BNxaakXtRVZsmTPv0/IQsZ3FaxKiIvMBaqJGdjnDKySuR6GlK tR7A== X-Received: by 10.112.46.225 with SMTP id y1mr17917281lbm.12.1395102289740; Mon, 17 Mar 2014 17:24:49 -0700 (PDT) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.112.205.73 with HTTP; Mon, 17 Mar 2014 17:24:09 -0700 (PDT) In-Reply-To: <53277BE2.8020203@sugarcrm.com> References: <53277BE2.8020203@sugarcrm.com> Date: Tue, 18 Mar 2014 09:24:09 +0900 X-Google-Sender-Auth: 5T8uYw18ezbNTdHUOYiZQIcDzrI Message-ID: To: Stas Malyshev Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a1134947467c7b804f4d69046 Subject: Re: [PHP-DEV] Re: Session: deprecating create_sid() method and add createSid()? From: yohgaki@ohgaki.net (Yasuo Ohgaki) --001a1134947467c7b804f4d69046 Content-Type: text/plain; charset=UTF-8 Hi Stas, On Tue, Mar 18, 2014 at 7:49 AM, Stas Malyshev wrote: > > Since create_sid() method is added in 5.5.1 and it's not documented yet. > > I would like to propose renaming it to createSid() for both 5.5 and 5.6. > > Renaming is a BC break and it's there for 10 releases already, so it'd > be a no go. You can add an alias of createSid, but then you'd have to be > very careful so that overriding both create_sid and createSid would work > the same (including when parent:: is involved). If it's hard to do > cleanly then I'd rather prefer keeping create_sid. Since session module's object save handler support is legacy, session module can modify how methods are used/defined when user is not using interface. i.e. session module is not using 'interface' normal way. Procedural session_create_sid() API is there very long time, but object's create_sid() method was introduced since 5.5.1. I would not change procedural session_create_sid() name as it is proper name for it. If user uses undocumented interface (SessionIdInterface) they would have to implement both createSid() and create_sid(). Alternatively, we may introduce temporary interface for create_sid(). Or keep it undocumented and rename it in 5.6 only. Fortunately, current manual http://jp2.php.net/manual/en/function.session-set-save-handler.php is incomplete. It does not mention create_sid() and it's interface. It does not use interface for detailed version of example, too. I'll update the manual when everything is sorted out. For now, we should decide - Keep create_sid() method in 5.5 or not - Add createSid() method in 5.5 or not - For interface, we have many options. Add new interface for createSid(), simply adding createSid() to SessionIdInterface, etc. I think session_sid() should be renamed to sessionSid() for 5.6, but I don't care much about 5.5. I'll implement it in the way everyone satisfies. What is your opinion? Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --001a1134947467c7b804f4d69046--