mirror of
https://github.com/php/php-src.git
synced 2024-12-19 15:00:15 +08:00
22 lines
350 B
PHP
22 lines
350 B
PHP
--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();
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Deprecated: parse_str(): Calling parse_str() without the result argument is deprecated in %s on line %d
|
|
array(2) {
|
|
[1]=>
|
|
string(0) ""
|
|
["x"]=>
|
|
string(0) ""
|
|
}
|