Re: Zend engine bug

From: Date: Thu, 06 Sep 2001 11:39:27 +0000
Subject: Re: Zend engine bug
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-65237@lists.php.net to get a copy of this message
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



Thread (8 messages)

« previous php.dev (#65237) next »