PHP 5.6.40 came out on 10 January 2019. Below is the full list of changes it made, grouped by the part of PHP that each one affects.
The changes are listed in English, exactly as the PHP developers wrote them (12 in total).
GD
Fixed bug #77269 (efree() on uninitialized Heap data in imagescale leads to use-after-free). (cmb) Fixed bug #77270 (imagecolormatch Out Of Bounds Write on Heap). (cmb)
Mbstring
Fixed bug #77370 (Buffer overflow on mb regex functions - fetch_token). (Stas) Fixed bug #77371 (heap buffer overflow in mb regex functions - compile_string_node). (Stas) Fixed bug #77381 (heap buffer overflow in multibyte match_at). (Stas) Fixed bug #77382 (heap buffer overflow due to incorrect length in expand_case_fold_string). (Stas) Fixed bug #77385 (buffer overflow in fetch_token). (Stas) Fixed bug #77394 (Buffer overflow in multibyte case folding - unicode). (Stas) Fixed bug #77418 (Heap overflow in utf32be_mbc_to_code). (Stas)
Phar
Fixed bug #77247 (heap buffer overflow in phar_detect_phar_fname_ext). (Stas)
Xmlrpc
Fixed bug #77242 (heap out of bounds read in xmlrpc_decode()). (cmb) Fixed bug #77380 (Global out of bounds read in xmlrpc base64 code). (Stas)
← Previous release: PHP 5.6.39
This list comes from the NEWS file that the PHP developers keep with the PHP source code, and the same list is also published on php.net .
Related articles
Useful articles to help you determine if you need to upgrade your server's PHP version and how to go about doing so.
Read more →
If you don't want to use our tool or have already tried what follows is a list of three simple tests you can perform to determine your PHP version.We have listed them in order of complexity, starting with the easiest.
Read more →
← Back to Guide Index
Article last updated: 21st October, 2026