php-src/Zend/tests/parse_str_with_unpack.phpt
2017-02-03 18:52:57 +01:00

17 lines
288 B
PHP

--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)