diff --git a/appendices/configure/servers.xml b/appendices/configure/servers.xml index e0fa3c67d3..cac0e0148f 100644 --- a/appendices/configure/servers.xml +++ b/appendices/configure/servers.xml @@ -73,7 +73,7 @@ - Enable phpdbg interactive debugger SAPI module support in PHP 5.6.x or later. + Enable phpdbg interactive debugger SAPI module support. @@ -112,100 +112,11 @@ Disable building CGI version of PHP. - As of PHP 5.3.0 this argument enables FastCGI which previously - had to be enabled using --enable-fastcgi. + This argument also enables FastCGI. - - - - - - - Enable the security check for internal server redirects. You should use - this if you are running the CGI version with Apache. - - - As of PHP 5.3.0 this argument is enabled by default and no longer - exists. To disable this, the - cgi.force_redirect ini directive - should be set to 0. - - - - - - - - - - - If this is enabled, the PHP CGI binary can safely be placed outside of - the web tree and people will not be able to circumvent &htaccess; - security. - - - As of PHP 5.3.0 this argument is disabled by default and no longer - exists. To enable this feature the cgi.discard_path ini directive - must be set to 1. - - - - - - - - - - - - - If this is enabled, the CGI module will be built with support for FastCGI - also. - - - As of PHP 5.3.0 this argument no longer exists and is enabled by - --enable-cgi instead. - - - - - - - - - - - If this is disabled, paths such as /info.php/test?a=b - will fail to work. For more information see the - Apache Manual. - - - As of PHP 5.3.0 this argument is enabled by default and no longer exists. - To disable this feature the cgi.fix_pathinfo ini directive must - be set to 0. - - - diff --git a/appendices/ini.core.xml b/appendices/ini.core.xml index 9aabc47620..28a4e3b977 100644 --- a/appendices/ini.core.xml +++ b/appendices/ini.core.xml @@ -564,7 +564,7 @@ Fatal error: Maximum execution time of 30+2 seconds exceeded (terminated) in Unk enable_post_data_reading "1" PHP_INI_PERDIR - Available as of PHP 5.4.0 + post_max_size @@ -1643,7 +1643,7 @@ include_path = ".:${USER}/pear/php" The maximum number of files allowed to be uploaded simultaneously. - Starting with PHP 5.3.4, upload fields left blank on submission do not + Upload fields left blank on submission do not count towards this limit. diff --git a/appendices/reserved.xml b/appendices/reserved.xml index 94a2201c9b..3e3347fe56 100644 --- a/appendices/reserved.xml +++ b/appendices/reserved.xml @@ -16,12 +16,9 @@ These words have special meaning in PHP. Some of them represent things which look like functions, some look like constants, and so on - but - they're not, really: they are language constructs. You cannot use any - of the following words as constants, class names, function or method names. - Using them as variable names is generally OK, but could lead to confusion. - - - As of PHP 7.0.0 these keywords are allowed as property, constant, and + they're not, really: they are language constructs. + The following words cannot be used as constants, class names, function or method names. + They are, however, allowed as property, constant, and method names of classes, interfaces and traits, except that class may not be used as constant name. @@ -52,7 +49,7 @@ break - callable (as of PHP 5.4) + callable case @@ -137,7 +134,7 @@ final - finally (as of PHP 5.5) + finally fn (as of PHP 7.4) @@ -157,7 +154,7 @@ global - goto (as of PHP 5.3) + goto if @@ -177,7 +174,7 @@ instanceof - insteadof (as of PHP 5.4) + insteadof interface @@ -194,7 +191,7 @@ match (as of PHP 8.0) - namespace (as of PHP 5.3) + namespace new @@ -239,7 +236,7 @@ throw - trait (as of PHP 5.4) + trait try @@ -262,10 +259,10 @@ xor - yield (as of PHP 5.5) + yield - yield from (as of PHP 7.0) + yield from @@ -281,7 +278,7 @@ __CLASS__ - __DIR__ (as of PHP 5.3) + __DIR__ __FILE__ @@ -298,10 +295,10 @@ - __NAMESPACE__ (as of PHP 5.3) + __NAMESPACE__ - __TRAIT__ (as of PHP 5.4) + __TRAIT__ @@ -358,18 +355,6 @@ - - - - - Predefined classes as of PHP 5 - - - These additional predefined classes were introduced in - PHP 5.0.0. - - - Exception @@ -392,46 +377,26 @@ - - - - - Closure - - - The predefined final class Closure was introduced - in PHP 5.3.0. It is used for representing anonymous functions. - - - For more information, see its class - page. - - - - - Generator - - - The predefined final class Generator was introduced - in PHP 5.5.0. It is used for representing generators. - - - For more information, see its class - page. - - - - - Predefined interfaces and classes as of PHP 7 - - - These additional predefined interfaces and classes were introduced in - PHP 7.0.0. - - - + + Closure + + + The predefined final class Closure + is used for representing anonymous functions. + + + + + Generator + + + The predefined final class Generator + is used for representing generators. + + + ArithmeticError @@ -538,27 +503,27 @@ - int (as of PHP 7) + int - float (as of PHP 7) + float - bool (as of PHP 7) + bool - string (as of PHP 7) + string - true (as of PHP 7) + true - false (as of PHP 7) + false - null (as of PHP 7) + null void (as of PHP 7.1) @@ -589,13 +554,13 @@ - resource (as of PHP 7) + resource - mixed (as of PHP 7) + mixed - numeric (as of PHP 7) + numeric diff --git a/appendices/tokens.xml b/appendices/tokens.xml index a6f0e15e1e..bce02ddd17 100644 --- a/appendices/tokens.xml +++ b/appendices/tokens.xml @@ -19,10 +19,8 @@ T_* constants values are automatically generated based on PHP's underlying parser infrastructure. This means that the concrete value of a token may change between two PHP - versions. For example the T_FILE constant is - 365 in PHP 5.3, while the same value refers now to - T_TRAIT in PHP 5.4 and the value of T_FILE - is 369. This means that your code should never rely directly + versions. + This means that your code should never rely directly on the original T_* values taken from PHP version X.Y.Z, to provide some compatibility across multiple PHP versions. diff --git a/security/cgi-bin.xml b/security/cgi-bin.xml index a940e74dc2..4050d59940 100644 --- a/security/cgi-bin.xml +++ b/security/cgi-bin.xml @@ -84,9 +84,9 @@ these configuration options. If your web server does not allow you to do redirects, or the server does not have a way to communicate to the PHP binary that the request is a safely - redirected request, you can specify the option --enable-force-cgi-redirect - to the configure script. You still have to make sure your PHP + redirected request, you can enable the + cgi.force_redirect + ini directive. You still have to make sure your PHP scripts do not rely on one or another way of calling the script, neither by directly http://my.host/cgi-bin/php/dir/script.php @@ -216,9 +216,8 @@ AddHandler php-script .php To get PHP to handle PATH_INFO and PATH_TRANSLATED information correctly with this - setup, the PHP parser should be compiled with the --enable-discard-path - configure option. + setup, the cgi.discard_path + ini directive has to be enabled.