Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:123818 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 E8BE41A009C for ; Tue, 25 Jun 2024 15:27:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1719329332; bh=Ptla/pdyYLSlWj76u0q2K3m9cd513GYIRZTbNlGJxdE=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=TutLZGeCkxyRCiHzlxICofRIqQueChLL/tWbN1ulmkcnNYcB+BXB0+/WcYa77uQYj H2OC448VCkeG//T0RcRgFA+eeAg+Rhs6mFSrnwFQL4pIx/q/CNFxjMynxAdjHZmPCY qTeTVneBawbElWMPcr028Qjx1IPIre7O6eJdhAuZBncdVSaWHZNd7tBhHEfdFiSCAw gcapttEzwLzQKUsO6XbHjtJpSPQV6xJtzIVWqPlopX2EejLBTzidji7vQhPAGhmm0d AUra7NUHHK2donCnzFNwfnjEtAv5wDg4bNfLrXRpi+I+F8wXSSpGsiNlydgvj0Omhn hwMe3+1Li358Q== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 8685C1801E7 for ; Tue, 25 Jun 2024 15:28:51 +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,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,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 mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.176]) (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 15:28:51 +0000 (UTC) Received: by mail-pf1-f176.google.com with SMTP id d2e1a72fcca58-70670fb3860so2266236b3a.1 for ; Tue, 25 Jun 2024 08:27:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719329253; x=1719934053; darn=lists.php.net; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Ptla/pdyYLSlWj76u0q2K3m9cd513GYIRZTbNlGJxdE=; b=GpV5KiF6HAc3Gi6J4BFdIDwbLqIuOOFeMeSCnM6RAcJFCJ98Om/raMDH65m/viZ/Qe Ga/pz6j+1k70XljpJ4N9A83fsejCzZ6oRsXu19l5xr/U2tdazecsG8W9owkAd9IyfJUn f6vZhk7Ou+DChmyf0EKSj4ZoAtJJBFeM0DoVJVwnJnvIkko6ETzUA1D75rKsU+BjLsIz 4iDGUtxj5aMAb86qY0TviL011lhxszF64D528g5GaiMv3f2CI2UVtwLwPiJhttscpGac gNE/qQclWG0FZVtjw8SwnzZpOifU0eqYY93bES9aX79487mG71535YBonTOx4ZxsXyiv UCFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719329253; x=1719934053; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Ptla/pdyYLSlWj76u0q2K3m9cd513GYIRZTbNlGJxdE=; b=SY6wg5CZqG5ZmdE7Nq5AurkKLopOnPaJOBhrIjorRSORpaFsB/Jor6CHFxOvWi1Pk2 /3LNPmwB7ZTV94io9qcClgh2fIqnHhYPCOKQeZOl5Xq+ZL9cYbCdaljg0B6XoiOa7Als BV3GvlPdwsvvSrm7py7vHnkEeNLhAA0S3OffH4DIVN5MhuJRJNyGFL3AHwIuNJbsSLgr RWqIv/vV+8fOxFeYKkUBQRvKgIqhnnfdWltcdpLBih1H3df4HnP+kPEfksBHu9C7612A GL00ZpoSSc9JJX5lBZbQqYE0zqnTBXXXoVqI1XWbDfU5T2ip2fVKwwpldvTnXwA8gSdP JHpA== X-Gm-Message-State: AOJu0YyBL/x8mALWDOhVaohh1CUVYZ+O9DG5i7vovt9IYM12EuJdd+VE jS8gmuP4Tw/DPqVaBWr3ZBbSAW3l+Qi7JoAMWcyX7dHFY1j1nLNtwKlzkwHMQLRiDuJTb/r6398 NT5s8isMldS4qLXJawOrgao+Fk4Y= X-Google-Smtp-Source: AGHT+IFxoxIrmL+WSMSFAVg6Eyfm+ZqvRw30wzXHN1jLdyQemRU1U+uBSLTRLkmJffBBvuokgDFPX5pjhGrWAGTtsG8= X-Received: by 2002:a05:6a21:99aa:b0:1b6:ed32:4613 with SMTP id adf61e73a8af0-1bcee665fa4mr9507499637.2.1719329252943; Tue, 25 Jun 2024 08:27:32 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 25 Jun 2024 17:27:20 +0200 Message-ID: Subject: Re: [PHP-DEV] [RFC] Deprecations for PHP 8.4 To: "Gina P. Banyard" Cc: PHP internals , timwolla@php.net Content-Type: multipart/alternative; boundary="0000000000005fafaf061bb88912" From: ocramius@gmail.com (Marco Pivetta) --0000000000005fafaf061bb88912 Content-Type: text/plain; charset="UTF-8" Hey Gina, Tim, I agree with most of these deprecations, except: * `uniqid()`, in my case (XKCD 1172) is largely used for quickly generating a semi-random string for test purposes: a suitable replacement PRNG implementation would be welcome. Even refactoring with tools like Rector will lead to quite messy code, or added dependencies. IMO fine to get rid of **this specific implementation**, if a safe function is provided, such as `random_ascii_string()` or such (dunno, just a hint) * `md5()`, `sha1()` - OK-ish with moving to `hash('', ...)`, but while these are insecure for most use-cases, they are part of the domain of many tools, including GIT itself. I can Rector my way out of it, just not sure these should be hidden into `hash(...)` That said, welcome changes :-) Marco Pivetta https://mastodon.social/@ocramius https://ocramius.github.io/ On Tue, 25 Jun 2024 at 16:37, Gina P. Banyard wrote: > Hello internals, > > It is this time of year again where we proposed a list of deprecations to > add in PHP 8.4: > > https://wiki.php.net/rfc/deprecations_php_8_4 > > As a reminder, this list has been compiled over the course of the past > year by various different people. > > And as usual, each deprecation will be voted in isolation. > > We still have a bit of time buffer, so if anyone else has any suggestions, > they are free to add them to the RFC. > > Some should be non-controversial, others a bit more. > If such, they might warrant their own dedicated RFC, or be dropped from > the proposal altogether. > > > Best regards, > > Gina P. Banyard > --0000000000005fafaf061bb88912 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hey Gina, Tim,

I agree with = most of these deprecations, except:

=C2=A0* `uniqi= d()`, in my case (XKCD 1172) is largely used for quickly generating a semi-= random string for test purposes: a suitable replacement PRNG implementation= would be welcome. Even refactoring with tools like Rector will lead to qui= te messy code, or added dependencies. IMO fine to get rid of **this specifi= c implementation**, if a safe function is provided, such as `random_ascii_s= tring()` or such (dunno, just a hint)
=C2=A0* `md5()`, `sha1(= )` - OK-ish with moving to `hash('<algo>', ...)`, but while t= hese are insecure for most use-cases, they are part of the domain of many t= ools, including GIT itself. I can Rector my way out of it, just not sure th= ese should be hidden into `hash(...)`

That said, w= elcome changes :-)


On Tue, 25 Jun 2024 at 16:37, Gina P. Banyard= <internals@gpb.moe> wrote:
Hello internals,

It is this time of year again where we proposed a list of deprecations to a= dd in PHP 8.4:

https://wiki.php.net/rfc/deprecations_php_8_4

As a reminder, this list has been compiled over the course of the past year= by various different people.

And as usual, each deprecation will be voted in isolation.

We still have a bit of time buffer, so if anyone else has any suggestions, = they are free to add them to the RFC.

Some should be non-controversial, others a bit more.
If such, they might warrant their own dedicated RFC, or be dropped from the= proposal altogether.


Best regards,

Gina P. Banyard
--0000000000005fafaf061bb88912--