PHP 5.4.40 came out on 16 April 2015. 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 (14 in total).
Apache2handler
Fixed bug #69218 (potential remote code execution with apache 2.4 apache2handler). (CVE-2015-3330 ) (Gerrit Venema)
Core
Additional fix for bug #69152 (Type confusion vulnerability in exception::getTraceAsString). (Stas) Fixed bug #69337 (php_stream_url_wrap_http_ex() type-confusion vulnerability). (Stas) Fixed bug #69353 (Missing null byte checks for paths in various PHP extensions). (Stas)
cURL
Fixed bug #69316 (Use-after-free in php_curl related to CURLOPT_FILE/_INFILE/_WRITEHEADER). (Laruence)
Ereg
Fixed bug #68740 (NULL Pointer Dereference). (Laruence)
Fileinfo
Fixed bug #68819 (Fileinfo on specific file causes spurious OOM and/or segfault). (Anatol Belski)
SOAP
Fixed bug #69152 (Type Confusion Infoleak Vulnerability in unserialize() with SoapFault). (Dmitry)
Sqlite3
Fixed bug #66550 (SQLite prepared statement use-after-free). (Sean Heelan)
← Previous release: PHP 5.4.39 Next release: PHP 5.4.41 →
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