I think it's 2^31 because that's 2147483648, the largest value available 
for a long signed int in ANSI C.I t's also the value of RAND_MAX in 
stdlib.h on many systems. (It is on my system at any rate, linux using 
glibc.)

J



Evan Nemerson wrote:

> I was thinking about putting together a list of constants, their purpose,
> what version of PHP they initially appeared in, etc.
> 
> So far, I have figured out a function called "REGISTER_LONG_CONSTANT" is
> used, or a constant is defined in the source with a name that has a
> preceeding "PHP_" (eg "PHP_RAND_MAX"- which is 2^31??? why not 2^32? sorry
> off the point.) Are there any other ways? Are these ways inaccurate?
> 
> Please reply to my e-mail address ([EMAIL PROTECTED]). I don't
> subscribe to this list.
> 
> 
> Evan Nemerson


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to