[php-src] Issue #10971: Match with && operator

From: Date: Wed, 29 Mar 2023 14:59:28 +0000
Subject: [php-src] Issue #10971: Match with && operator
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-244042@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/10971 Author: Tagliatti ### Description Why do expressions match with && or || operator behave like the example? What is the reason for returning false? The following code: https://3v4l.org/KktKB#v8.2.4 ```php <?php $result = match('test') { 'test' && true => true, 'test2' && true => true, default => false, }; var_dump($result); ``` Resulted in this output: ``` bool(false) ``` But I expected this output instead: ``` bool(true) ``` ### PHP Version 8.2 ### Operating System _No response_

« previous php.bugs (#244042) next »