[php-src] PR #25059: ast: Fix leak of duplicate named argument in new in initializer
| From: | jorgsowa | Date: | Fri, 30 Oct 2026 17:45:14 +0000 |
| Subject: | [php-src] PR #25059: ast: Fix leak of duplicate named argument in new in initializer | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-40099@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/25059
Author: jorgsowa
When a
new expression in a constant expression has a duplicate named argument,
zend_hash_add() fails and the "Named parameter overwrites previous argument"
Error is thrown. The argument that was just evaluated was never freed.