summaryrefslogtreecommitdiff
path: root/Zend/tests/bug73181.phpt
blob: 2994e99b9f9d1da48a67cc6f5af834ef49b8e10a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--TEST--
Bug #73181: parse_str() without a second argument leads to crash
--FILE--
<?php

function x() {
    parse_str("1&x");
    var_dump(get_defined_vars());
}

x();

?>
--EXPECT--
array(2) {
  [1]=>
  string(0) ""
  ["x"]=>
  string(0) ""
}