facebook / facebook/hhvm

`hh_parse --full-fidelity-json` generates strictly invalid JSON for non-UTF8 sequences

Aberta
#8,245 0 comentários 0 reações 0 responsáveis Ver no GitHub
hack
Linguagem predominante
C++
Estrelas
18.7k
Forks
3.1k
Merge médio
1h 47min
PRs com merge (30d)
2

Descrição

### 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)
```

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.