GS>> It cannot do this since l (zval.value.lval) is signed. This also means
GS>> that other functions using using zendi_convert_to_long() are
GS>> busted: modulus and rest of the bitwise implementation.

Oh, that's an old weird story. In short, we have two contradicting
requirements:
1. We have 'long' type, which is signed long
2. We have requirement to support 32-bit values, such as IP addresses, and
bit-wise operations with them.

The result is that hack - otherwise (like, if we promoted this to floats,
as, for example, arythmetic operators do) you could not handle 32-bit
values in no way in the long.
-- 
Stanislav Malyshev, Zend Products Engineer
[EMAIL PROTECTED]  http://www.zend.com/ +972-3-6139665 ext.115



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to