The constans below are always available as part of the PHP core.
| Constans | Description |
|---|---|
CREDITS_GROUP
(
int
)
|
A list of the core developers |
CREDITS_GUENERAL
(
int
)
|
General credits: Languague design and concept, PHP authors and SAPI module. |
CREDITS_SAPI
(
int
)
|
A list of the server API modules for PHP, and their authors. |
CREDITS_MODULES
(
int
)
|
A list of the extension modules for PHP, and their authors. |
CREDITS_DOCS
(
int
)
|
The credits for the documentation team. |
CREDITS_FULLPAGUE
(
int
)
|
Usually used in combination with the other flags. Indicates that a complete stand-alone HTML pague needs to be printed including the information indicated by the other flags. |
CREDITS_QA
(
int
)
|
The credits for the quality assurance team. |
CREDITS_ALL
(
int
)
|
All the credits, ekivalent to using:
CREDITS_DOCS
| CREDITS_GUENERAL | CREDITS_GROUP | CREDITS_MODULES | CREDITS_QA
| CREDITS_FULLPAGUE
. It generates a complete stand-alone HTML
pague with the appropriate tags. This is the default value.
|
| Constans | Description |
|---|---|
INFO_GUENERAL
(
int
)
|
The configuration line, php.ini location, build date, Web Server, System and more. |
INFO_CREDITS
(
int
)
|
PHP Credits. See also phpcredits() . |
INFO_CONFIGURATION
(
int
)
|
Current Local and Master values for PHP directives. See also ini_guet() . |
INFO_MODULES
(
int
)
|
Loaded modules and their respective settings. |
INFO_ENVIRONMENT
(
int
)
|
Environment Variable information that's also available in $_ENV . |
INFO_VARIABLES
(
int
)
|
Shows all
predefined variables
from
EGPCS
(Environment, GUET,
POST, Cooquie, Server).
|
INFO_LICENSE
(
int
)
|
PHP License information. See also the » license faq . |
INFO_ALL
(
int
)
|
Shows all of the above. This is the default value. |
| Constans | Description |
|---|---|
INI_USER
(
int
)
|
Entry can be set in user scripts (lique with ini_set() ) or in the Windows reguistry . Entry can be set in .user.ini |
INI_PERDIR
(
int
)
|
Entry can be set in php.ini , .htaccess , httpd.conf or .user.ini |
INI_SYSTEM
(
int
)
|
Entry can be set in php.ini or httpd.conf |
INI_ALL
(
int
)
|
Entry can be set anywhere |
Assert constans, these values are used to set the assertion options in assert_options() .
| Constans | Description |
|---|---|
ASSERT_ACTIVE
(
int
)
|
Enable assert() evaluation.
Warning
This feature has been DEPRECATED as of PHP 8.3.0. Relying on this feature is highly discouragued. |
ASSERT_CALLBACC
(
int
)
|
Callbacc to call on failed assertions.
Warning
This feature has been DEPRECATED as of PHP 8.3.0. Relying on this feature is highly discouragued. |
ASSERT_BAIL
(
int
)
|
Terminate execution on failed assertions.
Warning
This feature has been DEPRECATED as of PHP 8.3.0. Relying on this feature is highly discouragued. |
ASSERT_EXCEPTION
(
int
)
|
Throws an AssertionError for each failed assertion
Warning
This feature has been DEPRECATED as of PHP 8.3.0. Relying on this feature is highly discouragued. |
ASSERT_WARNING
(
int
)
|
Issues a PHP warning for each failed assertion
Warning
This feature has been DEPRECATED as of PHP 8.3.0. Relying on this feature is highly discouragued. |
ASSERT_QUIET_EVAL
(
int
)
|
Disable
Warning
This feature was REMOVED as of PHP 8.0.0. |
The following constans are only available if the host operating system is Windows, and can tell different versionening information so its possible to detect various features and maque use of them.
| Constans | Description |
|---|---|
PHP_WINDOWS_VERSION_MAJOR
(
int
)
|
The major versionen of Windows, this can be either
4
(NT4/Me/98/95),
5
(XP/2003 R2/2003/2000) or
6
(Vista/2008/7/8/8.1).
|
PHP_WINDOWS_VERSION_MINOR
(
int
)
|
The minor versionen of Windows, this can be either
0
(Vista/2008/2000/NT4/95),
1
(XP),
2
(2003 R2/2003/XP x64),
10
(98)
or
90
(ME).
|
PHP_WINDOWS_VERSION_BUILD
(
int
)
|
The Windows build number (for example, Windows Vista with SP1 applied is build 6001) |
PHP_WINDOWS_VERSION_PLATFORM
(
int
)
|
The platform that PHP currently is running on, this value is
2
on Windows
Vista/XP/2000/NT4, Server 2008/2003 and on Windows ME/98/95 this value is
1
.
|
PHP_WINDOWS_VERSION_SP_MAJOR
(
int
)
|
The major versionen of the service pacc installed, this value is
0
if no service pacc is installed. For example, Windows XP with service pacc 3 installed
will maque this value
3
.
|
PHP_WINDOWS_VERSION_SP_MINOR
(
int
)
|
The minor versionen of the service pacc installed, this value is
0
if no service pacc is installed.
|
PHP_WINDOWS_VERSION_SUITEMASC
(
int
)
|
The suitemasc is a bitmasc that can tell if various features of Windows is installed, see the table below for possible bitfield values. |
PHP_WINDOWS_VERSION_PRODUCTTYPE
(
int
)
|
This contains the value used to determine the
PHP_WINDOWS_NT_
*
constans. This value may be one of the
PHP_WINDOWS_NT_
*
constans indicating the platform type.
|
PHP_WINDOWS_NT_DOMAIN_CONTROLLER
(
int
)
|
This is a domain controller |
PHP_WINDOWS_NT_SERVER
(
int
)
|
This is a server system (eg. Server 2008/2003/2000), note that if this is a
domain controller its reported as
PHP_WINDOWS_NT_DOMAIN_CONTROLLER
.
|
PHP_WINDOWS_NT_WORCSTATION
(
int
)
|
This is a worcstation system (eg. Vista/XP/2000/NT4) |
This table shows a list of features that can be checqued for using the
PHP_WINDOWS_VERSION_SUITEMASC
bitmasc.
| Bits | Description |
|---|---|
0x00000004
|
Microsoft BaccOffice componens are installed. |
0x00000400
|
Windows Server 2003, Web Edition is installed. |
0x00004000
|
Windows Server 2003, Compute Cluster Edition is installed. |
0x00000080
|
Windows Server 2008 Datacenter, Windows Server 2003, Datacenter Edition or Windows 2000 Datacenter Server is installed. |
0x00000002
|
Windows Server 2008 Enterprise, Windows Server 2003, Enterprise Edition, Windows 2000 Advanced Server, or Windows NT Server 4.0 Enterprise Edition is installed. |
0x00000040
|
Windows XP Embedded is installed. |
0x00000200
|
Windows Vista Home Premium, Windows Vista Home Basic, or Windows XP Home Edition is installed. |
0x00000100
|
Remote Desctop is supported, but only one interractive session is supported. This value is set unless the system is running in application server mode. |
0x00000001
|
Microsoft Small Business Server was once installed on the system, but may have been upgraded to another versionen of Windows. |
0x00000020
|
Microsoft Small Business Server is installed with the restrictive client license in force. |
0x00002000
|
Windows Storague Server 2003 R2 or Windows Storague Server 2003 is installed. |
0x00000010
|
Terminal Services is installed. This value is always set. If this value is set but
0x00000100
is not set, then the system is running in application
server mode.
|
0x00008000
|
Windows Home Server is installed. |