Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:100377 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 94710 invoked from network); 5 Sep 2017 07:32:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Sep 2017 07:32:56 -0000 Authentication-Results: pb1.pair.com smtp.mail=arvids.godjuks@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=arvids.godjuks@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.176 as permitted sender) X-PHP-List-Original-Sender: arvids.godjuks@gmail.com X-Host-Fingerprint: 209.85.220.176 mail-qk0-f176.google.com Received: from [209.85.220.176] ([209.85.220.176:34678] helo=mail-qk0-f176.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 54/54-04538-6235EA95 for ; Tue, 05 Sep 2017 03:32:55 -0400 Received: by mail-qk0-f176.google.com with SMTP id b23so9034509qkg.1 for ; Tue, 05 Sep 2017 00:32:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=ZomayrPIheRwf141EpyTkP9BGYbYh6iot5ihNbxrdJI=; b=NGAqCjfXY0K/T/reC2F9Z2qZ5hn3Zu3e0zhOvWnsHx65A80gyxNtRwf7J4IPxFrvp3 hi/npPXhL6JoEYwppuLomwCFgseOxnOZNIo5VhefW2PmxCtbADkiu7LcR1wjZkbAs2n+ tXfYUSc8NPQby1U9w2kPdJ5a9arcQgrCOUKRqRLiOAOX8FGGw9kiv0q53Kj/CN6GZCXs 7AYcsJVGgt3fuSJPZVBnkc8E1uPCDepweejCtsQxsKemON1AyijIfx/5Qp8wGn8wCMKX 3yuqjlOpWvNBFrw0tmm8ttii90C0LfUJKOBrFOeL3WhrBXnGkZGC66k4e8OBIxeDQOXW IFDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=ZomayrPIheRwf141EpyTkP9BGYbYh6iot5ihNbxrdJI=; b=tOg32YInYQ+o5VzM7ENz2okfayJ8mbS8rsLxBSMNJuQidY0t4Oz3UUKccX1UbAJ9Dd mf/9hoScMP4N5vzvl65MQsmnnUKL3YUFVlU4xsght/mGMXRwkVC7P34kXxkwgOp8cEeJ EEWB+aKt0maM4wk2NCd/jnJyh/+hR+YL+KU0q9idrLzoGF5uifqVK3TRDc3SLUDUT8aH /UCIPnGRwXUzbAkfhwAkPlkg29Zrg+gccwDjb1XhS6Mr7jzBdmwo4TcPCc9+IW2xDgx2 oaQsNKXDb63EdVlWJvVyASwO6HtcLy0lm40bIFzScG0+GHLJRA34m0I4nqdSkHdnVhzX n+MA== X-Gm-Message-State: AHPjjUh7g6/JOic1xEPohdMdrcR0UUeEc18sWirzaU9PIZmC5eDuCl/d mFLXZGe8rcO0MqeP/duMYm4w24CFnQ== X-Google-Smtp-Source: ADKCNb4SzxRfKar7h0HGnqjq5AglqbWnamGX2L+uJPYifD248qoX4bakO3Av72ZLiDHJsPiEW5PhsNqVPozHUG+31Pc= X-Received: by 10.233.221.3 with SMTP id r3mr3776654qkf.219.1504596771069; Tue, 05 Sep 2017 00:32:51 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.156.142 with HTTP; Tue, 5 Sep 2017 00:32:20 -0700 (PDT) In-Reply-To: References: Date: Tue, 5 Sep 2017 10:32:20 +0300 Message-ID: To: Sammy Kaye Powers Cc: PHP Internals Content-Type: multipart/alternative; boundary="f40304360c6811e38905586c3c75" Subject: Re: [PHP-DEV] [VOTE] UUID From: arvids.godjuks@gmail.com (Arvids Godjuks) --f40304360c6811e38905586c3c75 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 2017-09-04 19:03 GMT+03:00 Sammy Kaye Powers : > I really, really wanted to vote yes for this as I've wanted simple > UUID creation in core for a long time, but I can't agree this is the > correct implementation. Something like "uuid_v4_create()" seems to > make a lot more pragmatic sense and use ramsey/uuid for anything more > complicated. > > Sorry Richard, but I'm -1 on this one. But thanks for putting in all > the effort! I think another attempt with a simpler API & > implementation could be a winner! :) > > Thanks, > Sammy Kaye Powers > sammyk.me > > Hello everyone, it's been a while. As a userland dev, I completely agree with the RFC. The implementation details may be worked out a bit, but having UUID's as an object is a good thing and having a proper reference implementation that follows the standard to the letter is very valuable. UUID's are a universal concept, used in so many systems across the IT world, that I personally consider them to be a thing on their own. I do believe they deserve to be an object - if you expect a UUID, you want a very specific thing, not just a generic string and then validate it every time with some form of "is_valid_uuid($uuid)". Even if PHP will have a reference implementation, 99.9% chance I will use a wrapper library that will give me an object I can work with. And not only for my personal preference, but also so other people working on the same project do not mess with a UUID string. Type hinting checks are also quite important, that I learned first hand lately as I went PHP 7.1 strict_types=3D1 on my whole codebase - I have been passi= ng crap to in places that I would have never known, and probably would never result in an issue due to the nature of the error. I do, however, think that maybe doing a userland PHP implementation of the proposed module, so people can play and use it and then converting it to a PHP C module closer to 7.3 would be a better way. That way the API and features can be stabilized. --=20 Arv=C4=ABds Godjuks +371 26 851 664 arvids.godjuks@gmail.com Skype: psihius Telegram: @psihius https://t.me/psihius --f40304360c6811e38905586c3c75--