Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:123830 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id 5C3B11A009C for ; Tue, 25 Jun 2024 17:43:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1719337477; bh=Tc2LZhOeFCzRo3UsEuLNS/twrx3ZlVNLVAviqqWzgJU=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=JW0IF+SZM5MZ3I9amx53ryBXPX8rr/1YpWtgPjWZPTpvgWry5MDS8MkrxwQvYAO42 uGhmddwGg0cyclgmj6lh9islAie7f7WUk+VFgougVy/zJMmEaZM+L882OxnAQ/QLSs AXMgpcSnTQwt/j5ochLqq+/ZrUuzuKM1L/0XCWYcHJTmKCcLpd18AHLrIp7s5oTXA7 NIqydyo2SMlThxieuGMe6O+q6LuhBb0u5c5U2MXKqLv6L3dlzW2jpVhLvRJnQD9cMb U57MtuKQCcT28DXd07C/Au7qBYghaI+xC61rXMPWdFz5VIdXo6qA5Jdy3hP3tcKdGV HEj7TvQnSfgVw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 6F17C18057E for ; Tue, 25 Jun 2024 17:44:36 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from chrono.xqk7.com (chrono.xqk7.com [176.9.45.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 25 Jun 2024 17:44:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1719337397; bh=sWJo/QWRMTuErxCmI2VLGrhemIR4M9r2Ygn6JjNNCNQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type:from:to:cc:subject:message-id; b=HigKramfdSRJ1xDcPMB+Wc+v1wU9sw5AOixqrKSeOTSWSd3/vbzjN/5SB1Pv0pH0C bZYL1NZucruC3FrNPTc+I3U8pCNjyp0hsoKNcP0bBrOHj9claSGL6GUXc0qM7tYfSd qxTq1Jp/oyaQvebF76luVNASIzkYa1yrQjGhPG6Xm51/Zof3xYEaM1yZLQJ7WBaEC6 NDExd7z2wHU6Pumv3K3qEFfJsYhD/Gaz0FJU+ZUIwTHiD9Yx0ukJ7shRD42YLjzfVR 9YPjmoze4bi0WKmTRY33P7QvqbPFZNUwVXb4ou0BtsSj5fgy/beHiiu8TAAsN2uLMd EDv6VeCjwOJTQ== Message-ID: <727ba392-5690-4d74-bc11-cdb0ea21d14b@bastelstu.be> Date: Tue, 25 Jun 2024 19:43:14 +0200 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 Subject: Re: [PHP-DEV] [RFC] Deprecations for PHP 8.4 To: Marco Pivetta , "Gina P. Banyard" Cc: PHP internals , timwolla@php.net References: Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit From: tim@bastelstu.be (=?UTF-8?Q?Tim_D=C3=BCsterhus?=) Hi On 6/25/24 17:55, Marco Pivetta wrote: > Update: Tim gave me a decent alternative that I can live with. > > `uniqid()` becomes `bin2hex(random_bytes(16))`. For context: Marco also pinged me on Roave Discord and I sent a quick reply from my phone. I've now added the `bin2hex(random_bytes(16))` alternative to the RFC text: https://wiki.php.net/rfc/deprecations_php_8_4?do=diff&rev2%5B0%5D=1719336981&rev2%5B1%5D=1719337102&difftype=sidebyside Best regards Tim Düsterhus