mirror of
https://github.com/php/php-src.git
synced 2026-03-24 08:12:21 +01:00
15 lines
327 B
PHP
15 lines
327 B
PHP
--TEST--
|
|
GH-20435 (SensitiveParameter doesn't work for named argument passing to variadic parameter)
|
|
--FILE--
|
|
<?php
|
|
|
|
function test($a, #[\SensitiveParameter] ...$x) {
|
|
debug_print_backtrace();
|
|
}
|
|
|
|
test(b: 1, a: 2, c: 3);
|
|
|
|
?>
|
|
--EXPECTF--
|
|
#0 %s(%d): test(2, b: Object(SensitiveParameterValue), c: Object(SensitiveParameterValue))
|