Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:95091 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 45836 invoked from network); 12 Aug 2016 11:13:19 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Aug 2016 11:13:19 -0000 Authentication-Results: pb1.pair.com smtp.mail=lester@lsces.co.uk; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=lester@lsces.co.uk; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lsces.co.uk from 217.147.176.230 cause and error) X-PHP-List-Original-Sender: lester@lsces.co.uk X-Host-Fingerprint: 217.147.176.230 mail4-3.serversure.net Linux 2.6 Received: from [217.147.176.230] ([217.147.176.230:60501] helo=mail4.serversure.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A2/00-56950-D4FADA75 for ; Fri, 12 Aug 2016 07:13:19 -0400 Received: (qmail 9708 invoked by uid 89); 12 Aug 2016 11:13:15 -0000 Received: by simscan 1.3.1 ppid: 9700, pid: 9705, t: 0.0762s scanners: attach: 1.3.1 clamav: 0.96/m:52/d:10677 Received: from unknown (HELO ?10.0.0.7?) (lester@rainbowdigitalmedia.org.uk@81.138.11.136) by mail4.serversure.net with ESMTPA; 12 Aug 2016 11:13:15 -0000 To: internals@lists.php.net References: <5b7b5d2c-e865-9ec9-f549-3ab693af39e6@lsces.co.uk> <9666aa9c-810c-867d-62ba-6625ca4daa35@lsces.co.uk> Message-ID: <6c885012-7550-23e6-ee1b-a6a409eb602a@lsces.co.uk> Date: Fri, 12 Aug 2016 12:13:14 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC][VOTE] Add session_create_id() function From: lester@lsces.co.uk (Lester Caine) On 12/08/16 10:22, Yasuo Ohgaki wrote: > 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. We are probably on the same sheet. I'd prefer to restore the ADOdb extension that handled time sensitive code in C but that has not kept pace with all the other changes to extensions. Everything can be done in user space but just what would benefit from optimising in C. -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.uk