[PHP] unpack bug?

2009-01-15 Thread James Lucas
Hi, I have some code developed on a linux system with PHP 5.1.6, its using the PEAR Net_DNS class to send dns updates, part of this requires unpacking a binary string, an example is below. This works on PHP 5.1.6 but fails on 5.2.8, it appears that it may be in relation to the following chan

[PHP] Re: unpack bug?

2009-01-15 Thread James Lucas
Nathan Rixham wrote: it's the pack offset that's wrong; remove all together and you'll get the correct results: $d = unpack('nth/Ntl/nfudge/nmac_size', $data); Thanks, thought I had already tried that but obviously not. Cheers James -- PHP General Mailing List (http://www.php.net/) To unsub