mirror of
https://github.com/php/php-src.git
synced 2024-12-02 22:34:55 +08:00
46a49be6c8
Type checking may convert to refcounted values, so force freeing of extra args.
15 lines
250 B
PHP
15 lines
250 B
PHP
--TEST--
|
|
Bug #80049: Memleak when coercing integers to string via variadic argument
|
|
--FILE--
|
|
<?php
|
|
function coerceToString(string ...$strings) {
|
|
var_dump($strings);
|
|
}
|
|
coerceToString(...[123]);
|
|
?>
|
|
--EXPECT--
|
|
array(1) {
|
|
[0]=>
|
|
string(3) "123"
|
|
}
|