Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:95948 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 30006 invoked from network); 12 Sep 2016 14:49:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Sep 2016 14:49:16 -0000 Authentication-Results: pb1.pair.com header.from=ocramius@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ocramius@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.44 as permitted sender) X-PHP-List-Original-Sender: ocramius@gmail.com X-Host-Fingerprint: 74.125.82.44 mail-wm0-f44.google.com Received: from [74.125.82.44] ([74.125.82.44:35460] helo=mail-wm0-f44.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F5/7C-58405-960C6D75 for ; Mon, 12 Sep 2016 10:49:15 -0400 Received: by mail-wm0-f44.google.com with SMTP id a6so58095481wmc.0 for ; Mon, 12 Sep 2016 07:49:13 -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=4mCC1gGisI5zP96UoXDEW8XPi8ZsbbbOaaNPSsWMBFs=; b=fv2iakczCQ888ZPkjAwwGXD76kBzLFBoOUxsvk8aux04/8aH0hsr40d2pDjgiEr8J5 XdWnajAyiMGrQluG8SR8N2gEQQHRb1gFabR6Jg8hrfVRjG+lq2OUTSC8C0A4JRHaEF+7 4bNdYQXLwQrz+SvYRDsMYhQ9f9FaOFpzZYRGIeLTs1O8CFhfIVFtKAXoF7E2b8coIzvd iKvbkCOtAKnQqisLXw7KWtHhIwxjx/0FPA5RPOI4Bjj9r7IWD4WBbfQU55qwE6zUIx30 LbsPB2kt8MbFcX5CbT8OtWp4j7sYRwvawTrUz6Kl72CJ1SSSv4HcIco9c6+32Ycr/otR CGBg== 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=4mCC1gGisI5zP96UoXDEW8XPi8ZsbbbOaaNPSsWMBFs=; b=TF7/lLifL8ydYsH9niae2xRfQ3Jm3Ys6dPTb0gZR8kJr+shl4TPagCZ1Up+Y1s5CLY Ti4r1X+IL/QAmdctUe0s3S/duIKPiTasHqjaLfF5wGyWh/dtbAiOORksPnrlSehjav3d Cf4N2yd9uf9fyWBvMuONVJ9zBzb4ez3tbVVqdCFinJAOU9NbH4VFAguNi9sHLYPjATX3 trpKaDfZ8VyzpQnRxb3BGlJAbyCLwRTRF3LG831a2gs9VgRyeZ5pZklEvOhaAfQev7IY Cy8FHnxK1Uc38LL8x9YHV4zignFRcuu+ZanPiuhCAP3RFM9wQxqEpALnC/KyO+8PHZne oehg== X-Gm-Message-State: AE9vXwNNaKG6YMOytEDrmaeRmBvD+ymo6dIkfVQfmqpMuuLLjmkB0zZK908mp0nbvIUQmJyZpIOGHsHnVbDNMQ== X-Received: by 10.28.107.24 with SMTP id g24mr11448810wmc.12.1473691750863; Mon, 12 Sep 2016 07:49:10 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.19.229 with HTTP; Mon, 12 Sep 2016 07:48:50 -0700 (PDT) In-Reply-To: <87h99lch13.fsf@lil.giraffy.jp> References: <878tuxenl4.fsf@lil.giraffy.jp> <87twdlcs2j.fsf@lil.giraffy.jp> <87h99lch13.fsf@lil.giraffy.jp> Date: Mon, 12 Sep 2016 16:48:50 +0200 Message-ID: To: Kazuo Oishi Cc: Yasuo Ohgaki , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a1147ce1251a03b053c509967 Subject: Re: [PHP-DEV] [RFC][DISCUSSION] Improve uniqid() uniqueness From: ocramius@gmail.com (Marco Pivetta) --001a1147ce1251a03b053c509967 Content-Type: text/plain; charset=UTF-8 On Mon, Sep 12, 2016 at 4:46 PM, Kazuo Oishi wrote: > Hi, > > >> IMO, improving it (generate better semi-unique ID) is not important > >> enoungh to introduce unnecessary BC break. (Why returning string length > >> is changed?) > > > > It cannot not produce unique ID by default as name "uniqid()" implies. > > Reason is described in the RFC. Please read RFC because it's the > > official proposal. > > I had read it, of course. But I could not understand why you chose BC > break way. > > Now, I understand your intention to change default value of > "more_entropy" despite of BC break. You do want to change the default > behavior of uniqid. > > But I cannot agree. > > -- > Kazuo Oishi > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > Full ACK on what Kazuo said. I use `uniqid()` daily in my test suites, even new ones (not much else), and introducing the `.` everywhere will just cause issues. Changing string length may also break everything. Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ --001a1147ce1251a03b053c509967--