summaryrefslogtreecommitdiff
path: root/Zend/tests/parse_str_with_unpack.phpt
blob: 8daa7113744046bc48bb5ee8f63d684e4934dc95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--TEST--
Calling parse_str through argument unpacking
--FILE--
<?php

function test() {
    $i = 0;
    parse_str(...["i=41"]);
    var_dump($i + 1);
}
test();

?>
--EXPECTF--
Deprecated: parse_str(): Calling parse_str() without the result argument is deprecated in %s on line %d
int(42)