Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:95071 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 13501 invoked from network); 12 Aug 2016 09:23:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Aug 2016 09:23:45 -0000 Authentication-Results: pb1.pair.com header.from=yohgaki@ohgaki.net; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=yohgaki@ohgaki.net; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ohgaki.net designates 180.42.98.130 as permitted sender) X-PHP-List-Original-Sender: yohgaki@ohgaki.net X-Host-Fingerprint: 180.42.98.130 ns1.es-i.jp Received: from [180.42.98.130] ([180.42.98.130:54162] helo=es-i.jp) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 66/E8-56950-E959DA75 for ; Fri, 12 Aug 2016 05:23:44 -0400 Received: (qmail 93355 invoked by uid 89); 12 Aug 2016 09:23:38 -0000 Received: from unknown (HELO mail-qt0-f180.google.com) (yohgaki@ohgaki.net@209.85.216.180) by 0 with ESMTPA; 12 Aug 2016 09:23:38 -0000 Received: by mail-qt0-f180.google.com with SMTP id w38so9914131qtb.0 for ; Fri, 12 Aug 2016 02:23:38 -0700 (PDT) X-Gm-Message-State: AEkoout2FWmaLwVUmv25343v/rRrP3q4JT2eMsGCRl1P3KDk2GuOUXJVOdgvUuovvRS+ibbZBi+qJUIIqME8OA== X-Received: by 10.200.33.183 with SMTP id 52mr16221922qty.128.1470993811730; Fri, 12 Aug 2016 02:23:31 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.85.242 with HTTP; Fri, 12 Aug 2016 02:22:51 -0700 (PDT) In-Reply-To: <9666aa9c-810c-867d-62ba-6625ca4daa35@lsces.co.uk> References: <5b7b5d2c-e865-9ec9-f549-3ab693af39e6@lsces.co.uk> <9666aa9c-810c-867d-62ba-6625ca4daa35@lsces.co.uk> Date: Fri, 12 Aug 2016 18:22:51 +0900 X-Gmail-Original-Message-ID: Message-ID: To: Lester Caine Cc: "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC][VOTE] Add session_create_id() function From: yohgaki@ohgaki.net (Yasuo Ohgaki) Hi Lester, On Fri, Aug 12, 2016 at 6:12 PM, Lester Caine wrote: > On 12/08/16 09:23, Yasuo Ohgaki wrote: >> I don't think it's framework job to do. > > This was a little 'tongue in cheek' ... my main thought was simply that > you need a variable 'session_id' and other processes may benefit from a > similarly constrained variable, so an intelligent variable could be > envisaged that has the code for creating that value. In any case if the > session code creates the variable, you want to ensure that nothing else > modifies it, so $session_id variable should be read_only and blocked > from accidentally escaping it, so even though it is generated within the > session code it's result needs to follow some rules. I see. I think it's good to have intelligent scalar if costs/overheads are little. Anyway, thank you for the comment. There may be people that thinks session_create_id() should be a part of framework or user code. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net