facebook / facebook/hhvm

Regression in mb_parse_str

Open
#8,416 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
18.7k
Forks
3.1k
Avg merge
1h 47m
Merged PRs (30d)
2

Description

In HHVM 3.30.1, the following code gives incorrect results:

```
$a = [];
mb_parse_str("id=&type=foo", $a);
var_dump($a);
```

In HHVM 3.30.1 it outputs:
```
array(1) {
["type"]=>
string(3) "foo"
}
```

However, in php5, php7, and HHVM 3.12.14, it outputs:
```
array(2) {
["id"]=>
string(0) ""
["type"]=>
string(3) "foo"
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.