Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:102097 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 92627 invoked from network); 10 May 2018 14:33:17 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 May 2018 14:33:17 -0000 Authentication-Results: pb1.pair.com smtp.mail=me@kelunik.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=me@kelunik.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain kelunik.com from 85.215.255.25 cause and error) X-PHP-List-Original-Sender: me@kelunik.com X-Host-Fingerprint: 85.215.255.25 mo4-p00-ob.smtp.rzone.de Received: from [85.215.255.25] ([85.215.255.25:32281] helo=mo4-p00-ob.smtp.rzone.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9C/25-47313-B2854FA5 for ; Thu, 10 May 2018 10:33:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1525962792; s=strato-dkim-0002; d=kelunik.com; h=To:Subject:Message-ID:Date:From:X-RZG-CLASS-ID:X-RZG-AUTH:From: Subject:Sender; bh=LwF7gUXbOgROWj77KiX/6B5/8SEuCVvSI4wUTtWhFQk=; b=rYjBFB+43igM6Pc8zpOJST4mHsxSjvTKHy7Q8jE/uwpoTsTQ0FFKtxjL90gBTLI8eJ W6g6IYfBkoVs+mL8k9gyao0TlDnZ9YK/l2HSfvHJl/TSHAzDZIjAJe2G2JoRuA46x4/z nydcJU7zw3K9dQJcMRQ6PMcMfJUPCcKfTOyez3f9SVDtoTqGvFRbexvPUAyIgAoHQWYs rHxDAc10KhfVRR+h7+lFz1jui5FS8JFfYN4+VkEeMwdShgZj44Js3lDXuk/oxOlzDoPg DuLIoxN0wiw3/G64LO8HYFznpHzeKG+6lUqglgCoHrYKsQOy9s3OYc1CIKF/CnJLiB7H vuqw== X-RZG-AUTH: ":IWkkfkWkbvHsXQGmRYmUo9mlsGbEv0XHBzMIJSS+jKTzde5mDb8AaBUcZiElcA==" X-RZG-CLASS-ID: mo00 Received: by mail-yb0-f169.google.com with SMTP id f3-v6so711395ybg.13 for ; Thu, 10 May 2018 07:33:12 -0700 (PDT) X-Gm-Message-State: ALKqPwdBfUDt+SSv5kFi9nZ6UANsIVcf/bE7Nuc89IIq8mVZBuigXgkR bJkS0hBGrH36RqV5s8aSsDdiK9nGwPlwEwNkIno= X-Google-Smtp-Source: AB8JxZoC3xYJLb8DF6B39+6/SD5e1bNKiRFrVsxzf8BbZv9PEc2MmJ0BPBIKEoAa6L/gXXqMd8EYW2tW5fivlvmPVj8= X-Received: by 2002:a25:3fc5:: with SMTP id m188-v6mr894020yba.271.1525962791978; Thu, 10 May 2018 07:33:11 -0700 (PDT) MIME-Version: 1.0 Date: Thu, 10 May 2018 14:33:01 +0000 X-Gmail-Original-Message-ID: Message-ID: To: PHP Internals Content-Type: text/plain; charset="UTF-8" Subject: [RFC] Deprecation of uniqid() From: me@kelunik.com (Niklas Keller) Hey, I hereby propose to deprecate uniqid(). There have been attempts to fix it ( https://wiki.php.net/rfc/uniqid), but those were rejected during discussion, because there's no possible fix without breaking BC. Instead of a subtle BC break, this RFC favors the deprecation and moving users to other functions. It's to be discussed whether the function should be removed with PHP 8.0 or just deprecated to avoid fully breaking things where it's not strictly necessary. A deprecation will probably avoid most new usages, which is the main goal. RFC: https://wiki.php.net/rfc/deprecate-uniqid Kind Regards, Niklas