Re: [PHP-DEV] Zend engine bug From: Gavin Sherry (swm <email protected>)
Date: 09/06/01

On Thu, 6 Sep 2001, Stanislav Malyshev wrote:

> GS>> echo (2147483649 & 2147483649);
> GS>>
> GS>> echo (2147483649 % 5);
>
> If you want numbers longer than long, you should use GMP anyway (or should
> know what you are doing). That unsigned hack, IIRC, was made with the
> single purpose of enabling working with IPs, etc.
>

Shouldn't it generate an error, then, if it is being misused? Something
like 'Invalid operands to binary operation' a-la gcc (since it is a
double).

Gavin

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>