PHP 8.2.12 is an old release of PHP 8.2 series. Using the latest version PHP 8.2.24 is highly recommended.
PHP 8.2 continues to receive bug fixes and security fixes until 2024-12-31.
Downloads
Source Code
git clone https://github.com/php/php-src.git --depth 1 --branch php-8.2.12
./buildconf
), configuring the build ./configure
, and running make
.Detailed articles on how to compile PHP are available for Ubuntu/Debian based systems and Fedora/RHEL based systems.
Windows binaries
Docker/Podman Containers
docker pull php:8.2.12-cli-alpine
docker pull php:8.2.12-cli
docker pull php:8.2.12-fpm-alpine
docker pull php:8.2.12-apache
docker pull php:8.2.12-fpm
ChangeLog
Core
- Fixed bug GH-12207 (memory leak when class using trait with doc block).
- Fixed bug GH-12215 (Module entry being overwritten causes type errors in
ext/dom
). - Fixed bug GH-12273 (__builtin_cpu_init check).
- Fixed bug #80092 (ZTS + preload = segfault on shutdown).
CLI
- Ensure a single Date header is present.
CType
- Fixed bug GH-11997 (ctype_alnum 5 times slower in PHP 8.1 or greater).
DOM
- Restore old namespace reconciliation behaviour.
- Fixed bug GH-8996 (DOMNode serialization on PHP ^8.1).
Fileinfo
- Fixed bug GH-11891 (fileinfo returns text/xml for some svg files).
Filter
- Fix explicit FILTER_REQUIRE_SCALAR with FILTER_CALLBACK
Hash
- Fixed bug GH-12186 (segfault copying/cloning a finalized HashContext).
Intl
- Fixed bug GH-12243 (segfault on
IntlDateFormatter::construct
). - Fixed bug GH-12282 (
IntlDateFormatter::construct
should throw an exception on an invalid locale).
MySQLnd
- Fixed bug GH-12297 (PHP Startup: Invalid library (maybe not a PHP library) 'mysqlnd.so' in Unknown on line).
Opcache
- Fixed
opcache_invalidate()
on deleted file. - Fixed bug GH-12380 (JIT+private array property access inside closure accesses private property in child class).
PCRE
- Fixed bug GH-11956 (Backport upstream fix, PCRE regular expressions with JIT enabled gives different result).
SimpleXML
- Fixed bug GH-12170 (Can't use xpath with comments in SimpleXML).
- Fixed bug GH-12223 (Entity reference produces infinite loop in var_dump/print_r).
- Fixed bug GH-12167 (Unable to get processing instruction contents in SimpleXML).
- Fixed bug GH-12169 (Unable to get comment contents in SimpleXML).
Streams
- Fixed bug GH-12190 (binding ipv4 address with both address and port at 0).
XML
- Fix return type of stub of
xml_parse_into_struct()
. - Fix memory leak when calling
xml_parse_into_struct()
twice.
XSL
- Fix type error on
XSLTProcessor::transformToDoc
return value with SimpleXML.
Commit List
Anatol Belski
- NEWS: Added note about GH-11891 in a1225f35bb
- NEWS: Added note about GH-11891 in 1934da0a81
coppolafab
php_cli_server
: ensure single date header is present in f6ac08c6a3
David Carlier
- Fix GH-12243, segfault on
IntlDateFormatter::construct
with dateType set to UDAT_PATTERN but not timeType in 84c4336aa3 - Fix GH-12282:
IntlDateFormatter::construct
should throw an exception is the locale field has an invalid value in a80db7b52a - Fix GH-12190:
stream_context_create
with address and port at 0 in d65c80031a
divinity76
- support running testsuite with negative niceness in GH-11481
Dmitry Stogov
- Fixed GH-12262: Tracing JIT assertion crash when using phpstan in 54452b4811
- Fixed GH-12382: JIT Index invalid or out of range error in 5a8f96b0bb
- Fix incorrect trace type inference in 44a7016049
- Fix GH-12364: JIT leak in Symfony TranslationDebugCommandTest in GH-12394
- Fixed possible use-after-free in 2297e8c143
Florian Sowade
- Fix GH-12207 memory leak of doc blocks of static properties in 910f579f14
Ilija Tovilo
- Fix filter_var with callback and explicit REQUIRE_SCALAR in c2fb10d2d2
- Upgrade to macOS 12 in CI in 55ed7690f4
- Fix getpriority test with negative return value in 181598d403
- Fix
SKIPIF
jit test in 6e7e52de19 - Minimal backport of 098d9ca in 36a87e6d32
- Move Cirrus to nightly only, trigger on-demand in 92693a2286
Max Semenik
- Fix GH-12186: segfault copying/cloning a finalized HashContext in 10f5a06d3c
Mikhail Galanin
- Invalidate path even if the file was deleted in f4ab494906
Niels Dossche
- Fix GH-12170: Can't use xpath with comments in SimpleXML in 747335f100
- Fix GH-12192: SimpleXML infinite loop when getName() is called within foreach in 4d888cf53f
- Fix GH-12223: Entity reference produces infinite loop in var_dump/print_r in 39a9e561f9
- Fix GH-12208: SimpleXML infinite loop when a cast is used inside a foreach in 486276f0f9
- Fix GH-11956: PCRE regular expressions with JIT enabled gives different result in d61efdfe97
- Fix bug #55098: SimpleXML iteration produces infinite loop in 1a4e401bf0
- Fix GH-12215: Module entry being overwritten causes type errors in
ext/dom
(<= PHP 8.3) in da6097ffc8 - Fix return type of stub of
xml_parse_into_struct()
in b1d9a8d321 - Fix memory leak when calling
xml_parse_into_struct()
twice in 30f26b587a - Fix GH-12167 and GH-12169: Unable to get comment or processing instruction contents in SimpleXML in 82a84d0b7b
- Fix GH-12297: PHP Startup: Invalid library (maybe not a PHP library) 'mysqlnd.so' in Unknown on line in 14fc3d1566
- Fix GH-11997: ctype_alnum 5 times slower in PHP 8.1 or greater in 07811b6390
- Restore old namespace reconciliation behaviour in e127f87114
- Fix type error on
XSLTProcessor::transformToDoc
return value with SimpleXML in 2a7f23e9b9 - Fix GH-10008: Narrowing occurred during type inference of
ZEND_ADD_ARRAY_ELEMENT
in e72fc12058 - Revert "Fix GH-10008: Narrowing occurred during type inference of
ZEND_ADD_ARRAY_ELEMENT
" in 643c4ba417 - Apply SimpleXML iterator fixes only on master in b842ea4fa8
- Fix #80092: ZTS + preload = segfault on shutdown in bdc87b0f66
- Fix test under older CI configurations in b140f6e9f8
- Ignore optional warning output in test in 6cf76d552e
- Fix Windows CI in ae52f1958d
- Fix GH-12380: JIT+private array property access inside closure accesses private property in child class in fb6838770c
- Fix GH-8996: DOMNode serialization on PHP ^8.1 in 24e5e4ec0d
Pierrick Charron
- Prepare PHP 8.2.12 in c9c9815a08
Thomas Hurst
- Fix GH-12273 - configure __builtin_cpu_init() check in d93800ec0f
Tim Düsterhus
- Update GitHub Action workflows to
actions/checkout@v4
in 45e60e585e
twosee
- Fix
socket_export_stream()
with wrong protocol in b5da98b972
usarise
- fileinfo: Backport svg detection patch in 1f5bea3452