msg_* functions do not work with binary strings
Open
low-pri
php5 incompatibility
- Dominant language
- C++
- Stars
- 18.7k
- Forks
- 3.1k
- Avg merge
- 1h 47m
- Merged PRs (30d)
- 2
Description
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 ...
```
Contributor guide
Assessment
This issue has not been assessed yet.