Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:86938 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78133 invoked from network); 29 Jun 2015 13:19:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Jun 2015 13:19:55 -0000 Authentication-Results: pb1.pair.com smtp.mail=anatol.php@belski.net; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=anatol.php@belski.net; sender-id=unknown Received-SPF: error (pb1.pair.com: domain belski.net from 85.214.73.107 cause and error) X-PHP-List-Original-Sender: anatol.php@belski.net X-Host-Fingerprint: 85.214.73.107 klapt.com Received: from [85.214.73.107] ([85.214.73.107:50517] helo=h1123647.serverkompetenz.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 67/20-07075-8F541955 for ; Mon, 29 Jun 2015 09:19:52 -0400 Received: by h1123647.serverkompetenz.net (Postfix, from userid 1006) id 5FE9123D629F; Mon, 29 Jun 2015 15:19:49 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on h1123647.serverkompetenz.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.5 tests=ALL_TRUSTED,BAYES_00, URIBL_BLOCKED autolearn=unavailable version=3.3.2 Received: from w530phpdev (pD9FE88C1.dip0.t-ipconnect.de [217.254.136.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by h1123647.serverkompetenz.net (Postfix) with ESMTPSA id 7CDB523D615B; Mon, 29 Jun 2015 15:19:46 +0200 (CEST) To: "'Yasuo Ohgaki'" , "'Hannes Magnusson'" Cc: "'Kalle Sommer Nielsen'" , "'Internals'" , "'Anatoliy Belsky'" , "'Dmitry Stogov'" , "'Nikita Popov'" , "'Ferenc Kovacs'" , "'Xinchen Hui'" References: In-Reply-To: Date: Mon, 29 Jun 2015 15:19:44 +0200 Message-ID: <02be01d0b26e$469d3940$d3d7abc0$@belski.net> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 15.0 Thread-Index: AQGUTKtuTUJWqS2AWW/gdyAGZa965wI5Np6tAaTLQpcB25I+zgLA79f6Ae/OqiOd6OzXkA== Content-Language: en-us Subject: RE: [PHP-DEV] Headsup: PHP7 feature freeze From: anatol.php@belski.net ("Anatol Belski") Hi Yasuo, > -----Original Message----- > From: yohgaki@gmail.com [mailto:yohgaki@gmail.com] On Behalf Of Yasuo > Ohgaki > Sent: Friday, June 26, 2015 1:58 PM > To: Hannes Magnusson > Cc: Kalle Sommer Nielsen; Internals; Anatoliy Belsky; Dmitry Stogov; = Nikita > Popov; Ferenc Kovacs; Xinchen Hui > Subject: Re: [PHP-DEV] Headsup: PHP7 feature freeze >=20 > Hi all, >=20 > On Fri, Jun 26, 2015 at 12:56 PM, Yasuo Ohgaki = wrote: >=20 > > Hi Hannes, > > > > On Fri, Jun 26, 2015 at 12:51 PM, Yasuo Ohgaki = wrote: > > > >> On Fri, Jun 26, 2015 at 10:48 AM, Hannes Magnusson < > >> hannes.magnusson@gmail.com> wrote: > >> > >>> Why do you think its undocumented? > >>> http://php.net/manual/en/sessionhandler.create-sid.php > >>> > >> > >> Rename discussion was there. And I explicitly discussed "it's > >> undocumented and it violates CODING_STANDARDS", but it was added > >> recently (after the discussion I suppose). > >> > >> [yohgaki@dev session]$ svn log -r 334814 > >> = --------------------------------------------------------------------- > >> --- > >> r334814 | aharvey | 2014-09-09 04:49:26 +0900 = (2014=E5=B9=B409=E6=9C=8809=E6=97=A5 (=E7=81=AB)) | 2 > >> lines > >> > >> Add documentation for SessionHandler::create_sid(). > >> > >> = --------------------------------------------------------------------- > >> --- > >> > >> 334814 aharvey SessionHandler is a = special > >> class that can be used > >> 334814 aharvey to expose the current internal PHP session = save > >> handler by inheritance. > >> 334814 aharvey There are seven methods which wrap the seven > >> internal session save handler > >> 334814 aharvey callbacks (open, > >> close, > >> 334814 aharvey read, > >> write, > >> 334814 aharvey destroy, > >> gc and > >> 334814 aharvey create_sid). By = default, > >> this class will wrap > >> 334814 aharvey whatever internal save handler is set as = defined by > >> the > >> 334814 aharvey >> linkend=3D"ini.session.save-handler">session.save_handler > >> 334814 aharvey configuration directive which is usually > >> files by > >> 334814 aharvey default. Other internal session save = handlers are > >> provided by PHP > >> 334814 aharvey extensions such as SQLite (as > >> sqlite), Memcache (as > >> 334814 aharvey memcache), and = Memcached > (as > >> 334814 aharvey memcached). > >> > >> I think this should be reverted. > >> > > > > Or it may stay there. > > It's just a matter of having a copy of create_sid(). > > I'll add documentation. > > >=20 > I forgot that session_create_id() is needed createSid() method to be = more > useful. >=20 > The code for session_create_id() is in the source, but it isn't = enabled. > I wouldn't like to have different naming session_create_id() and = createSid(). >=20 > So I would like to have > - session_create_id() function > - createId() function > because there is > - session_id() > since PHP4. >=20 > I don't think session internal names do not have to be changed. > i.e. Macros, etc. > Any comments? >=20 Changing internal or user space API is kind of too late, IMHO. = Especially the user space APIs that are documented. But also the = internals, as a lot of extensions are already ported. Also because = sessions are a core functionality where changes should be supported but = a good migration path. Please target later 7.x versions with this = change. But probably would make sense to create an RFC and start the = discussion like already... yesterday, so the topic is good discussed and = accepted for the next.=20 Regards Anatol