Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:94170 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 19359 invoked from network); 21 Jun 2016 09:41:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Jun 2016 09:41:24 -0000 Authentication-Results: pb1.pair.com smtp.mail=j.boggiano@seld.be; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=j.boggiano@seld.be; sender-id=pass Received-SPF: pass (pb1.pair.com: domain seld.be designates 209.85.215.47 as permitted sender) X-PHP-List-Original-Sender: j.boggiano@seld.be X-Host-Fingerprint: 209.85.215.47 mail-lf0-f47.google.com Received: from [209.85.215.47] ([209.85.215.47:36749] helo=mail-lf0-f47.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 59/70-14239-2CB09675 for ; Tue, 21 Jun 2016 05:41:24 -0400 Received: by mail-lf0-f47.google.com with SMTP id q132so14774720lfe.3 for ; Tue, 21 Jun 2016 02:41:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=seld-be.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=RnqWjL8ybWPGWqHOuTIzG4gwwUM6hF49V+u9btij+BA=; b=t7npKSHVTCJdQWUgATqk0S2DPF30NY+INvo1T4anCxOjnMu3fRTOXU1tYjMGmj936L +p+mtQ21SHStEgzx/qVyC6SpET7EaVNOCcgnKwr0XcC6+v8eURTuO3b3s271zQvUlHsg 8kCQx6bQRGiyVnKx8xMVf9L846N4Ypc+c8qSjjIPJjF0T4nRkgvOis7VF9dtMsaxfOId vygfndoruNfU+rRamxXMMhdH8CFKS9gJllOgbo4wtdRlkDGbVzkxuw1bMFNMI4nZb3CB 9ESGI63ke3wqkOdNvak2tB7JmdqPZmMhXgrIZxuil8oroUuL3ZOQzeQZo5/J8DP463CI zclA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=RnqWjL8ybWPGWqHOuTIzG4gwwUM6hF49V+u9btij+BA=; b=YL9QQsn4kH8j6B2dzBtRai5Wqx5jxN+Uaz2d1plBbxGFI5koIl6GLkzoO6kTmYInsk t4Fbgas4dCv63Us34cc3lhLhoFnD6CCxGQsu5NddYcnQ2ceWG6eAL9AbMX9hc5Wp94au ovreDPbrXUzQD4AGNT5ZjHVZH3JZz5EGbGW7YBfO80Zkiqgz97Yc1XmGB5jlWlOV+rdx 7lQ3uETv4CGHts20RiHbt2AeoMVgTE1t20v1QhMF0pXca2SRuZAXIAJYqEstw3DuLQyj tHPo1Lkc7bSPumaU7oNJQRLEcltCims+SDyQRVDmdj5FtpFnArP629FRjgf0AY1K3Dlt qzgQ== X-Gm-Message-State: ALyK8tJ+Z/tDpbv0+QVGrM/86gEJ6XXy3cGahZMUUsbt3PBmzhy2yw29ip+grstl7cTOaw== X-Received: by 10.28.125.81 with SMTP id y78mr2305347wmc.5.1466502079498; Tue, 21 Jun 2016 02:41:19 -0700 (PDT) Received: from [192.168.0.2] (cpc74585-lewi13-2-0-cust978.2-4.cable.virginm.net. [82.25.75.211]) by smtp.googlemail.com with ESMTPSA id bo1sm38322193wjb.35.2016.06.21.02.41.18 for (version=TLSv1/SSLv3 cipher=OTHER); Tue, 21 Jun 2016 02:41:18 -0700 (PDT) To: internals@lists.php.net References: Message-ID: Date: Tue, 21 Jun 2016 10:41:27 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] RNG fixes From: j.boggiano@seld.be (Jordi Boggiano) On 21/06/2016 06:33, Stanislav Malyshev wrote: > Hi! > >> Why do we need so many functions to get a random int anyways if we now >> have random_int()? I would like to see all of them deprecated and >> removed in PHP 8.0. > > I don't understand this drive to remove functions and break existing > code. What is the point of it? If you don't like them, don't use them. > They can share underlying implementation but there's absolutely no > reason to remove functions unless they do not work anymore, broken and > can not be fixed, etc. I agree that removing such widely used functions should be done extremely carefully, but marking them deprecated might be a good idea if there is a stronger alternative available. That way we encourage people to migrate, and at some point (PHP 9, 10, never, who knows) maybe they are unused enough that we can remove them safely. Same with magic quotes and such, it took 10 years, but they are finally gone. Cheers -- Jordi Boggiano @seldaek - http://seld.be