Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:116240 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 60541 invoked from network); 7 Oct 2021 12:15:26 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 7 Oct 2021 12:15:26 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 2554F18055E for ; Thu, 7 Oct 2021 06:00:23 -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=-0.2 required=5.0 tests=BAYES_40,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-ed1-f46.google.com (mail-ed1-f46.google.com [209.85.208.46]) (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 Oct 2021 06:00:22 -0700 (PDT) Received: by mail-ed1-f46.google.com with SMTP id b8so22886248edk.2 for ; Thu, 07 Oct 2021 06:00:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=DxXQEjBJjGT1ftHPC9996MB6CxRnR9ytnydX34aqQGw=; b=fMIguRgmKgdbuJr6iTl9Jn6oWToHCguyHyvfIOuIVZicJjUue6gkmLGoRIXH/HP52t yH8ucCjMULG2McK9FO1iaU+Szsovn+urbBaIBd2IxNj3XYlu1dLymFvHd8YLJx4Y0AiF yGGosU6gnfFAb2oyfmfeCe26BA2WhwdLq+OPP4ybRKfSOMZ0XMSqwN8hAxg7bEE7esmd Tg2UFDzPSXmSWrn6XRkCbMcJ0IuH94/taRiE250QM5OC2PN7n6UiD6eyPS13QYx8FiWU JDxHPAvqy4Mw9mA5rt+zX0xApiJ1o7M4qLgGIzRPecoFoTqUiOIWQbthgQjMUIJemxfM 00cQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=DxXQEjBJjGT1ftHPC9996MB6CxRnR9ytnydX34aqQGw=; b=lyeFjRbK6dej/IcZbLnjpqbnwGbiq6VhEhBMgBvqgqrAQZvC55Mw1+Eq92YwMi0Xy6 7HKfakvTTgTV1Vk1P/7HFivo+vP4vKIwO3rAsEztwLgXQtWFAKBqyCsecvmaeFGe3wna l5awGlv6wB7AEwZ9v6OxQjtmln93nw+pV+uyTamx24+rjNecV/+bI2TSunbBPNaRAJaA cvG6sBBe45lj4+6WPm2r1k5/hnSbLdlk2xvYNcqDYw/fsoHPrx3rDu7puNGK7wVExCNr k0WYoC4PIkwket8PoZTdbdiXP8W4KxGB6OmEwi5AxRmtydZ/jUCjcZUjKZl4iBgOtmhc Ut+g== X-Gm-Message-State: AOAM532nHQu6mwwAbiEN6v8t3hlZsWtRKysgAbdKLCWQNCJgs7p4Kp0L FWu58zSiv4oMbJpFCR61gAUhr0byncHJF8KA7zMmvrKtrEs= X-Google-Smtp-Source: ABdhPJzWvT1B3yGryCHrlaR7p6Vlo4AcIJ7+graBb8dTgVVyg3YVm0a0otiYT6RPN7r9RNOR/XbceDEseyBip5r12c8= X-Received: by 2002:a17:906:720e:: with SMTP id m14mr5485242ejk.500.1633611618839; Thu, 07 Oct 2021 06:00:18 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Thu, 7 Oct 2021 22:00:07 +0900 Message-ID: To: Dan Ackroyd , PHP internals Content-Type: multipart/alternative; boundary="0000000000003deec805cdc2d837" Subject: Re: [PHP-DEV] [RFC] Random Extension 3.0 From: zeriyoshi@gmail.com (Go Kudo) --0000000000003deec805cdc2d837 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 2021=E5=B9=B49=E6=9C=8823=E6=97=A5(=E6=9C=A8) 2:05 Dan Ackroyd : > Go Kudo wrote: > > Dan Ackroyd wrote: > >> you can _simply_ include ext/random/random.h." sounds pretty > >> dismissive of causing possibly unneeded work for downstream projects. > > > > The point I was trying to make was that while BC Breaks do occur, they > are very easy to solve. > > > I've found it useful to think about "value =3D benefit minus cost". > > I was calling out that it seems to be that this is a change you want > to do for aesthetic reasons and are justifying it by trivialising the > work involved. i.e. it has a tiny benefit that only has a positive > value if the cost is also tiny. > > Although the change is simple: > > * Any code base that includes standard/php_rand.h won't compile, and > people will have to find out what changed. Even though the fix may be > easy to implement, each of those people will have to figure it out for > themselves. > > * quite a few people will have to learn (or relearn) how to use #if to > compare PHP version to include either standard/php_rand.h or > random/php_random.h if they want their code to work on more than 1 PHP > version. > > * it makes more work for downstream distributors of PHP, as their > patches (including security patches) will need to be moved around. > > If there's a good reason to move stuff around, then fine, but avoiding > creating extra work downstream is worth doing. And possibly is a hot > topic right now. > > You could probably avoid a lot of downstream work by leaving a stub > file at standard/php_rand.h that includes random/php_random.h. > > cheers > Dan > Ack > > btw, if you could please avoid top-posting, that would be appreciated: > https://github.com/php/php-src/blob/master/docs/mailinglist-rules.md > > "Do not top post. Place your answer underneath anyone you wish to > quote and remove any previous comment that is not relevant to your > post." > I apologize for not knowing the rules of ML. Is this correct? It is true that it is better to maintain compatibility that can be maintained. However, I think this should be sorted out sometime. Perhaps it will be in PHP 9.0. First of all, I would like to change these RFC and implementations. https://wiki.php.net/rfc/random_ext https://wiki.php.net/rfc/rng_extension Thank you. --0000000000003deec805cdc2d837--