xref: /PHP-7.2/Zend/tests/bug73181.phpt (revision 2634b13e)
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--EXPECTF--
15Deprecated: parse_str(): Calling parse_str() without the result argument is deprecated in %s on line %d
16array(2) {
17  [1]=>
18  string(0) ""
19  ["x"]=>
20  string(0) ""
21}
22