Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:110065 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 85487 invoked from network); 7 May 2020 10:37:42 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 7 May 2020 10:37:42 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 46C151801FD for ; Thu, 7 May 2020 02:13:06 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-il1-f170.google.com (mail-il1-f170.google.com [209.85.166.170]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Thu, 7 May 2020 02:13:05 -0700 (PDT) Received: by mail-il1-f170.google.com with SMTP id t12so990827ile.9 for ; Thu, 07 May 2020 02:13:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=hBayEkFX+3vzdrZL5ZTiFK6Or/JKTby4sepWB6kU0u4=; b=peTYCrKl20E5IqM0P6NCfMXocap8QSNUYLnoGT5HmFa5qW4Q6ScMA8Q+Q5S2+VjpRA POzdz7fN/hIPiHoLpBa/J5YkXik9+keKm92nmyQAJd8ITXAk7/CqYpaDXu+J0PGH5Aw5 52JK/bC/uVoVTD517vBaqae9FoZccXvg4tiSgleOScyEi72vJC5bZTv0b7N/ltpEibNU sdHvCAq7eHR8NlmLoYnB2yDJswQm/otLd+lt+TvkB7eE4rhv8phXUaDLop6gH/8jeQNH TCuTzOoErkkFKPH9lrUzlhNWxm8HSjVpoi+pnsl+ByBdH42ZlutvSkb9oH2fX9YrzWuZ dZUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=hBayEkFX+3vzdrZL5ZTiFK6Or/JKTby4sepWB6kU0u4=; b=VhzzlZYgZJxY7elVb92wSk9EiwXNBKpElYFK0N01gL29W7LfnSvwQ6pjrAxv9Y14ZO FkcSDi2uq++BG4DdTt7KJmqYmMOnk26tjWEz+zd8Gy8PwF2/FOUfPu3BEC54o161JHlC b9EVZEiAKpuY2KrUHhNeobyrgsco3x6gr1RK7brDKQ4lPYTXi24As18QFBh6lfCUInsO CODXRxtaag+WLF/5duSTyLph2TzQRpl9qbewP1soM7O/qptfGg6iYClWXG4LRyBs3nwY X3Xjx6LbT67fPMZ0nLPzLyzhGUYvvYnCUOLEMBsoSO8bswOSgcmmvZsl2n++39fUT3ou kffA== X-Gm-Message-State: AGi0PuYsigJpvLevcVDpiAr61JvsMN68kbtpWimIK1+BGExFbr8BstwV RHgulvJvout+GqD+NXseCx8VeljUygAT+LzY6yNU7w== X-Google-Smtp-Source: APiQypJb+eISl4QIZw/u+VIEFvmwMZ3nuUeRBBW4g2KaVKflBW+cQxzKnm1sn3Bc5ItoC/vfbUBmv9U2uw5m+sg9PR8= X-Received: by 2002:a05:6e02:dcf:: with SMTP id l15mr13644021ilj.225.1588842784992; Thu, 07 May 2020 02:13:04 -0700 (PDT) MIME-Version: 1.0 References: <9e3b1604-8d0a-9db4-aab6-e5f2198252f4@allenjb.me.uk> <3a2924d2-31b9-fee5-5548-49c889eca2f4@heigl.org> In-Reply-To: Date: Thu, 7 May 2020 10:12:52 +0100 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary="000000000000cdb6c905a50b49a2" Subject: Re: [PHP-DEV] Deprecating uniqid() From: rowan.collins@gmail.com (Rowan Tommins) --000000000000cdb6c905a50b49a2 Content-Type: text/plain; charset="UTF-8" On Wed, 6 May 2020 at 13:40, Dan Ackroyd wrote: > This is a problem that would be better solved in userland rather than > trying to design and evolve inside core PHP. > I think that's a major philosophical question: should the core of a language provide only those most basic building blocks from which everything else can be built; or should it include a standard library of functions for the most common tasks? Obviously, the answer can have many shades of grey, but PHP doesn't generally take the "minimalist" approach. Unless we're actively trying to shrink the functionality of PHP's core, it feels weird to say "this function is deprecated; there is no official replacement, please write your own or find one on Packagist". Is there a specific reason *not* to write a replacement, or do you just consider it not a universal enough requirement to include in the standard library? Regards, -- Rowan Tommins [IMSoP] --000000000000cdb6c905a50b49a2--