php-src/Zend/tests/parse_str_with_unpack.phpt

16 lines
183 B
PHP

--TEST--
Calling parse_str through argument unpacking
--FILE--
<?php
function test() {
$i = 0;
parse_str(...["i=41"]);
var_dump($i + 1);
}
test();
?>
--EXPECT--
int(42)