Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:116139 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 72919 invoked from network); 22 Sep 2021 16:24:02 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 22 Sep 2021 16:24:02 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 21475180002 for ; Wed, 22 Sep 2021 10:05:17 -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.0 required=5.0 tests=BAYES_20,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-vk1-f181.google.com (mail-vk1-f181.google.com [209.85.221.181]) (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 ; Wed, 22 Sep 2021 10:05:16 -0700 (PDT) Received: by mail-vk1-f181.google.com with SMTP id 3so1445055vkg.7 for ; Wed, 22 Sep 2021 10:05:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=basereality-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=t1N3O6ezIN7bKH7/tq6awYFm6zUm5NvE5qIpeeh6r8w=; b=rsaw8LmDgS7KU/VblB1SUEUafaBN516ZvPcikWAOhP64qFh5Hisvf4R7QbuLV+0K5M J/a0M++nHPh0oql/H9I9lCi6zJlADj69DlI+DiV61Oh3DS4/UtUDeiBq2VbIT3QFAlns X2aaaBcxsq8MoHoMGC17aoowfEFvtj+GE9pqQYpazlo4t5zyp0qRMgjLsqSWGx2b5vWX 2Qckjnng+01umiorD/edQZ565nsiJJ5nIrssdq/GRngN1yhxNB3a3qGIvkgfjBvfNKik EaWESGnEgfwCvV/ZLxiVU11IokzFkhYm0dLjpd+YOlpLGDILlDx9bItlt8XpX8F5KYTN JXYQ== 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:cc; bh=t1N3O6ezIN7bKH7/tq6awYFm6zUm5NvE5qIpeeh6r8w=; b=lrgy+Iy1WyghKESg0+BAjhiM8JgxP/vBFeTyGvOTt0zCjeyiFTGeeMxng/UeGb4stc ILkS0iYokhNZj3sgPNicW2BPZM2a+P1hyD67ShXMistmfysrgmezXIPWgzzJT5EtBAl5 kFpLHx5+PBfBqMvOavoS/UaaDkfv4WMQ+fhK4XPaWTqeRnMgia5iNfPx5O5nJRZmouxo RHdTTnags6fbT0W9HR89R940LXLNlc5SevSOVqEmFgr4VeACTAhgk2FyIhdSQdP4izvw yZWDGoyfHLzMnXdNfQUZ/dutTE/q8wE7/AvJc0HI7rPmnYZD1jBgyA3gT/Nw1fnC+aOT FI/g== X-Gm-Message-State: AOAM532gQyk7pOBPqsVxbXJdJEeUoby+zuNV6V3mvNKcv8zydqprHF6X jpNJrj+4vFkEMM1Tt75KyMa43pam9oD+TSCZXHdlGVif023NPQ== X-Google-Smtp-Source: ABdhPJwxY0hJycmrV6OTEhT2X6+iBlnYvGLTBWIe7SQntxSQZu2qv+B8LCKHhd1XDb25doWtoVXwSW07PLzPx6+O8Us= X-Received: by 2002:a1f:1b16:: with SMTP id b22mr860785vkb.1.1632330314353; Wed, 22 Sep 2021 10:05:14 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 22 Sep 2021 18:05:00 +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) 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 = 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."