xref: /web-php/releases/5_2_1.php (revision f1cb7e74)
1<?php
2$_SERVER['BASE_PAGE'] = 'releases/5_2_1.php';
3include_once __DIR__ . '/../include/prepend.inc';
4site_header("PHP 5.2.1 Release Announcement");
5?>
6
7<h1>PHP 5.2.1 Release Announcement</h1>
8<p>
9The PHP development team would like to announce the immediate availability of PHP 5.2.1.
10This release is a major stability and security enhancement of the 5.X branch, and all
11users are strongly encouraged to upgrade to it as soon as possible.
12</p>
13
14<p>
15<b>Security Enhancements and Fixes in PHP 5.2.1:</b>
16</p>
17<ul>
18	<li>Fixed possible safe_mode &amp; open_basedir bypasses inside the session extension.</li>
19	<li>Prevent search engines from indexing the phpinfo() page.</li>
20	<li>Fixed a number of input processing bugs inside the filter extension.</li>
21	<li>Fixed unserialize() abuse on 64 bit systems with certain input strings.</li>
22	<li>Fixed possible overflows and stack corruptions in the session extension.</li>
23	<li>Fixed an underflow inside the internal sapi_header_op() function.</li>
24	<li>Fixed allocation bugs caused by attempts to allocate negative values in some code paths.</li>
25	<li>Fixed possible stack overflows inside zip, imap &amp; sqlite extensions.</li>
26	<li>Fixed several possible buffer overflows inside the stream filters.</li>
27	<li>Fixed non-validated resource destruction inside the shmop extension.</li>
28	<li>Fixed a possible overflow in the str_replace() function.</li>
29	<li>Fixed possible clobbering of super-globals in several code paths.</li>
30	<li>Fixed a possible information disclosure inside the wddx extension.</li>
31	<li>Fixed a possible string format vulnerability in *print() functions on 64 bit systems.</li>
32	<li>Fixed a possible buffer overflow inside mail() and  ibase_{delete,add,modify}_user() functions.</li>
33	<li>Fixed a string format vulnerability inside the odbc_result_all() function.</li>
34	<li>Memory limit is now enabled by default.</li>
35	<li>Added internal heap protection.</li>
36	<li>Extended filter extension support for $_SERVER in CGI and apache2 SAPIs.</li>
37</ul>
38
39<p>
40The majority of the security vulnerabilities discovered and resolved can in most cases be only abused by local users and cannot be triggered
41remotely. However, some of the above issues can be triggered remotely in certain situations, or exploited by malicious local users on shared hosting setups
42utilizing PHP as an Apache module. Therefore, we strongly advise all users of PHP, regardless of the version to upgrade to 5.2.1 release
43as soon as possible. PHP 4.4.5 with equivalent security corrections is <a href='4_4_5.php'>available</a> as well.
44</p>
45
46<p>
47<b>The key improvements of PHP 5.2.1 include:</b>
48</p>
49<ul>
50	<li>Several performance improvements in the engine, streams API and some Windows specific optimizations.</li>
51	<li>PDO_MySQL now uses buffered queries by default and emulates prepared statements to bypass limitations of MySQL's prepared statement API.</li>
52	<li>Many improvements and enhancements to the filter and zip extensions.</li>
53	<li>Memory limit is now always enabled, this includes Windows builds, with a default limit of 128 megabytes.</li>
54	<li>Added several performance optimizations using faster Win32 APIs (this change means that PHP no longer supports Windows 98).</li>
55	<li>FastCGI speed optimized build of PHP for Windows made available for downloading.</li>
56	<li>Over 180 bug fixes.</li>
57</ul>
58
59<p>
60For users upgrading from PHP 5.0 and PHP 5.1, an upgrade guide is available
61<a href="/UPDATE_5_2.txt">here</a>, detailing the changes between those releases
62and PHP 5.2.1.
63</p>
64
65<p>
66 For a full list of changes in PHP 5.2.1, see the <a href="/ChangeLog-5.php#5.2.1">ChangeLog</a>.
67</p>
68
69<?php site_footer(); ?>
70