Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:110070 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 40630 invoked from network); 7 May 2020 15:58:18 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 7 May 2020 15:58:18 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 156E01804B4 for ; Thu, 7 May 2020 07:33:45 -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=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE 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-vs1-f47.google.com (mail-vs1-f47.google.com [209.85.217.47]) (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 07:33:44 -0700 (PDT) Received: by mail-vs1-f47.google.com with SMTP id g2so3497784vsb.4 for ; Thu, 07 May 2020 07:33:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=basereality-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=X4NzEBKBurAGdUSit4LzS3f8IXwLg+fpth0cCpvJnO8=; b=NzsD/eyCRKKUmC9QKNpMyI7XSqNU/HoWlPaLmKDcRlCnDLIfG1e4idSMolW9uQZr+r oS5x02Cf7byG6xMgJK6Io9DAvY4Rkp/yhMdahA3BHGtDwTriIDEpxC1+weafEbvWDoF2 gSgBv0i0n0z9mynHXLTjVpvK5rGfgfqjmla9LsUXFx6hv9KScAumOfezmb8izonNDD9+ PThxlmVJ//wMPEIVbpNXGFkS594YXsHElsmzJ8g8fM35GKyA/aQ/OzOjO0QvllohMPv2 d93uhjLx9MIGXKjqogFvtO9K6GtxpKTWcIiCEm3+krnjGV3EwhFKpzu+E3ySdaTNDXo/ 9twQ== 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:cc; bh=X4NzEBKBurAGdUSit4LzS3f8IXwLg+fpth0cCpvJnO8=; b=R8hGaWQmLL507XBzJuJCE2wQ2kW2v0ihSiTGPO/7hXGu6d48PKNtLd7gQoP/19dVuw ezViJWbGhzUqFuXr03VwHRbe7gjW7IKZ24PxOn9tEcd3kiZ/9zuzVnHlnPh3DeiZhCDC dVHGljkSEaiczqpYZ02fHLfuAAs/3sFnBVIb13EI0hdVPMg5j+fT8fq6aRaBn9EaqF3b phKhsdjHDXg3cj2oPehcdWtfFcl1bdA1EZiTfbgqnfY5GZfLTRwIK2Uhw8UrHZMLFEC7 LUmED5vZjba62hq8I8UFlyVfGn289bmiRSVwA/ynzTdw9XfA5VPdXN2tAFuruPC6/7XO Gtzw== X-Gm-Message-State: AGi0PubzsMonKg4UoM2kczPWilOn1eu5vzo5BqU9X+tPfsYyXEmnQikM BvPX2ausY+Gh4ESaYjBFona/DqCV85Lp5bdxCqXX1Q== X-Google-Smtp-Source: APiQypJhZxI2+zwi+4lnR/HHT0f3kSnAbovg6IuFkM73OttOLmKZ5xs43WtQN1dGlL/4P491HNFX0XUMM5EoBvOjQWY= X-Received: by 2002:a67:43c7:: with SMTP id q190mr11449074vsa.183.1588862020445; Thu, 07 May 2020 07:33:40 -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 15:33:29 +0100 Message-ID: To: Rowan Tommins Cc: PHP internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] Deprecating uniqid() From: Danack@basereality.com (Dan Ackroyd) On Thu, 7 May 2020 at 10:13, Rowan Tommins wrote: > > Unless we're actively trying to shrink the functionality of PHP's core, I think we should. There are things that were added to core rather than done in userland because: * distributing libraries in userland used to be a lot harder than it is now. * Some stuff needed to be in core to give adequate performance. As userland PHP has had it's relative performance increased, and also computers have gotten a little faster since the project began*, that need has been greatly reduced. So although the choice to provide some functionality in core was the correct choice at the time, it would not be a correct choice to do now. The reason to try to reduce the amount of core code is that maintaining core code is much more difficult than maintaining userland libraries. There are swathes of PHP core that are scary to fix bugs in, let alone think about adding new features or refactoring their API. Although each removal would need to be justified individually, I think as a general aim 'more userland, less core' is good. cheers Dan Ack * https://github.com/php/php-src/blob/cdade2e35da528608e777d2f9766253726edb36c/ext/opcache/zend_accelerator_hash.c#L27