`hh_parse --full-fidelity-json` generates strictly invalid JSON for non-UTF8 sequences
Offen
hack
- Vorherrschende Sprache
- C++
- Sterne
- 18.7k
- Forks
- 3.1k
- Ø Merge
- 1 Std. 47 Min.
- Gemergte PRs (30 T.)
- 2
Beschreibung
### HHVM Version
HHVM 3.27.0
### Operating System and Version
MacOS High Sierra
### Standalone code, or other way to reproduce the problem
```
$ hh_parse --full-fidelity-json hphp/test/quick/Empty.php | hhvm --php -r 'var_dump(json_decode(trim(stream_get_contents(\STDIN))) === NULL);'
$ hh_parse --full-fidelity-json hphp/test/zend/good/ext/iconv/tests/eucjp2sjis.php | hhvm --php -r 'var_dump(json_decode(trim(stream_get_contents(\STDIN))) === NULL);'
```
### Actual result
```
bool(false)
bool(true)
```
### Expected result
```
bool(false)
bool(false)
```
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.