by jerod.venema
12. December 2009 01:46
OK, we've just uploaded a new version of our PHP publisher and proxy.
We are using the built in json_encode function of PHP (new in version 5.2.1+) to create our JSON strings, and it turns out that there's a bug, or at least a pseudo-bug, in how the json_encode function is implemented. For some reason, they escape forward slashes in the output. This is rather odd, and was the underlying issue that could eventually result in an "invalid json" complaint in our javascript client.
It appears that this issue may be resolved in PHP 5.3+, so those of you running the latest version may not have seen any issues. In either case, the updated scripts should work.
Anyhow, for those of you using WebSync with PHP, grab a new copy of the PHP libraries from our downloads section and you'll be good to go.
Special thanks to Andrew Betts for finding and reporting this one to us.
8a635558-58fc-46f0-b164-ccafdeeb46f7|0|.0
Tags: php, websync