[php-src] Issue #19284: match (...): multiline case

From: Date: Tue, 29 Jul 2025 11:54:59 +0000
Subject: [php-src] Issue #19284: match (...): multiline case
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-250517@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/19284 Author: rino1 ### Description ``` $ php << EOF <?php match (null) { // CASE 1: Single line: OK 1 => 123, // CASE 2: Multi line: ERROR 2 => { $num = 5 + 72 + 8; return abs($num); } }; EOF PHP Parse error: syntax error, unexpected token "{" in Standard input code on line 8 ``` OK, at present the "thing" cannot be done. But in my opinion, it is something that could be useful. What do you think? Can any of you, when it has some time, could propose an RFC?

« previous php.bugs (#250517) next »