Re: Constants

From: Date: Thu, 14 Feb 2002 07:07:56 +0000
Subject: Re: Constants
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-80034@lists.php.net to get a copy of this message
On Wed, 2002-02-13 at 17:22, 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 I've committed a list of (almost) all predefined constants and classes to the phpdoc cvs. There is a bit more work to be done before the list makes it into the online manual, but you can either check out phpdoc from cvs, or view it online here: http://cvs.php.net/co.php/phpdoc/en/appendices/predefined.xml?r=1.3 Warning: it's a long list. There are over a thousand predefined constants, all told. :) Comments welcome (from Evan and from anybody else reading this...) -- Torben Wilson <torben@php.net> http://www.thebuttlesschaps.com http://www.hybrid17.com http://www.inflatableeye.com +1.604.709.0506

« previous php.dev (#80034) next »