[php-src] Issue #10083: PHP 8.0+ does no longer accept a comment in the whitespace between ampersand and argument in function signature

From: Date: Sun, 11 Dec 2022 17:27:41 +0000
Subject: [php-src] Issue #10083: PHP 8.0+ does no longer accept a comment in the whitespace between ampersand and argument in function signature
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-243097@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/10083 Author: olleharstedt ### Description The following code: ```php <?php function foo( array #if __PHP__ & #endif $bodies ) { } ``` Resulted in this output: ``` Parse error: syntax error, unexpected variable "$bodies" in /in/aq2rT on line 8 Process exited with code 255. ``` But I expected this output instead: ``` <Empty, should compile without syntax error as in PHP 7.4 ``` ### PHP Version PHP 8 and above ### Operating System _No response_

« previous php.bugs (#243097) next »