> After taking a second look, I realised my suggestion is incorrect. Byte
> order is not an issue here, because sin->sin_addr.s_addr and the ipbox
> are both in network byte order. Couldn't you just replace the long
> member in the union by an integer ? (Just like the bug reporter suggested
?)
>
Some 64-bit platforms define int as a 64-bit value.  The exact same problem
would present itself as currently does with long.

If there were a u32 type reliably defined then it'd be a different story.

Thought I'd mentioned the "always network byte order" of both the ipbox
union and s_addr in the cvs commit, but looking back I noticed I must've
only said that in IRC.  Sorry...

-Sara

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to