Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:115947 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 29945 invoked from network); 4 Sep 2021 18:47:44 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 4 Sep 2021 18:47:44 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id B59151804C8 for ; Sat, 4 Sep 2021 12:24:28 -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.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,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-f43.google.com (mail-vs1-f43.google.com [209.85.217.43]) (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 ; Sat, 4 Sep 2021 12:24:27 -0700 (PDT) Received: by mail-vs1-f43.google.com with SMTP id a21so2202138vsp.12 for ; Sat, 04 Sep 2021 12:24:27 -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=VGrPdTzo04THBfdA146mRta2gC0il8qztUMF5MkIX68=; b=QQf5TM5MvE86kBhaHNlyHiUUfh6WEhWpRyGqjNrga7wU4gb9yaIUXzSzz8u+XR9ORN mB3+aG9X3/P9lUffd7GhKGRoEKiA9eX7XY0ppxXXgzw0Cke9b5mtT7qOfHXEFJOYMomh TVBKxjMAQIStFb0w+tFROPhJkkrcAOtoCD0kMG2xTtIi6q8I8eNLFbvBhDcxcHcL4Nza PREe/SgtAFT9iuk5Hr4xaN+TDpaVLyXOJVl/v015QZWu74QETiBwnGDawI98RSGEl7dH VLh4fhiEh6cpZs7XBt+6LheCz/rP8WSV4dzjpsWdTYY23DQKgtWz+GXNIY/L+JODzKlr FZ2w== 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=VGrPdTzo04THBfdA146mRta2gC0il8qztUMF5MkIX68=; b=jn2oUe5XQpfEdJcMNmoemeRuL+8vrBWRP0hhtRzaL4J6Caf0/6P9+PVpO8nBA6kiGa WpoFBYTY0BuGDbvvngiwp6bvfYSTnGDSFyly8qRKBWP6jjD1W0vNdSoGMtwdGIfpRz7P 2aFq8Krf31QwFQJXYiBPUq+JEzXj00w3lLWnswpaauFp16L8O7l3Djw3rCaGSsNguSe+ mUfoc1Tv6z6tP3VvGTcCIatY512tDDPQh0uiQyxSyLo/RI5ugDNUtyjLolnGcb0rlM+J p3u6zG20LCFWwiX/QLYzv5vViBWpj68ZTm/MMhIxKsd1IhcAhKozX3Ny9GQl4PRgIJ5z b0rw== X-Gm-Message-State: AOAM531/F62yEcsgcZFBQyOsLF//0dH6X3WPYZR6S5B2TarOSpqTrhQh bTdtcpCfI3k/vdrRN97eqHKMZLIG1ofSdR0sFA2gDA== X-Google-Smtp-Source: ABdhPJzs6k5AA7fQKLYEDCjN0FDOSeBx/SObSgUY8SH8tRprrprl/v+AZwInvS7dzjaD+sxawuEiDbMeZ/1L89x/yZI= X-Received: by 2002:a05:6102:1343:: with SMTP id j3mr2625391vsl.51.1630783464018; Sat, 04 Sep 2021 12:24:24 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Sat, 4 Sep 2021 20:24:12 +0100 Message-ID: To: Go Kudo Cc: PHP internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] [RFC] Random Extension 3.0 From: Danack@basereality.com (Dan Ackroyd) On Fri, 3 Sept 2021 at 18:41, Go Kudo wrote: > > Nikita wrote: >> this one also moves all of the existing RNG-related functionality >> from ext/standard to ext/random. > > There are several reasons for this. > > - The `random` extension name is already used by ext/standard and may > interfere with the build system. > - Due to the namespace rules for new extensions, it is inappropriate to > rename an extension. > - Due to history, the rand / mt_rand dependency is tricky and I thought it > was time to sort it out. > - I don't think it's a good idea to have multiple header files for a single > domain feature. Have you considered how much work that is going to incur on downstream projects? If there's a good reason for moving stuff around then it can be appropriate, but the RFC phrasing of: "At the same time, the following internal APIs will also be relocated. If you want to use them, you can _simply_ include ext/random/random.h." sounds pretty dismissive of causing possibly unneeded work for downstream projects. cheers Dan Ack