Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:127919 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 C9C411A00BC for ; Sun, 6 Jul 2025 13:45:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1751809407; bh=cmdpcdvCKo2PGy/gygdpxAYF/ypT0d4HMvBu/q83wMc=; h=Date:Subject:To:References:From:In-Reply-To:From; b=KHf/KG+dhK1fTbNw/d0KJt4bt2D3r181rNdp35kQ/f5Ol2POAaUNERBK7Sv/evnZW N3T/SN3nNTT/AdtXaZk7ySPbgW1fWdjcdjSmwI4XM636QgdD6k6iVIAJiYE0qd/B8L WMprERK2B7B7q0mjc7lLdDhL9+6GA3XI/SOZqP3Y9utWb9PUiE6Oko1kCHtSmAcqRm S7z57L/dBPEKXtuF7mY4o21aNkwdxa2vdyG01AfNb4zgCyBAbO1dvjs8cRh+9AqKby quGEXBg0vrYY6/ovk05WvTJOjwsRdZUf66C/C4ZRbKgTMFcVrUJlF4uU0ohKPb3SvM 5YWR/m0lCKG2g== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id AEBBE1801C7 for ; Sun, 6 Jul 2025 13:43:26 +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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.1 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 ; Sun, 6 Jul 2025 13:43:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1751809505; bh=OOA0jG1V2AHZ5nASiuSJvjh68U1sUG+K/n0bMQ18QpU=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type:from:to:cc:subject:message-id; b=RjnY/kWBTfyZyJuLSyMx4IHf42C9E5u2mlXRbVZnZK8YPE0Yz2G8j6lVbDymr16AL wlzCth76l0lf6EU2i5S6L2sxmNqRyWcoA3tsEspojBGZeRrRjqK4+PcTm2rSGB08Uk 1Ro/DQ6F2gpobn5R/ZhBEzNaDWJOTesu3a+PLtlofSDm8RDB7leevAh01xOBnz6Xv0 x/q9pH2jTwt9gjypC6AuwzgmB+OCzMQ1PbrkrDpiWKllyk3xwYS0igPkGzVodZtZQd 1VwXAxhAqLPHKovXUNg+UmCyAjRNBtaRIdw+3kgB1MeFUVVibdjHEO4KEXbgxrJ3tw ZZT2Z+FfuHytQ== Message-ID: <14fe09eb-f33f-40eb-b850-358dbe20f364@bastelstu.be> Date: Sun, 6 Jul 2025 15:45:04 +0200 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Subject: Re: [PHP-DEV] [RFC] Deprecations for PHP 8.5 To: Ilija Tovilo , PHP internals 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 7/3/25 16:45, Ilija Tovilo wrote: >> Deprecate passing spl_autoload_call() to spl_autoload_unregister() > > Is such a check actually useful? We can prevent > spl_autoload_unregister(spl_autoload_call(...)), but we can't prevent > spl_autoload_unregister(fn($c) => spl_autoload_call($c)). It seems > very unlikely for this to happen accidentally, and excluding all > functions that don't make sense to pass is not feasible for obvious > reasons. But I don't care too much. See also my reply to Niels. Such a check already exists: https://github.com/php/php-src/blob/677a1f80c86b7a5848985bf44714210d0b89900b/ext/spl/php_spl.c#L583-L590 That's an explicit special case in the language that could go away. Best regards Tim Düsterhus