[php-src] PR #25227: zend_ast: Fix ast export del in names, invalid variable and property names
| From: | jorgsowa | Date: | Thu, 05 Nov 2026 22:51:08 +0000 |
| Subject: | [php-src] PR #25227: zend_ast: Fix ast export del in names, invalid variable and property names | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-40340@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/25227
Author: jorgsowa
Fixes two AST export bugs that produced unparseable code for names needing quotes:
- Invalid variable and property names were exported bare instead of quoted.
- 0x7f was treated as a valid name character, though it hasn't been allowed in unquoted
identifiers since PHP 7.1.
They are in one PR because the 0x7f fix depends on the quoting added by the first commit. Kept as
separate commits since each fixes its own bug, with its own test and NEWS entry.