From d228d0aa06de880fc50f748dc2cb66805892d9df Mon Sep 17 00:00:00 2001 From: haszi Date: Fri, 10 May 2024 15:42:08 +0200 Subject: [PATCH] [skip-revcheck] Convert info constant tables to variablelists (#3342) Convert XIncluded table to variablelist Co-authored-by: haszi --- install/ini.xml | 4 +- reference/info/constants.xml | 796 ++++++++++++++++++++--------------- 2 files changed, 453 insertions(+), 347 deletions(-) diff --git a/install/ini.xml b/install/ini.xml index 2e03c08e04..b0aa3100c1 100644 --- a/install/ini.xml +++ b/install/ini.xml @@ -261,9 +261,9 @@ $ PHP_INI_SCAN_DIR=/usr/local/etc/php.d: php - + -
+
diff --git a/reference/info/constants.xml b/reference/info/constants.xml index 639daa579f..c4f91758de 100644 --- a/reference/info/constants.xml +++ b/reference/info/constants.xml @@ -3,366 +3,472 @@ &reftitle.constants; &extension.constants.core; - - Pre-defined <function>phpcredits</function> constants - - - - &Constants; - Value - &Description; - - - - - CREDITS_GROUP - 1 - A list of the core developers - - - CREDITS_GENERAL - 2 - - General credits: Language design and concept, PHP - authors and SAPI module. - - - - CREDITS_SAPI - 4 - - A list of the server API modules for PHP, and their authors. - - - - CREDITS_MODULES - 8 - - A list of the extension modules for PHP, and their authors. - - - - CREDITS_DOCS - 16 - - The credits for the documentation team. - - - - CREDITS_FULLPAGE - 32 - - Usually used in combination with the other flags. Indicates - that a complete stand-alone HTML page needs to be - printed including the information indicated by the other - flags. - - - - CREDITS_QA - 64 - - The credits for the quality assurance team. - - - - CREDITS_ALL - -1 - - All the credits, equivalent to using: CREDITS_DOCS + - CREDITS_GENERAL + CREDITS_GROUP + CREDITS_MODULES + CREDITS_QA - CREDITS_FULLPAGE. It generates a complete stand-alone HTML - page with the appropriate tags. This is the default value. - - - - -
+ + Pre-defined <function xmlns="http://docbook.org/ns/docbook">phpcredits</function> constants + + + CREDITS_GROUP + (int) + + + + A list of the core developers + + + + + + CREDITS_GENERAL + (int) + + + + General credits: Language 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_FULLPAGE + (int) + + + + Usually used in combination with the other flags. Indicates + that a complete stand-alone HTML page 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, equivalent to using: CREDITS_DOCS + + CREDITS_GENERAL + CREDITS_GROUP + CREDITS_MODULES + CREDITS_QA + CREDITS_FULLPAGE. It generates a complete stand-alone HTML + page with the appropriate tags. This is the default value. + + + + - - <function>phpinfo</function> constants - - - - &Constants; - Value - &Description; - - - - - INFO_GENERAL - 1 - - The configuration line, &php.ini; location, build date, Web - Server, System and more. - - - - INFO_CREDITS - 2 - - PHP Credits. See also phpcredits. - - - - INFO_CONFIGURATION - 4 - - Current Local and Master values for PHP directives. See - also ini_get. - - - - INFO_MODULES - 8 - - Loaded modules and their respective settings. - - - - INFO_ENVIRONMENT - 16 - - Environment Variable information that's also available in - $_ENV. - - - - INFO_VARIABLES - 32 - - Shows all - predefined variables from EGPCS (Environment, GET, - POST, Cookie, Server). - - - - INFO_LICENSE - 64 - - PHP License information. See also the license faq. - - - - INFO_ALL - -1 - - Shows all of the above. This is the default value. - - - - -
+ + <function xmlns="http://docbook.org/ns/docbook">phpinfo</function> constants + + + INFO_GENERAL + (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_get. + + + + + + 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, GET, + POST, Cookie, 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. + + + + - + INI mode constants - - - - &Constants; - &Description; - - - - - - INI_USER - (int) - - - Entry can be set in user scripts (like with ini_set) - or in the Windows registry. - 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 - - - - -
+ + + INI_USER + (int) + + + + Entry can be set in user scripts (like with ini_set) + or in the Windows registry. + 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 constants, these values are used to set the assertion options in assert_options. - - <function>assert</function> constants - - - - &Constants; - INI Setting - &Description; - - - - - ASSERT_ACTIVE - assert.active - - Enable assert evaluation. - &warn.deprecated.feature-8-3-0; - - - - ASSERT_CALLBACK - assert.callback - - Callback to call on failed assertions. - &warn.deprecated.feature-8-3-0; - - - - ASSERT_BAIL - assert.bail - - Terminate execution on failed assertions. - &warn.deprecated.feature-8-3-0; - - - - ASSERT_EXCEPTION - assert.exception - - Issues a PHP warning for each failed assertion - &warn.deprecated.feature-8-3-0; - - - - ASSERT_WARNING - assert.warning - - Issues a PHP warning for each failed assertion - &warn.deprecated.feature-8-3-0; - - - - ASSERT_QUIET_EVAL - assert.quiet_eval - - Disable error_reporting during assertion expression evaluation. - &warn.feature.removed-8-0-0; - - - - -
+ + <function xmlns="http://docbook.org/ns/docbook">assert</function> constants + + + ASSERT_ACTIVE + (int) + + + + Enable assert evaluation. + &warn.deprecated.feature-8-3-0; + + + + + + ASSERT_CALLBACK + (int) + + + + Callback to call on failed assertions. + &warn.deprecated.feature-8-3-0; + + + + + + ASSERT_BAIL + (int) + + + + Terminate execution on failed assertions. + &warn.deprecated.feature-8-3-0; + + + + + + ASSERT_EXCEPTION + (int) + + + + Issues a PHP warning for each failed assertion + &warn.deprecated.feature-8-3-0; + + + + + + ASSERT_WARNING + (int) + + + + Issues a PHP warning for each failed assertion + &warn.deprecated.feature-8-3-0; + + + + + + ASSERT_QUIET_EVAL + (int) + + + + Disable error_reporting during assertion expression evaluation. + &warn.feature.removed-8-0-0; + + + + The following constants are only available if the host operating system is Windows, and can tell different versioning information so its possible to detect various features and make use of them. - + Windows specific constants - - - - Constant - Description - - - - - PHP_WINDOWS_VERSION_MAJOR - - The major version 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 - - The minor version 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 - The Windows build number (for example, Windows Vista with SP1 applied is build 6001) - - - PHP_WINDOWS_VERSION_PLATFORM - - 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 - - The major version of the service pack installed, this value is 0 - if no service pack is installed. For example, Windows XP with service pack 3 installed - will make this value 3. - - - - PHP_WINDOWS_VERSION_SP_MINOR - - The minor version of the service pack installed, this value is 0 - if no service pack is installed. - - - - PHP_WINDOWS_VERSION_SUITEMASK - - The suitemask is a bitmask that can tell if various features of Windows is installed, - see the table below for possible bitfield values. - - - - PHP_WINDOWS_VERSION_PRODUCTTYPE - - This contains the value used to determine the PHP_WINDOWS_NT_* - constants. This value may be one of the PHP_WINDOWS_NT_* constants - indicating the platform type. - - - - PHP_WINDOWS_NT_DOMAIN_CONTROLLER - This is a domain controller - - - PHP_WINDOWS_NT_SERVER - - 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_WORKSTATION - This is a workstation system (eg. Vista/XP/2000/NT4) - - - -
+ + + PHP_WINDOWS_VERSION_MAJOR + (int) + + + + The major version 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 version 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 version of the service pack installed, this value is 0 + if no service pack is installed. For example, Windows XP with service pack 3 installed + will make this value 3. + + + + + + PHP_WINDOWS_VERSION_SP_MINOR + (int) + + + + The minor version of the service pack installed, this value is 0 + if no service pack is installed. + + + + + + PHP_WINDOWS_VERSION_SUITEMASK + (int) + + + + The suitemask is a bitmask 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_* + constants. This value may be one of the PHP_WINDOWS_NT_* constants + 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_WORKSTATION + (int) + + + + This is a workstation system (eg. Vista/XP/2000/NT4) + + + + This table shows a list of features that can be checked for using the PHP_WINDOWS_VERSION_SUITEMASK bitmask.