Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:128475 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 lists.php.net (Postfix) with ESMTPS id 303461A00BD for ; Thu, 14 Aug 2025 20:55:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1755204806; bh=xktvYTkjd3L78JklQ2F9Hhj0dJJxmxS3RUg4XijSdws=; h=From:To:Subject:Date:References:In-Reply-To:From; b=ItgjPa6/I2BTs7VnPabLURNGJKxLnGbbIYnO9ExB01xPiqb6Xio8xHewqXRYnAvbB TlFNs0R+RxZnG/Qx3zD5xzkWH9iLAj2DB/6ap5EjnQ7lwV4OL3JEOZgGbErrFsvzq5 5riTiMQeUA9cb5co1j4l10UQFwLHCz4M2Bpk0vfer6UPozLDrDQmUE2SGoMWLsxtql ij//zi3IWtzCXRyYQEDUROmp35186NX02IMQP99T9R8DFU9SGko6gDUp5YrAwDoQio GPQPkji75rZIC6rcPM1aEz2cHzEvBMkUGMKgCRf5V/GQYnyK6Lw1u1jDoscGQWaEah OLR7QXl50AsMQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 9783F180040 for ; Thu, 14 Aug 2025 20:53:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_50, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12olkn2030.outbound.protection.outlook.com [40.92.22.30]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (secp384r1) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Thu, 14 Aug 2025 20:53:24 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=D8p5uFWYICctYldUUqBhfSXyHcKg4H9rX5+0DjmVlUs9E+CSzTQaGKKvquKhhB/NmSj7M5Um2h4bmRMOKQTsnSvr0OVVaoPFXFXhm017VHJRL+AP/hCx4GzJrMLyzLeNSDbwYyLulBBzlcOkbI2OjLWp0lQMykOje7XkQT2wMZyzpaiLqAXccTQfhi6WOTvPQW/1Bvo1q0jP0q9dUlC+jnHbzwICkRfZMCs6kg/2xpRIGePJTvy0+7IQJc77dACbcHxmMnnxkZS8Yx8xEwBYXJnTQoup6DbG9+ilDkx7lLatXnZnaPc91fL+ZxzfYxM6QKPjtgC9VzsRiW6Fp+TA9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=xktvYTkjd3L78JklQ2F9Hhj0dJJxmxS3RUg4XijSdws=; b=SmcC4an6gX+9NIqwZfgRrSiytIYaWyAeFddKoEP1i4W2vZfrCw1gTQ9s/+hLVQaFWH/8/ABCMCy3f9HPn+QK2J8dfyL3ixKROxKN286BprUDQzZzecL2G2rnrDaSJCJmQMmLuBXvnybCKWYE93ogFkqT2UfLVCgAwo03MkILydN+9hUAnHm28DIu8wEK49+TULiuEIB+M+TNV/bDhcstJZQtoyyTFJDtG1y8zLh/UQLbefExgwhh2iOBGopw3WuuoDlvaKWwIfAjL/68wjzcX98mxIYAdqXVm5uaxd97SMkg6JZaFoIvh3+gVj1iAejWQGnq9dsUvjScjx4/9vBt9g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=xktvYTkjd3L78JklQ2F9Hhj0dJJxmxS3RUg4XijSdws=; b=JxMf2ZaPIGWl4BXp8LBAqZ9oVPRsFkklqIRxX5bduxddk/+7s0V/oANPA76B816Clfhqu8Ad5/cxY/mPwPHpQ6PdUozc+xZ8uwGM8DlAHER5Ckh1buunzoknJMyDyDrjQ5AQ+meJLqLCN9EkHS27x39AxtG63XX5c62NgNx3ijpzKMDgzr2D8gCuMLczzkwaDv4XVjKg5zHv+4k5MnFleLbjl+xk/dzw4QrRsNZD5qctmJFWfuR/pFbXhovi50IXEbwJQ5pl2Q2NHMbO9vXKlVB4IgzCP0IbzxYZta3qfRJkVYfrYU34zri+hxa+Eo/+iY91pLom8B+AdZNC8/ehKA== Received: from BL4P223MB1364.NAMP223.PROD.OUTLOOK.COM (2603:10b6:208:5a9::14) by MN0P223MB1213.NAMP223.PROD.OUTLOOK.COM (2603:10b6:208:4c4::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9031.16; Thu, 14 Aug 2025 20:54:59 +0000 Received: from BL4P223MB1364.NAMP223.PROD.OUTLOOK.COM ([fe80::2e7b:7134:b7fe:e849]) by BL4P223MB1364.NAMP223.PROD.OUTLOOK.COM ([fe80::2e7b:7134:b7fe:e849%4]) with mapi id 15.20.9031.014; Thu, 14 Aug 2025 20:54:58 +0000 To: php internals Subject: Re: [PHP-DEV] [RFC] [VOTE] Deprecations for PHP 8.5 Thread-Topic: [PHP-DEV] [RFC] [VOTE] Deprecations for PHP 8.5 Thread-Index: AQHb/WOZGy9E/ymG+0OqoqwkoGzjmbRZRU+AgAchWICAAB0YgIAAALqAgAAUCACAAAm1gIAAMmYAgAARawCAAAULgIAAPShRgAF6c5M= Date: Thu, 14 Aug 2025 20:54:58 +0000 Message-ID: References: <870631ac-05a1-429a-94b9-6caa8ab577bf@app.fastmail.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: x-ms-exchange-messagesentrepresentingtype: 1 x-ms-publictraffictype: Email x-ms-traffictypediagnostic: BL4P223MB1364:EE_|MN0P223MB1213:EE_ x-ms-office365-filtering-correlation-id: fc41ae1b-c17e-4f09-6ce7-08dddb74d485 x-ms-exchange-slblob-mailprops: qdrM8TqeFBtg1x3yx1r6QKZAk6LGeuzaYmr7O8pziP+f5VBEJFopym2D2MvoBH9H1nSPeuQS3qEI+LzcCPlT9yPwJLoy+sUUprnU5PD2wkJfOzosteHsDCb+iNK6eqbzxswNUn0JIRahJLdTmBVS4I7BsWzb2d4DopxqsG19v/FYHSH2wgpT9z7Xog3t9zBpeSHyw6SNm0YiSAA/Q7V5TQeyMFksJmYuBJsxtyEqqzb3M8cWpnxZr8ANKlUW16apdZMsUOaf/iaDBP1sIk9A4BBhs5BFKIkB8MeDYWCszPrG/kGSXK6xYPPtlzcoaWO3RpRC0lk+AjcyKpEm1TWiODCjD+s9dPesIhAE3z5Ma3CZHUtdwYzNRrf3dCON8WqSPYAIWj7Lg/EjzPQNHtcnfiWIejq/sTBPn1DHsMbNie1OV9KfP4lD4NoqaVN0KYLTbLLyYBvXDhbIVpS/W689AOfcFTTa5RuYSqdouGMpLI/hYfsDH2ozsf6cJnA0Ve/mcS4s8VTbGWMLMkJHI3TWi1Iw0kMfzAYB+Tub+v7DQ5o8ErThRzmLQWvdBMoh2hKqAVCYcQtdKdFKWpqobkbzyudISw1GOtLJ3oFozlGBXNf2NYaKKKtux11n39/mHu00HWanDj4SPtcWp2hz+WxEouceKNZ9ms9gAjO208zwpeyjKM0idTXh7Rnmr+WCYDWwuMO1eHMusUOl6JS1pEWMFMbU04nwkK3fG5YZ560MPi7FHe3kBIA8vMyK3IW/1hbON/wpyhtkd30bwzXf69vyIrm0JNEz8XRe x-microsoft-antispam: BCL:0;ARA:14566002|8062599012|8060799015|41001999006|15030799006|461199028|19110799012|15080799012|31061999003|1602099012|39105399003|40105399003|3412199025|4302099013|51005399003|440099028|10035399007|102099032; x-microsoft-antispam-message-info: =?iso-8859-1?Q?cbxDkmF26wWoN1S5pCBXn69GRsduVZ8thRIYZKdLmmGp/BKzHobeLrKB5l?= =?iso-8859-1?Q?SrtiBdoEVX8/r1zQcE16Rghoh4EvZlOLLcqnqoqmTaHkW/rafk6a+JF0nD?= =?iso-8859-1?Q?SUDp3hnN5yeZSPHnQNUIMxmAIhwz0cy2pjrUgAwUXFopxVSqCytvHykl/0?= =?iso-8859-1?Q?ZKRLqXXt89Fjr1wIvkYfBnCb73LkFIWrf5EQTjNwLVJ6gwF0nx5fEl7y0w?= =?iso-8859-1?Q?i1Myp2T+18AkEXYkS3xm5v6OtFGeeYhN27TFgRwlsbkd8zMwAgGFDmbfki?= =?iso-8859-1?Q?ltOH2pQ0J3b1zVa0T6fSQG7wBxPz2Nb4AE0zmijmB7Fw/3/gJA17XZfUN8?= =?iso-8859-1?Q?MzGwJ30h812/I30W7dDGP9YU5qY/5bUdJgEWWMJi/kHCfpe1pCku2qAu/g?= =?iso-8859-1?Q?6x12XUpt/bqYyxdUF+1n2eZgHTg7A6QBKLizs0JiOkBTBzLwt0grVUxne5?= =?iso-8859-1?Q?IdSEauZrPcoGTsF5VLN4Bp4/CEO8JjxaYzCtS8+LYeB7YFWLc5WVmRYIcp?= =?iso-8859-1?Q?cobnv5TjDqkC1mSqUkFBBgrS4f1lURh6mX9H+W4DNAEzyb74nDKTdvx79N?= =?iso-8859-1?Q?vzlj/an3ZIRoAcfiLWUx87DQ+4a8HNA04Mad32/ep6NyrFKWpVue09iVUn?= =?iso-8859-1?Q?+BQ4zz4dnFsINn/uyJqMfpjO/8oVimUFXaq00GGvZGMZ/2YqJdtSec6nrE?= =?iso-8859-1?Q?+ApfTGx2M6vz7k6jq6dcrSiAUkbNdubVrIy+mUTsj0Iir/H9N/r6VCqFCw?= =?iso-8859-1?Q?9euKFW7115mwqXTdKaKVzIwXIUUAk5/PHqo/h4LwrRKM+U6dE+idd8/Hoa?= =?iso-8859-1?Q?peO1qlmj/sSgQxgh/s4t32VF3XSSrHIXRtN6tQUf/A4ywcKb60dVN7Bvap?= =?iso-8859-1?Q?5cs16xsB/NgwfDDtExepXbW5uJTseJzSkFEwc5SNdNHTJDVeQYPu96Srew?= =?iso-8859-1?Q?FK7kDOXSCv4vLcVJ0IQyQuw9jKKBhen0JITpTnOlVZKViCRFn2ChBHpI9B?= =?iso-8859-1?Q?MOz+jlodK9UQmRw/F1ew4476OIPQRnVk5sOOzKimzXcdoi97nA/2acE8bQ?= =?iso-8859-1?Q?Lv37UInROqEOPbjiYyobUF3s2hnoUTUhBdXaWWFx/7aLlPF8AKpfWXvBuA?= =?iso-8859-1?Q?jHkDas+xdPEFGLtlLibrGBfAkbNhyopjpdF/0REmgV5esCCkHf5RUbIqkn?= =?iso-8859-1?Q?VnL3ehXSIroKRrFkLNV21lMJ3Uo9r07DXWocwbGaq2lpEhg9/wx5jNvPid?= =?iso-8859-1?Q?9peZY0a2/0Z3oypuQyt1gj2lvfSn05NeZ7GfSdLyauwG6/nz5Fgnbk9AHS?= =?iso-8859-1?Q?wJ366/tieXXnlwhDFQP0xfQC4yKs8y9rsbuYjnFomNwsuL+4fKyZ9rT56H?= =?iso-8859-1?Q?Gn8ZIyWHZJXxpTZMsnHNzVLo89w+MftRJVYmCYfK5Mz3/78WBgDPY=3D?= x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?YfxsNu2Rp1WMyK8VThknqiVGOgbdUnLO2zJdGXWWKprFOu4Q/R5nPhVK1+?= =?iso-8859-1?Q?bCr8cXPRckurfatQNv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gr?= =?iso-8859-1?Q?O5FtHh1SA9HXGvkeqd9kFIxHDgZjdGpqiqiWFpnbYb/cneR3kFjjoAMm2t?= =?iso-8859-1?Q?hZ4MDtUvpyBU3RLq7NOnTlSBSb0u1a/kAN1w9nu7tsiYYkTs/FQcBYXT0i?= =?iso-8859-1?Q?/zX9It+P6FdFoJj1PIrHAylc/B08zuSeEm32YseA5u9ScGd6eABKPWXoWr?= =?iso-8859-1?Q?4/pfwjO2itohQfGCMXgSKPsSBO2cgCPRVCMhTFA4mk8/LRHXji+Z1JRgG6?= =?iso-8859-1?Q?rHHmd6ePDcAb8zE3vnBKoKIH0uEeZB9idXiIfsSm3JUJxxaj0qOuQdF153?= =?iso-8859-1?Q?gjcgDV40RB0gXELs4rmf+15xHIFCq25BuF85UejGI=3D?= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Precedence: list list-help: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BL4P223MB1364.NAMP223.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: fc41ae1b-c17e-4f09-6ce7-08dddb74d485 X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Aug 2025 20:54:58.4201 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN0P223MB1213 From: theodorejb@outlook.com (Theodore Brown) On Wed, August 13, 2025 at 16:20 Theodore Brown wrote:=0A= =0A= > I analyzed the top 1500 Composer packages to find and categorize usages o= f the=0A= > `__sleep` and `__wakeup` methods. There are a total of 250 `__sleep` meth= ods=0A= > and 259 `__wakeup` methods in these packages (509 total).=0A= > =0A= > Of these, 108 are empty methods containing no code. Most of these are stu= bs=0A= > in the jetbrains\phpstorm-stubs package.=0A= > =0A= > Another 152 of the methods contain only a single throw statement.=0A= > =0A= > This leaves 160 `__sleep` methods and 89 `__wakeup` methods (249 total) w= hich do=0A= > something else. 150 of these (over 60%) exist in just 9 packages:=0A= > =0A= > * doctrine\orm - 14=0A= > * drupal\core - 38=0A= > * laminas\laminas-server - 7=0A= > * maatwebsite\excel - 7=0A= > * magento\zend-db - 7=0A= > * pdepend\pdepend - 31=0A= > * roots\wordpress-no-content - 6=0A= > * symfony\mime - 8=0A= > * symfony\symfony - 32=0A= > =0A= > Outside of the above packages, `__sleep` and `__wakup` methods generally = seem to=0A= > be few and far between.=0A= > =0A= > I created a Google Sheet to view the per-package statistics:=0A= > https://docs.google.com/spreadsheets/d/1i7GINJdTjXk4lj012vwd7ipZTxuucduYh= -JyYm6V6Y8/edit?usp=3Dsharing=0A= > =0A= > The raw code for each `__sleep` and `__wakeup` method can be viewed here:= =0A= > https://gist.github.com/theodorejb/965633b9787475dfe64cc53dc941bc49=0A= =0A= =0A= Update: it looks like nearly all the Symfony usages have already been fixed= for Symfony 8.=0A= =0A= I re-downloaded and analyzed the top 1500 packages again this afternoon, an= d now there=0A= are a total of 159 `__sleep` methods and 207 `__wakeup` methods in 65 disti= nct packages,=0A= a significant drop from when I did the analysis yesterday.=0A= =0A= 107 of the methods are empty, and 65 only contain a single throw statement.= =0A= Over 62% of the remaining methods exist in just 9 packages:=0A= =0A= * doctrine\orm - 14=0A= * drupal\core - 36=0A= * johnpbloch\wordpress-core - 6=0A= * laminas\laminas-server - 7=0A= * maatwebsite\excel - 7=0A= * magento\zend-db - 6=0A= * pdepend\pdepend - 32=0A= * swiftmailer\swiftmailer - 7=0A= * typo3\cms-extbase - 6=0A= =0A= I updated the above gist and Google Sheet links with the data from today.= =0A= =0A= Kind regards,=0A= Theodore=