facebook / facebook/hhvm

htmlentities() doesn't recognize (and ignores) ENT_HTML5 flag

未关闭
#2,727 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
php5 incompatibility
主要语言
C++
星标
18.7k
派生
3.1k
平均合并
1 小时 47 分钟
30 天内合并 PR
2

描述

``` php
var_dump(htmlentities('This + is. a < test', ENT_HTML5 ));
```

on `HipHop VM 3.1.0-dev+2014.05.22 (rel)` produces:

```
string(22) "This + is. a < test
```

on `PHP 5.5.12-2` produces:

```
string(34) "This + is. a < test"
```

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。