Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120439 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 67702 invoked from network); 29 May 2023 19:49:22 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 29 May 2023 19:49:22 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 0AD18180503 for ; Mon, 29 May 2023 12:49:21 -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,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS24940 176.9.0.0/16 X-Spam-Virus: No X-Envelope-From: Received: from chrono.xqk7.com (chrono.xqk7.com [176.9.45.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 29 May 2023 12:49:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1685389759; bh=VZ+GVc7hekn1MxoFszqH0w9NMgmYzdzwNQ4A757ONwE=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type:from:to:cc:subject:message-id; b=XFFcKr18mAKuPyZm7TTJ3WlL1ynN7uTC1S5ArhXFm24M6mDWCQgssuGzHM3I9BtVG E1nGkaahE1ML51414d54IEH11P3ExC0OfNXiDgKJicvW9c5uECvwhelmHFL5F26YN1 9fRr85YHS9unrv1VlZw/Jnfo3bArQMup/krEXQtlO21CM0WnwQeA80k3STbf79qjwz 4gFXvRGTC3Zbr64Svgbk8/3qhxZ30/yEzuOkwc/9n4qb14j4PUKdrVR9Aw9gkGMbSE PgrthlqxPGp5XuC0YGKv4HUaKK8m2hDU3GJl2MWamQKEVh5GFVGhe+WGSoh4Hkms9Q Zb/HVw1zm4gnw== Message-ID: <9ea3a5af-679d-ad63-f9c2-e0d8d148db3f@bastelstu.be> Date: Mon, 29 May 2023 21:49:17 +0200 MIME-Version: 1.0 Content-Language: en-US To: Go Kudo , internals@lists.php.net References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] [RFC] [Discussion] PHP 8.3 deprecations From: tim@bastelstu.be (=?UTF-8?Q?Tim_D=c3=bcsterhus?=) Hi On 5/29/23 08:44, Go Kudo wrote: > I realized I was about to add the deprecation of `lcg_value()` and forgot > to do so, so I added it. > > https://wiki.php.net/rfc/deprecations_php_8_3#global_combined_lcg > > As usual, my English is of low quality, so I would appreciate it if you > could point out any problems. I think it's too early for that. Because: 1. The replacement is only available as of PHP 8.3. Thus there won't be a single version where "replacement is available" and "the function does not emit deprecation notices" is both true. It should be deprecated with PHP 8.4 at the earliest to give folks at least (!) one version to cleanly migrate existing code without suppressing any errors / notices / deprecations. 2. It's not seedable, thus the implementation can be switched to use a different engine without affecting existing code. 3. It's not as commonly misused as mt_rand() is. Primarily because the possible use-cases are much more rare. Best regards Tim Düsterhus