xref: /PHP-7.1/Zend/tests/bug73181.phpt (revision b7cbaa7f)
1--TEST--
2Bug #73181: parse_str() without a second argument leads to crash
3--FILE--
4<?php
5
6function x() {
7    parse_str("1&x");
8    var_dump(get_defined_vars());
9}
10
11x();
12
13?>
14--EXPECT--
15array(2) {
16  [1]=>
17  string(0) ""
18  ["x"]=>
19  string(0) ""
20}
21