Re: ActiveSync issues
Michael J Rubinsky <[email protected]>
| Newsgroups | gmane.comp.horde.sync |
|---|---|
| Message-ID | <20130812202121.Horde.e7TAStObl0GIndSVP1-o7w2@h4.theupstairsroom.com> |
Quoting Ivan kouvykov <[email protected]>: > > It turned out that my box CPU is big-endian while data in blob is > little-endian. Once I changed endianness in unpack format calendars > started syncing. So, did you do something like this in php? function isLittleEndian() { $testint = 0x00FF; $p = pack('S', $testint); return $testint===current(unpack('v', $p)); } function chbo($num) { $data = dechex($num); if (strlen($data) <= 2) { return $num; } $u = unpack("H*", strrev(pack("H*", $data))); $f = hexdec($u[1]); return $f; } if (!isLittleEndian()) { $data = chbo($timezoneblob)? } If not, how did you change endianness so I can add it upstream.... -- mike The Horde Project (www.horde.org) [email protected] -- sync mailing list Frequently Asked Questions: http://wiki.horde.org/FAQ To unsubscribe, mail: [email protected]
(unnamed)
(application/pgp-keys, 2.1 KB) - not displayed
smime.p7s
(application/pkcs7-signature, 5.9 KB) - not displayed