Skip to content

Commit c966868

Browse files
committed
Announce PHP 8.2.0
1 parent 2f88bae commit c966868

File tree

5 files changed

+166
-1
lines changed

5 files changed

+166
-1
lines changed

ChangeLog-8.php

+82-1
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,90 @@
33
include_once __DIR__ . '/include/prepend.inc';
44
include_once __DIR__ . '/include/changelogs.inc';
55

6-
$MINOR_VERSIONS = ['8.1', '8.0'];
6+
$MINOR_VERSIONS = ['8.2', '8.1', '8.0'];
77
changelog_header(8, $MINOR_VERSIONS);
88
?>
9+
<a id="PHP_8_2"></a>
10+
11+
<section class="version" id="8.2.0"><!-- {{{ 8.2.0 -->
12+
<h3>Version 8.2.0</h3>
13+
<b><?php release_date('08-Dec-2022'); ?></b>
14+
<ul><li>CLI:
15+
<ul>
16+
<li><?php bugfix(81496); ?> (Server logs incorrect request method).</li>
17+
<li>Updated the mime-type table for the builtin-server.</li>
18+
<li>Fixed potential overflow for the builtin server via the PHP_CLI_SERVER_WORKERS environment variable.</li>
19+
<li>Fixed <?php githubissuel('php/php-src', 8575); ?> by changing STDOUT, STDERR and STDIN to not close on resource destruction.</li>
20+
<li>Implement built-in web server responding without body to HEAD request on a static resource.</li>
21+
<li>Implement built-in web server responding with HTTP status 405 to DELETE/PUT/PATCH request on a static resource.</li>
22+
<li>Fixed bug <?php githubissuel('php/php-src', 9709); ?> (Null pointer dereference with -w/-s options).</li>
23+
</ul></li>
24+
<li>COM:
25+
<ul>
26+
<li>Fixed bug <?php githubissuel('php/php-src', 8750); ?> (Can not create VT_ERROR variant type).</li>
27+
</ul></li>
28+
<li>Core:
29+
<ul>
30+
<li><?php bugfix(81380); ?> (Observer may not be initialized properly).</li>
31+
<li>Fixed bug <?php githubissuel('php/php-src', 7771); ?> (Fix filename/lineno of constant expressions).</li>
32+
<li>Fixed bug <?php githubissuel('php/php-src', 7792); ?> (Improve class type in error messages).</li>
33+
<li>Support huge pages on MacOS.</li>
34+
<li>Fixed bug <?php githubissuel('php/php-src', 8655); ?> (Casting an object to array does not unwrap refcount=1 references).</li>
35+
<li>Fixed bug <?php githubissuel('php/php-src', 8661); ?> (Nullsafe in coalesce triggers undefined variable warning).</li>
36+
<li>Fixed bug <?php githubissuel('php/php-src', 7821); ?> and <?php githubissuel('php/php-src', 8418); ?> (Allow arbitrary const expressions in backed enums).</li>
37+
<li>Fixed bug <?php githubissuel('php/php-src', 8810); ?> (Incorrect lineno in backtrace of multi-line function calls).</li>
38+
<li>Optimised code path for newly created file with the stream plain wrapper.</li>
39+
<li>Uses safe_perealloc instead of perealloc for the ZEND_PTR_STACK_RESIZE_IF_NEEDED to avoid possible overflows.</li>
40+
<li>Reduced the memory footprint of strings returned by var_export(), json_encode(), serialize(), iconv_*(), mb_ereg*(), session_create_id(), http_build_query(), strstr(), Reflection*::__toString().</li>
41+
<li>Fixed bug <?php githubissuel('php/php-src', 8995); ?> (WeakMap object reference offset causing TypeError).</li>
42+
<li>Added error_log_mode ini setting.</li>
43+
<li>Updated request startup messages.</li>
44+
<li>Fixed bug <?php githubissuel('php/php-src', 7900); ?> (Arrow function with never return type compile-time errors).</li>
45+
<li>Fixed incorrect double to long casting in latest clang.</li>
46+
<li>Added support for defining constants in traits.</li>
47+
<li>Stop incorrectly emitting false positive deprecation notice alongside unsupported syntax fatal error for `"{$g{'h'}}"`.</li>
48+
<li>Fix unexpected deprecated dynamic property warning, which occurred when exit() in finally block after an exception was thrown without catching.</li>
49+
<li>Fixed bug <?php githubissuel('php/php-src', 9323); ?> (Crash in ZEND_RETURN/GC/zend_call_function) (Tim Starling)</li>
50+
<li>Fixed bug <?php githubissuel('php/php-src', 9227); ?> (Trailing dots and spaces in filenames are ignored).</li>
51+
<li>Fixed bug <?php githubissuel('php/php-src', 9285); ?> (Traits cannot be used in readonly classes).</li>
52+
<li>Fixed bug <?php githubissuel('php/php-src', 9186); ?> (@strict-properties can be bypassed using unserialization).</li>
53+
<li>Fixed bug <?php githubissuel('php/php-src', 9500); ?> (Using dnf type with parentheses after readonly keyword results in a parse error).</li>
54+
<li>Fixed bug <?php githubissuel('php/php-src', 9516); ?> ((A&amp;B)|D as a param should allow AB or D. Not just A).</li>
55+
<li>Fixed observer class notify with Opcache file_cache_only=1.</li>
56+
<li>Fixes segfault with Fiber on FreeBSD i386 architecture.</li>
57+
<li>Fixed bug <?php githubissuel('php/php-src', 9655); ?> (Pure intersection types cannot be implicitly nullable) (Girgias)</li>
58+
<li>Fixed bug <?php githubissuel('php/php-src', 9589); ?> (dl() segfaults when module is already loaded).</li>
59+
<li>Fixed bug <?php githubissuel('php/php-src', 9752); ?> (Generator crashes when interrupted during argument evaluation with extra named params).</li>
60+
<li>Fixed bug <?php githubissuel('php/php-src', 9801); ?> (Generator crashes when memory limit is exceeded during initialization).</li>
61+
<li>Fixed a bug with preloaded enums possibly segfaulting.</li>
62+
<li>Fixed bug <?php githubissuel('php/php-src', 9823); ?> (Don’t reset func in zend_closure_internal_handler).</li>
63+
<li>Fixed potential NULL pointer dereference Windows shm*() functions.</li>
64+
<li>Fix target validation for internal attributes with constructor property promotion.</li>
65+
<li>Fixed bug <?php githubissuel('php/php-src', 9750); ?> (Generator memory leak when interrupted during argument evaluation.</li>
66+
<li>Move observer_declared_function_notify until after pass_two().</li>
67+
<li>Do not report MINIT stage internal class aliases in extensions.</li>
68+
</ul></li>
69+
<li>Curl:
70+
<ul>
71+
<li>Added support for CURLOPT_XFERINFOFUNCTION.</li>
72+
<li>Added support for CURLOPT_MAXFILESIZE_LARGE.</li>
73+
<li>Added new constants from cURL 7.62 to 7.80.</li>
74+
<li>New function curl_upkeep().</li>
75+
</ul></li>
76+
<li>Date:
77+
<ul>
78+
<li>Fixed <?php githubissuel('php/php-src', 8458); ?> (DateInterval::createFromDateString does not throw if non-relative items are present).</li>
79+
<li><?php bugfix(52015); ?> (Allow including end date in DatePeriod iterations) (Daniel Egeberg, Derick)</li>
80+
<li>idate() now accepts format specifiers "N" (ISO Day-of-Week) and "o" (ISO Year).</li>
81+
<li>Fixed bug <?php githubissuel('php/php-src', 8730); ?> (DateTime::diff miscalculation is same time zone of different type).</li>
82+
<li>Fixed bug <?php githubissuel('php/php-src', 8964); ?> (DateTime object comparison after applying delta less than 1 second).</li>
83+
<li>Fixed bug <?php githubissuel('php/php-src', 9106); ?>: (DateInterval 1.5s added to DateTimeInterface is rounded</li>
84+
</ul></li>
85+
</ul>
86+
<!-- }}} --></section>
87+
88+
89+
990
<a id="PHP_8_1"></a>
1091

1192
<section class="version" id="8.1.13"><!-- {{{ 8.1.13 -->

archive/archive.xml

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<uri>http://php.net/contact</uri>
1010
<email>[email protected]</email>
1111
</author>
12+
<xi:include href="entries/2022-12-08-1.xml"/>
1213
<xi:include href="entries/2022-12-06-1.xml"/>
1314
<xi:include href="entries/2022-11-26-1.xml"/>
1415
<xi:include href="entries/2022-11-24-2.xml"/>

archive/entries/2022-12-08-1.xml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<entry xmlns="http://www.w3.org/2005/Atom">
3+
<title>PHP 8.2.0 Released!</title>
4+
<id>https://www.php.net/archive/2022.php#2022-12-08-1</id>
5+
<published>2022-12-08T06:26:27+00:00</published>
6+
<updated>2022-12-08T06:26:27+00:00</updated>
7+
<link href="https://www.php.net/index.php#2022-12-08-1" rel="alternate" type="text/html"/>
8+
<link href="https://www.php.net/archive/2022.php#2022-12-08-1" rel="via" type="text/html"/>
9+
<category term="releases" label="New PHP release"/>
10+
<category term="frontpage" label="PHP.net frontpage news"/>
11+
<content type="xhtml">
12+
<div xmlns="http://www.w3.org/1999/xhtml">
13+
<p>The PHP development team announces the immediate availability of PHP 8.2.0. This release marks the latest minor release of the PHP language.</p>
14+
<p>PHP 8.2 comes with numerous improvements and new features such as:</p>
15+
<ul>
16+
<li><a href="https://www.php.net/manual/en/language.oop5.basic.php#language.oop5.basic.class.readonly">Readonly classes</a></li>
17+
<li><a href="https://www.php.net/manual/en/migration82.new-features.php#migration82.new-features.core.type-system">Disjunctive Normal Form (DNF) Types</a></li>
18+
<li>New stand-alone types: <a href="https://wiki.php.net/rfc/null-false-standalone-types">null, false</a>, and <a href="https://wiki.php.net/rfc/true-type">true</a></li>
19+
<li><a href="https://www.php.net/manual/en/book.random.php">New "Random" extension</a></li>
20+
<li><a href="https://www.php.net/manual/en/migration82.new-features.php#migration82.new-features.core.constant-in-traits">Constants in traits</a></li>
21+
<li><a href="https://www.php.net/manual/en/migration82.deprecated.php#migration82.deprecated.core.dynamic-properties">Deprecate dynamic properties</a></li>
22+
<li>And much much more...</li>
23+
</ul>
24+
<p>
25+
For source downloads of PHP 8.2.0 please visit our <a href="https://www.php.net/downloads.php">downloads page</a>,
26+
Windows source and binaries can be found on <a href="https://windows.php.net/download/">windows.php.net/download/</a>.
27+
The list of changes is recorded in the <a href="https://www.php.net/ChangeLog-8.php#8.2.0">ChangeLog</a>.
28+
</p>
29+
<p>
30+
The <a href="https://php.net/manual/en/migration82.php">migration guide</a> is available in the PHP Manual.
31+
Please consult it for the detailed list of new features and backward incompatible changes.
32+
</p>
33+
<p>Kudos to all the contributors and supporters!</p>
34+
</div>
35+
</content>
36+
</entry>

include/version.inc

+12
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,18 @@
1818
$RELEASES = (function () {
1919
$data = [];
2020

21+
/* PHP 8.2 Release */
22+
$data['8.2'] = [
23+
'version' => '8.2.0',
24+
'date' => '08 Dec 2021',
25+
'tags' => [], // Set to ['security'] for security releases.
26+
'sha256' => [
27+
'tar.gz' => '435c4c2439db648cdf34236f7cd459f93f943fb788b66723a033610d4a059fc6',
28+
'tar.bz2' => '1bf4fca663f93d9e0b4909bd6eae0583a1ce383e7f05df126f28f272fa1fd51a',
29+
'tar.xz' => '6ea4c2dfb532950fd712aa2a08c1412a6a81cd1334dd0b0bf88a8e44c2b3a943',
30+
]
31+
];
32+
2133
/* PHP 8.1 Release */
2234
$data['8.1'] = [
2335
'version' => '8.1.13',

releases/8_2_0.php

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<?php
2+
$_SERVER['BASE_PAGE'] = 'releases/8_2_0.php';
3+
include_once __DIR__ . '/../include/prepend.inc';
4+
site_header('PHP 8.2.0 Release Announcement');
5+
?>
6+
<h1>PHP 8.2.0 Release Announcement</h1>
7+
8+
<p>The PHP development team announces the immediate availability of PHP 8.2.0. This release marks the latest minor release of the PHP language.</p>
9+
10+
<p>PHP 8.2 comes with numerous improvements and new features such as:</p>
11+
12+
<ul>
13+
<li><a href="https://www.php.net/manual/en/language.oop5.basic.php#language.oop5.basic.class.readonly">Readonly classes</a></li>
14+
<li><a href="https://www.php.net/manual/en/migration82.new-features.php#migration82.new-features.core.type-system">Disjunctive Normal Form (DNF) Types</a></li>
15+
<li>New stand-alone types: <a href="https://wiki.php.net/rfc/null-false-standalone-types">null, false</a>, and <a href="https://wiki.php.net/rfc/true-type">true</a></li>
16+
<li><a href="https://www.php.net/manual/en/book.random.php">New "Random" extension</a></li>
17+
<li><a href="https://www.php.net/manual/en/migration82.new-features.php#migration82.new-features.core.constant-in-traits">Constants in traits</a></li>
18+
<li><a href="https://www.php.net/manual/en/migration82.deprecated.php#migration82.deprecated.core.dynamic-properties">Deprecate dynamic properties</a></li>
19+
<li>And much much more...</li>
20+
</ul>
21+
22+
<p>
23+
For source downloads of PHP 8.2.0 please visit our <a href="https://www.php.net/downloads.php">downloads page</a>,
24+
Windows source and binaries can be found on <a href="https://windows.php.net/download/">windows.php.net/download/</a>.
25+
The list of changes is recorded in the <a href="https://www.php.net/ChangeLog-8.php#8.2.0">ChangeLog</a>.
26+
</p>
27+
28+
<p>
29+
The <a href="https://php.net/manual/en/migration82.php">migration guide</a> is available in the PHP Manual.
30+
Please consult it for the detailed list of new features and backward incompatible changes.
31+
</p>
32+
33+
<p>Kudos to all the contributors and supporters!</p>
34+
35+
<?php site_footer();

0 commit comments

Comments
 (0)