msg_* functions do not work with binary strings
未关闭
low-pri
php5 incompatibility
- 主要语言
- C++
- 星标
- 18.7k
- 派生
- 3.1k
- 平均合并
- 1 小时 47 分钟
- 30 天内合并 PR
- 2
描述
Test case:
``` php
$q = msg_get_queue(123456);
msg_send($q, 1, "a\x00b\xF0");
msg_receive($q, 1, $msgtype, 100, $msg);
for ($i = 0, $len = strlen($msg); $i < $len; $i++) {
echo ord($msg[$i]), "\n";
}
```
PHP output:
```
97
0
98
240
```
HHVM output:
```
Warning: Message corrupted in ...
```
贡献指南
评估
这个 Issue 还没有评估数据。