Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:96206 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 11905 invoked from network); 4 Oct 2016 05:55:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Oct 2016 05:55:10 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.53 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.213.53 mail-vk0-f53.google.com Received: from [209.85.213.53] ([209.85.213.53:35556] helo=mail-vk0-f53.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EE/8B-06241-A3443F75 for ; Tue, 04 Oct 2016 01:55:07 -0400 Received: by mail-vk0-f53.google.com with SMTP id 192so180493754vkl.2 for ; Mon, 03 Oct 2016 22:55:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=5c1MIyiZwsAEbH9uVT47aly826rIpImroAQAMrewvPg=; b=LPJ9B1yitUKIHlpIwjx6dUzhir4LKOchsfWQ9do6hHCkp6PGrFaVMMINvGkZC/cSX1 WNOLwrXX3Z2pr67n3zHeq0cUVwhrLldyoLw5sSx6E5NYpRb77ZlgNaNeLtu3dMagP+5x 0OF5xZGX+iXhXR+uWobep63BVdO8NAKapdDdtJ1pzLp0UUvAi0cZ6nfP9eVMPnr2ye3Y AEBXv798StoKsbwRWV57bp51S/xyyL7uB6anjpZzoy4NCMUlLng6O5C1magGAnUyR5T1 Nhrm+5tk0a/wiCzh2FCs9GUNMjNo4Tm7WkyTSfzyd5L2jndJAle8pYlAvs8TLTjCtIIr oXoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=5c1MIyiZwsAEbH9uVT47aly826rIpImroAQAMrewvPg=; b=IatfCrHlLOIOTDxKG9tQz5/5hv1TpUqic29zMuC9wzrmiISFzS8c7d51+yaYqVjvaP GPT8op4jLUuBkoAabouPD9943JIB9MrDGgjyHoHrKKz2S+NAnhO7zpV8Uowra5kNfjXS RpceO54AardXREbw0qAtc7z9iu8tiEDRVh7hBv70HezB2DFNGZ2ODIaN6vsdjwNJTgcT XHBvzqgqljZYrXHYKrw6RZ2Cmpl8/5GROKaiSKZsS08abLR3lVJao/FnlaiSo66ZP5fd 8n/icfvyurU0wE5OqnTG5B0pIZ1EJSLHHUD9xDL/On+2eL826V+uq9pzKdfZauC8LwTs 1qeQ== X-Gm-Message-State: AA6/9RkdDS/0rxEtD066thALEgKsAcAS4Sn7DQvWko0uuNK922hAsx3PSf4Hqwjl21+NnAfFbhYzjbOw1qFJKA== X-Received: by 10.31.76.193 with SMTP id z184mr1106498vka.69.1475560503235; Mon, 03 Oct 2016 22:55:03 -0700 (PDT) MIME-Version: 1.0 Received: by 10.176.0.18 with HTTP; Mon, 3 Oct 2016 22:55:00 -0700 (PDT) Received: by 10.176.0.18 with HTTP; Mon, 3 Oct 2016 22:55:00 -0700 (PDT) In-Reply-To: References: Date: Tue, 4 Oct 2016 12:55:00 +0700 Message-ID: To: Yasuo Ohgaki Cc: Davey Shafik , PHP internals Content-Type: multipart/alternative; boundary=001a114dcc54a3da6b053e03b3ef Subject: Re: [PHP-DEV] [RFC][DISCUSSION] Improve uniqid() uniqueness From: pierre.php@gmail.com (Pierre Joye) --001a114dcc54a3da6b053e03b3ef Content-Type: text/plain; charset=UTF-8 On Oct 4, 2016 8:55 AM, "Yasuo Ohgaki" wrote: > > Hi Davey, > > On Tue, Oct 4, 2016 at 4:59 AM, Davey Shafik wrote: > > On Sunday, October 2, 2016, Yasuo Ohgaki wrote: > >> > >> Hi all, > >> > >> On Mon, Oct 3, 2016 at 3:56 AM, Yasuo Ohgaki wrote: > >> > Besides improving "more entropy" the default and data, I prepared > >> > fully compatible patch to simplify discussion. > >> > > >> > https://gist.github.com/anonymous/fb615df325d559fa806a265031a06ede > >> > > >> > I would like to apply this patch from PHP 7.0 branch, then discuss what > >> > the default should be. > >> > > >> > Any comments? > >> > If there is no objections, I'll apply this few days later. > > > > > > Yasuo, > > > > This change should go through the standard RFC process and should be > > targeted at 7.2+ (master) *only*. > > > > Please check with the RMs before merging functionality changes into release > > branches. All functionality changes need consent and consensus. Bug fixes > > (that don't change functionality or break BC) do not. > > > > I understand your desire to fix these things, especially the security > > related type stuff, but as a group we have a responsibility to create > > predictable, sane, and safe (as in, don't break stuff) migration paths when > > we can. A history of doing this is WHY php is still going strong after so > > long. > > > > Thanks, > > I agree fully. > > The only case this patch could break code is caused by broken PRNG in > the system which is fatal anyway. i.e. If PRNG is broken, session > module/randon_*() cannot produce secure session ID/values. We don't > have to worry about changed behavior/BC. > > The main motivation is to simply this RFC discussion. I'll commit this > patch master only. Did you solve any of the issues we discussed here? Some of them are BC breaks. Thanks Pierre --001a114dcc54a3da6b053e03b3ef--