Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:73220 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 15151 invoked from network); 17 Mar 2014 14:11:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Mar 2014 14:11:50 -0000 Authentication-Results: pb1.pair.com smtp.mail=are.you.winning@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=are.you.winning@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.49 as permitted sender) X-PHP-List-Original-Sender: are.you.winning@gmail.com X-Host-Fingerprint: 209.85.216.49 mail-qa0-f49.google.com Received: from [209.85.216.49] ([209.85.216.49:60760] helo=mail-qa0-f49.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C4/26-17561-4A207235 for ; Mon, 17 Mar 2014 09:11:49 -0500 Received: by mail-qa0-f49.google.com with SMTP id j7so5253164qaq.22 for ; Mon, 17 Mar 2014 07:11:45 -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:date:message-id:subject :from:to:cc:content-type; bh=jQES6jhke94/AVEY/xkiFzPHFptmRogoeHHPPsAKSRM=; b=jOeuLBfFwVtKFZWji/M9RQsrV+2YfF/mG9X3sj17TGQqkbhopQTauDEBxTXYIYKuzj LugA1/SA7NQbmzCOWyjshZYG0S9CwMVI+BGQ/hWQFUcFEO1Ivr0wlNgcaL15hkH6M3zE zyzmJ65HK1l+Z+pdI54mVEWjw0qL5grHo6KfBBHrTBIb1qU03+uR9Daoh0m/VwAY12t2 7wQd8UjuePrmm3KS1+qiCfTgMVi3AXz5AZ9e0qlewz8srbOyB/01mToN/FPy1s3RyoIo hPv48dZwlx+l5I2ExQd+8shvm+X6nty4LzXMxySyERsEWBy0xs28ncczx7wHzFMbZzlh ubTA== MIME-Version: 1.0 X-Received: by 10.224.46.73 with SMTP id i9mr28362349qaf.65.1395065505642; Mon, 17 Mar 2014 07:11:45 -0700 (PDT) Sender: are.you.winning@gmail.com Received: by 10.229.148.194 with HTTP; Mon, 17 Mar 2014 07:11:45 -0700 (PDT) In-Reply-To: References: Date: Mon, 17 Mar 2014 14:11:45 +0000 X-Google-Sender-Auth: aBeGE6FnZUNGUb4Xzw6JlybyPS8 Message-ID: To: Andrey Andreev Cc: Leigh , "internals@lists.php.net" Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] Session: deprecating create_sid() method and add createSid()? From: daverandom@php.net (Chris Wright) On 17 March 2014 13:57, Andrey Andreev wrote: > HI, > > On Mon, Mar 17, 2014 at 3:22 PM, Leigh wrote: >> >> On 17 March 2014 10:23, Andrey Andreev wrote: >>> >>> Hi Yasuo, >>> >>> There's no SessionHandler::create_sid() or >>> SessionHandlerInterface::create_sid() documented (see your own link to >>> the docs) ... since when is this available? >>> >>> I'm not sure if exposing it is a good idea anyway, why is it necessary? >>> >> >> >> It was added in 5.5.1 - The PR was made 2 years ago by myself: >> https://github.com/php/php-src/pull/109 >> >> It's not documented because I'm lazy, (it's one of those TODO items that has >> become permanent), but I personally use it. The underlying method on the >> session interface has been there for a long time (10 years might even be >> accurate), but for some unknown reason, it was not exposed to userland when >> all of the other methods were. >> >> It is necessary for custom session handler classes because without it calls >> to session_regenerate_id() do not inform the session handler about the >> change of session id. The presence of this method allows you to capture >> session id regeneration, and update files, databases, etc. as necessary, and >> also allows you to fully customise the actual session id token that is used. >> Custom prefixes, body content, encoding charset, etc. > > I see ... that (and the PR discussion) answers all of my questions, > thanks. Btw, I could take the docs out of your TODO list, as long as I > can figure out of all repos, which one do I need to fork so I can push > documentation additions ... the web interface sucks. Docs are still in SVN, by far the easiest way to do it is via the OE (http://edit.php.net/). If you want to check the English docs out via SVN, use https://svn.php.net/repository/phpdoc/modules/doc-en > With that said, +1 for changing it to SessionHandler::createSid(). > > Cheers, > Andrey. > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >