Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:127546 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 5C4FB1A00BC for ; Tue, 3 Jun 2025 01:36:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1748914465; bh=lT96iuNh2lsQGfmjXzW/cmhbv4mzEqIbpI12ISLcKOI=; h=Date:Subject:To:References:From:In-Reply-To:From; b=CIVXJ7kT+OyDMmTdCqRvQUKcwK0yLxHBoZDveJtk1ju+4uIdMJ3fxbRBLJTD9krEe 36O23OjhrRf3UUcwJhGMNw9XuztGygA/CGejLJLd13fI7oUBGm25C6Dil5iRct3VDT 23IyWDTMti8yE3I141PGHPZ6GbiM7wUz8Upl/oyRovi7KL7tADRdZserljNoWBhh+g M836DnHtIy+jt3lweAThm5nsV3aduNAkWdP5f7YkQ87T/J4sxlFAP3FbGU+mSlVjmB 2luy21WR068XmvndB5gF6PpilTvn3a2ytKYBHixKjWXKRKgHZrJKg9PK8BpN0GDAov sfPbWajWz7E8g== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 3BE9C18037E for ; Tue, 3 Jun 2025 01:34:24 +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.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,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 mail-108-mta77.mxroute.com (mail-108-mta77.mxroute.com [136.175.108.77]) (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, 3 Jun 2025 01:34:22 +0000 (UTC) Received: from filter006.mxroute.com ([136.175.111.3] filter006.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta77.mxroute.com (ZoneMTA) with ESMTPSA id 197336ebc460008631.001 for (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Tue, 03 Jun 2025 01:36:24 +0000 X-Zone-Loop: f0dfebf80f87932944b1ca9168460ebb1174abeef684 X-Originating-IP: [136.175.111.3] DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sandfox.me; s=x; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From:References:To: Subject:MIME-Version:Date:Sender:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner: List-Archive; bh=tCatf18JQlp89yhuHMznm6ByodSm/mKjkgM5acu3ip4=; b=H9+yEx4+Jfaw C5Pbaqol1yBHLj1wxGKQdCAi2yOw3DC+74au4k7aqTWI9faOWBE3DIAu1P/0jYUAN31pkDOwJWr4F 4hkLWuZsVxls/rR0mpfbDBYxI/WMRZ+wum7UBufXfXZKfLenN2RO/eDypaU8dNuG24TxL0KRKwYis vqLB7F9bMlNQeeLKU80y0qBxOf0v46Lx34YIYEvVAwMuHb4Q3RrbBDzV/GjIeREH5YmZ+5OPxqT2V 7dBLqCKzLQilMHuz4ezTC7qlUqEP9JpFZpAulej0Xpk7+hnho1GoiVw1Y7ys+eGJqKFAdhTB5uPKV y6C9x07RUmPuUFFRi0cJ6w==; Message-ID: Date: Tue, 3 Jun 2025 04:36:20 +0300 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PHP-DEV] [RFC] Transform void into an alias for null To: internals@lists.php.net References: <6Z2Ysh6MjYp1nyzuB0bTPJc5srObIcMRqt731JaQeXUJk1f_V_Yo2nRn8WvjI7er7pp7pIUE6WYl5pRwvYrtcrd07nCutyAqKPSsZHmrS-Y=@gpb.moe> <6ef43d7f-711a-46d5-b2a5-b6919feabd93@app.fastmail.com> Content-Language: en-US In-Reply-To: <6ef43d7f-711a-46d5-b2a5-b6919feabd93@app.fastmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Authenticated-Id: sandfox@sandfox.me From: sandfox@sandfox.me (Anton Smirnov) On 02/06/2025 20:01, Larry Garfield wrote: > The result of this RFC is that the following would no longer be an error, yes? > > function test(): void { > print "test"; > } > > // This currently gives an error, but you propose that it > // would change to set $val to null? > $val = test(); There is no error: https://3v4l.org/UD4vn -- Anton p.s. sorry Larry, first time I forgot that I'm answering to the mailing list :D