[php-src] PR #18537: Fix OSS-Fuzz #416302790
| From: | nielsdos | Date: | Sun, 11 May 2025 10:27:37 +0000 |
| Subject: | [php-src] PR #18537: Fix OSS-Fuzz #416302790 | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-31663@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/18537
Author: nielsdos
The parser accepted invalid code: consts are only valid at the top level, but because GH-16952
changed the grammar it was incorrectly allowed at all places that allowed attributed statements. Fix
this by introducing a variant of attributed_statement for the top level.