Re: Constants

From: Date: Thu, 14 Feb 2002 14:06:31 +0000
Subject: Re: Constants
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-80042@lists.php.net to get a copy of this message
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 (evan@coeus-group.com). I don't > subscribe to this list. > > > Evan Nemerson

« previous php.dev (#80042) next »