mirror of
https://github.com/php/php-src.git
synced 2024-09-29 13:56:09 +00:00
21 lines
245 B
Plaintext
21 lines
245 B
Plaintext
|
--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) ""
|
||
|
}
|