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 還沒有評估資料。