duxet / hhvm-zmq

ZMQ extension for HHVM

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problem with appending null (0x00)

thedjnK opened this issue · comments

When mixing PHP scripts as receiver and HHVM code using this extension as the sender, JSON decode fails...
I've analysed the difference between the messages sent by HHVM and PHP and the only difference I've seen is that PHP does not null encode the messages whereas HHVM does, which stops PHP from being able to decode the messages.
Using PHP you can remove the trailing null character and successfully decode HHVM messages but this is a bug in the extension.
Thanks