xref: /PHP-7.4/Zend/tests/bug80049.phpt (revision 46a49be6)
1--TEST--
2Bug #80049: Memleak when coercing integers to string via variadic argument
3--FILE--
4<?php
5function coerceToString(string ...$strings) {
6    var_dump($strings);
7}
8coerceToString(...[123]);
9?>
10--EXPECT--
11array(1) {
12  [0]=>
13  string(3) "123"
14}
15