Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:94364 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 37264 invoked from network); 3 Jul 2016 00:03:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Jul 2016 00:03:58 -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.220.175 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.220.175 mail-qk0-f175.google.com Received: from [209.85.220.175] ([209.85.220.175:35562] helo=mail-qk0-f175.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 39/45-28154-C6658775 for ; Sat, 02 Jul 2016 20:03:57 -0400 Received: by mail-qk0-f175.google.com with SMTP id u124so16409001qkh.2 for ; Sat, 02 Jul 2016 17:03:56 -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; bh=Pxjcy1PgwHrdfrRlm3YZ+hOlOiaa5ez4QlgUvywxV1E=; b=kHXFazwT8Qfsk0DaxXPoWJjSEON/eTkUyHvM7ZlxZzs/u7r/pb5QjGn3xXP38xyW6q sQCs4AjkTbxZ4L41QaJaO6V009EosIWlQdPkU2jopeT5dY9bpwu9BL8UD4d7TnLHaoP8 A9JATC/uPXTlf9yVk2jUcTkgF46IwKaN349VpHoU+rUA6D3C2FhHXW3M52cZGHjHr+dq MjYGO+Ux/DBGfuAsee5Vq4xGHnEYP0JneSVtQB9rkhqXxLxI8E4/wT6ztGGj4nRvSdm3 s9DgfxCMDnbA5u6owjfD1ObRdXdDA1tBhC8E+PiVkhmqBPEAdRHx9KLR4pIRRKLdEXIy M/Cw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=Pxjcy1PgwHrdfrRlm3YZ+hOlOiaa5ez4QlgUvywxV1E=; b=ffELsBtGWfgxhNyoSmriKZ/QZ9+/mL7GCvqCXi0lH6MbHdptxO3D/64EZ93tqi0ay+ z9uyT+0eq5Pl818JHD0JjQhzNZspeUBEGoJyag32+P2y8k1DfcfDL0FYAzLlrefqXjbw O7/tdOf2w6xuxL83XksVegA+bgRsEKKMTcDBDg0i1HSDl8BTlogdjd9t6DWrXIMQb/zx c6D7h6ybTDPZoZL+1peZ2Db+HfeenR7c4qE4PKm8PYJPibo9QM4H9F1Yd2jzsbIaNMdM WAO8wMenndAQegH+n3FyLtT5S//E3V59ZMqxIfajO87lpewV5d+ALbj7F5UKVF7QEJEf 3T7A== X-Gm-Message-State: ALyK8tJSN0F6iQ8mb/tskSPczSsDF3J3CGEo2VynB7Bq+6o7IRQ2KebHlVOIJmjo3ATEmlb/2W+KNK6V27rfLw== X-Received: by 10.55.188.198 with SMTP id m189mr6890788qkf.205.1467504233994; Sat, 02 Jul 2016 17:03:53 -0700 (PDT) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.140.17.33 with HTTP; Sat, 2 Jul 2016 17:03:14 -0700 (PDT) In-Reply-To: References: Date: Sun, 3 Jul 2016 09:03:14 +0900 X-Google-Sender-Auth: PVbSWl3qlH-dITph_nSTcGQU6uY Message-ID: To: Leigh Cc: "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC][VOTE] Session ID without hashing From: yohgaki@ohgaki.net (Yasuo Ohgaki) Hi Leigh, On Sat, Jul 2, 2016 at 5:39 PM, Leigh wrote: > So I have a few issues that span the RFC and the implementation. > > Your RFC states > >> hardcoded default and php.ini-* default values are the same. > > This is not the case. > > Originally the session id length and character set were controlled by > session.hash_function and/or session.hash_bits_per_character. These > customisations to configuration will be lost when the user upgrades. You > have provided a mechanism to control length and charset, but it will require > new changes to the default settings. This needs to be noted as a breaking > change. > > Your default for session.sid_length is 48. Up to 7.1 the session id length > is 32. Your default for session.sid_bits_per_character is 5, up to 7.1 the > session id uses 4 bits per character. This is a breaking change. (Imagine > custom session handlers that validate session id character sets, or database > schemas that will truncate after 32 characters) I'll update relevant part. > Your patch updates session.use_strict_mode from 0 to 1. I actually don't > know what this changes, but it's an undocumented change. This is unintentional. I'll remove this part. > Overall your patch looks very similar to the one I was working on earlier in > the year, although you appear to have deleted a bunch of tests that you > could have just updated. You should probably put those back, and update > them. It removes hashing, so irrelevant tests are simply removed. Thank you for point them out. I'll fix them now. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net