Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:127534 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 4BCB41A00BC for ; Mon, 2 Jun 2025 16:11:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1748880550; bh=5ZyKJIEl63jJKgYIEVKxaDU9q3lBcG20c3vu6cMbYmE=; h=Date:To:From:Subject:From; b=bUc5trHG0R/30V0Q6ho5jGxFVXgVClilDCW3kOJfhortxIzWpMDfgyVjV50O18r38 HTU70u7JT9lNSD6Vbp1rF5RCixNwzc42Dom9qk3C5NJBpIzmwFZrokD63LX5ZFu7GB LDK7xUgopjlgYkYX8TQOq2sstqUjnNKbVv0V0uSB/PWsR4NSEHyZQSugxHYjdAh+Mz XVCfkWWcpJ9A57WjZhMxMXrwIfZcIdj6KECvj/Fg5xCdcxJFiXIZ2kI/lQfvsSZBXr Ti5GPFI3qBg2WZVLpotFPw9HW1+cqHCTemvA3N1TSTkVqbWlR7WstupE0w0bb+YGR/ sD+Alb4FHjGzA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 1F998180061 for ; Mon, 2 Jun 2025 16:09:08 +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=-1.2 required=5.0 tests=BAYES_40,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,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 mail-4317.protonmail.ch (mail-4317.protonmail.ch [185.70.43.17]) (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 ; Mon, 2 Jun 2025 16:09:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gpb.moe; s=protonmail3; t=1748880669; x=1749139869; bh=5ZyKJIEl63jJKgYIEVKxaDU9q3lBcG20c3vu6cMbYmE=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector: List-Unsubscribe:List-Unsubscribe-Post; b=mR74+DvycZHWTg77bothW/y6s2nt9f2ZXzFO3rjJv6MCaxG0u/mnwLb9VhxOqVcN3 Dd2xmuGgq/kybi2HuOvGAIU38w0v+VrDbcQX0uMkjJW9fqJjhCbh0Tl4FTG2ESt5zU wVStvTIx+6F6fn8gPVYCjJA0XqeXJcwCgD2CNAvKabofaJ9TMpW9C6FTS4YBIV3oaB mLqbx75/cudyyvJrKfOeep5MnTeMziY3M/mY7Kcy/K9x9BaWFlwyC3ZroenIUAdF5w kA4Q75YIu2ReZjHeETkEIbWF+Hv254KIS1wbV9mhxUVVLP6/3WSVJxrvtpy16HY0QV Pzp/RYxJ+9yiw== Date: Mon, 02 Jun 2025 16:11:06 +0000 To: PHP internals Subject: [PHP-DEV][RFC] Deprecate type juggling to and from bool type within the function type juggling context Message-ID: <3Yl0UGauXmKqk7s7Hqbv6iaXru-hZHf8Wj6VjwwihgRSaqZo5EZ2ndsOle-ae41C-lvnirynWt6PpuD7UJPL0zPCw18QHFE81Eb--fiiEbc=@gpb.moe> Feedback-ID: 96993444:user:proton X-Pm-Message-ID: 1f6b270eeb8959e6ec28484a1954a5dfbc1ea831 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: internals@gpb.moe ("Gina P. Banyard") Hello internals, This is the first RFC out of a set of type system related RFCs I want to pr= opose for PHP 8.5. It also used the recently enabled Markdown support on the wiki, so there mi= ght be a few oddities. The RFC proposes to deprecate implicit type coercions to and from the bool = type for other scalar types. This a "weak" mode change only, as when strict_types are enabled none of th= ese coercions can happen. Let me know what you think about it. RFC: https://wiki.php.net/rfc/deprecate-function-bool-type-juggling Best regards, Gina P. Banyard