]> granicus.if.org Git - php/commit
Check for duplicate names in gen_stub.php
authorTyson Andre <tysonandre775@hotmail.com>
Sun, 23 Aug 2020 14:46:40 +0000 (10:46 -0400)
committerTyson Andre <tysonandre775@hotmail.com>
Mon, 24 Aug 2020 13:31:46 +0000 (09:31 -0400)
commite056e2dae900775a4a8694279a2d92dedf3e65cd
treec1b0617abeaad8f2d93e1317f77432a262508269
parent5643f34a1ed71ae33d313e31ebb8c814cc8e3c0a
Check for duplicate names in gen_stub.php

With named arguments in php 8.0, it's important that php's modules
or PECL extensions using gen_stub.php don't generate functions
with duplicate names.

Warn if a parameter name is repeated,
even if the last occurrence is a variadic parameter

Closes GH-6035
build/gen_stub.php