xref: /web-php/releases/4_2_1.php (revision f1cb7e74)
1<?php
2$_SERVER['BASE_PAGE'] = 'releases/4_2_1.php';
3include_once __DIR__ . '/../include/prepend.inc';
4site_header("PHP 4.2.1 Release Announcement");
5?>
6
7<h1>PHP 4.2.1 Release Announcement</h1>
8
9<p>[ <a href="/releases/4_2_1_fr.php">Version Fran&ccedil;aise</a> ]</p>
10
11<h2>Bugfix release</h2>
12
13<p>
14 This bug fix release solves a few bugs found in PHP 4.2.0.
15 PHP 4.2.1 includes the following fixes:
16</p>
17
18<ul>
19 <li>Fix for the MySQL extension not be able to connect to a MySQL server.</li>
20 <li>Fix for a crash in the COM extension when using an outproc server.</li>
21 <li>Fix for SID logic in the session extension.</li>
22 <li>
23  Fixes for the mbstring extension, including SJIS directory
24  name handling and mb_output_buffer().
25 </li>
26 <li>
27  Fix for a bug in socket_select() that could cause unexpected behavior when
28  using a statement like $w = $e = array($sock);
29 </li>
30 <li>Almost full DOM compliance for the domxml extension, and fixes for several functions.</li>
31 <li>Safe_mode checks for show_source(), parse_ini_file() and rmdir().</li>
32</ul>
33
34<p>
35 For a full list of changes in PHP 4.2.1, see the
36 <a href="/ChangeLog-4.php#4.2.1">ChangeLog</a>.
37</p>
38
39<h2>Compatibility</h2>
40
41<p>
42 PHP 4.2.1 also has improved (but still experimental) support for Apache version 2.
43 We do <strong>not</strong> recommend that you use this in a production environment,
44 but feel free to test it and report bugs to the <a href="http://bugs.php.net">bug
45 system</a>.
46</p>
47
48<h2>External variables</h2>
49
50<p>
51 We would also like to attend you on a big change in PHP 4.2.0 concerning
52 variable handling. <strong>External variables (from the environment, the HTTP
53 request, cookies or the web server) are no longer registered in the global
54 scope by default.</strong> The preferred method of accessing these external
55 variables is by using the new Superglobal arrays, introduced in PHP 4.1.0.
56 More information about this change:
57</p>
58
59<ul>
60 <li><a href="/manual/en/language.variables.predefined.php">PHP Manual: Predefined variables</a></li>
61 <li><a href="/release_4_1_0.php">The PHP 4.1.0 release announcement</a></li>
62 <li><a href="http://www.zend.com/zend/art/art-oertli.php">Thomas Oertli's article on secure programming in PHP</a></li>
63</ul>
64
65<?php site_footer(); ?>
66