-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathperl5122delta.html
290 lines (182 loc) · 13.5 KB
/
perl5122delta.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>perl5122delta - what is new for perl v5.12.2</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rev="made" href="mailto:[email protected]" />
</head>
<body>
<ul id="index">
<li><a href="#NAME">NAME</a></li>
<li><a href="#DESCRIPTION">DESCRIPTION</a></li>
<li><a href="#Incompatible-Changes">Incompatible Changes</a></li>
<li><a href="#Core-Enhancements">Core Enhancements</a></li>
<li><a href="#Modules-and-Pragmata">Modules and Pragmata</a>
<ul>
<li><a href="#New-Modules-and-Pragmata">New Modules and Pragmata</a></li>
<li><a href="#Pragmata-Changes">Pragmata Changes</a></li>
<li><a href="#Updated-Modules">Updated Modules</a></li>
</ul>
</li>
<li><a href="#Utility-Changes">Utility Changes</a></li>
<li><a href="#Changes-to-Existing-Documentation">Changes to Existing Documentation</a></li>
<li><a href="#Installation-and-Configuration-Improvements">Installation and Configuration Improvements</a>
<ul>
<li><a href="#Configuration-improvements">Configuration improvements</a></li>
<li><a href="#Compilation-improvements">Compilation improvements</a></li>
</ul>
</li>
<li><a href="#Selected-Bug-Fixes">Selected Bug Fixes</a></li>
<li><a href="#Platform-Specific-Notes">Platform Specific Notes</a>
<ul>
<li><a href="#AIX">AIX</a></li>
<li><a href="#Windows">Windows</a></li>
<li><a href="#VMS">VMS</a></li>
</ul>
</li>
<li><a href="#Acknowledgements">Acknowledgements</a></li>
<li><a href="#Reporting-Bugs">Reporting Bugs</a></li>
<li><a href="#SEE-ALSO">SEE ALSO</a></li>
</ul>
<h1 id="NAME">NAME</h1>
<p>perl5122delta - what is new for perl v5.12.2</p>
<h1 id="DESCRIPTION">DESCRIPTION</h1>
<p>This document describes differences between the 5.12.1 release and the 5.12.2 release.</p>
<p>If you are upgrading from an earlier major version, such as 5.10.1, first read <a href="/cperl/perl5120delta.html">perl5120delta</a>, which describes differences between 5.10.1 and 5.12.0, as well as <a href="/cperl/perl5121delta.html">perl5121delta</a>, which describes earlier changes in the 5.12 stable release series.</p>
<h1 id="Incompatible-Changes">Incompatible Changes</h1>
<p>There are no changes intentionally incompatible with 5.12.1. If any exist, they are bugs and reports are welcome.</p>
<h1 id="Core-Enhancements">Core Enhancements</h1>
<p>Other than the bug fixes listed below, there should be no user-visible changes to the core language in this release.</p>
<h1 id="Modules-and-Pragmata">Modules and Pragmata</h1>
<h2 id="New-Modules-and-Pragmata">New Modules and Pragmata</h2>
<p>This release does not introduce any new modules or pragmata.</p>
<h2 id="Pragmata-Changes">Pragmata Changes</h2>
<p>In the previous release, <code>no <i>VERSION</i>;</code> statements triggered a bug which could cause <a href="/cperl/lib/feature.html">feature</a> bundles to be loaded and <a href="/cperl/lib/strict.html">strict</a> mode to be enabled unintentionally.</p>
<h2 id="Updated-Modules">Updated Modules</h2>
<dl>
<dt id="Carp"><code>Carp</code></dt>
<dd>
<p>Upgraded from version 1.16 to 1.17.</p>
<p><a href="/cperl/lib/Carp.html">Carp</a> now detects incomplete <a href="/cperl/perlfunc.html#caller-EXPR">caller()</a> overrides and avoids using bogus <code>@DB::args</code>. To provide backtraces, Carp relies on particular behaviour of the caller built-in. Carp now detects if other code has overridden this with an incomplete implementation, and modifies its backtrace accordingly. Previously incomplete overrides would cause incorrect values in backtraces (best case), or obscure fatal errors (worst case)</p>
<p>This fixes certain cases of <code>Bizarre copy of ARRAY</code> caused by modules overriding <code>caller()</code> incorrectly.</p>
</dd>
<dt id="CPANPLUS"><code>CPANPLUS</code></dt>
<dd>
<p>A patch to <i>cpanp-run-perl</i> has been backported from CPANPLUS <code>0.9004</code>. This resolves <a href="http://rt.cpan.org/Public/Bug/Display.html?id=55964">RT #55964</a> and <a href="http://rt.cpan.org/Public/Bug/Display.html?id=57106">RT #57106</a>, both of which related to failures to install distributions that use <code>Module::Install::DSL</code>.</p>
</dd>
<dt id="File::Glob"><code>File::Glob</code></dt>
<dd>
<p>A regression which caused a failure to find <code>CORE::GLOBAL::glob</code> after loading <code>File::Glob</code> to crash has been fixed. Now, it correctly falls back to external globbing via <code>pp_glob</code>.</p>
</dd>
<dt id="File::Copy"><code>File::Copy</code></dt>
<dd>
<p><code>File::Copy::copy(FILE, DIR)</code> is now documented.</p>
</dd>
<dt id="File::Spec"><code>File::Spec</code></dt>
<dd>
<p>Upgraded from version 3.31 to 3.31_01.</p>
<p>Several portability fixes were made in <code>File::Spec::VMS</code>: a colon is now recognized as a delimiter in native filespecs; caret-escaped delimiters are recognized for better handling of extended filespecs; <code>catpath()</code> returns an empty directory rather than the current directory if the input directory name is empty; <code>abs2rel()</code> properly handles Unix-style input.</p>
</dd>
</dl>
<h1 id="Utility-Changes">Utility Changes</h1>
<ul>
<li><p><i>perlbug</i> now always gives the reporter a chance to change the email address it guesses for them.</p>
</li>
<li><p><i>perlbug</i> should no longer warn about uninitialized values when using the <code>-d</code> and <code>-v</code> options.</p>
</li>
</ul>
<h1 id="Changes-to-Existing-Documentation">Changes to Existing Documentation</h1>
<ul>
<li><p>The existing policy on backward-compatibility and deprecation has been added to <a href="/cperl/perlpolicy.html">perlpolicy</a>, along with definitions of terms like <i>deprecation</i>.</p>
</li>
<li><p><a href="/cperl/perlfunc.html#srand">"srand" in perlfunc</a>'s usage has been clarified.</p>
</li>
<li><p>The entry for <a href="/cperl/perlfunc.html#die">"die" in perlfunc</a> was reorganized to emphasize its role in the exception mechanism.</p>
</li>
<li><p>Perl's <a>INSTALL</a> file has been clarified to explicitly state that Perl requires a C89 compliant ANSI C Compiler.</p>
</li>
<li><p><a href="/cperl/lib/IO/Socket.html">IO::Socket</a>'s <code>getsockopt()</code> and <code>setsockopt()</code> have been documented.</p>
</li>
<li><p><i>alarm()</i>'s inability to interrupt blocking IO on Windows has been documented.</p>
</li>
<li><p><a>Math::TrulyRandom</a> hasn't been updated since 1996 and has been removed as a recommended solution for random number generation.</p>
</li>
<li><p><a href="/cperl/perlrun.html">perlrun</a> has been updated to clarify the behaviour of octal flags to <i>perl</i>.</p>
</li>
<li><p>To ease user confusion, <code>$#</code> and <code>$*</code>, two special variables that were removed in earlier versions of Perl have been documented.</p>
</li>
<li><p>The version of <a href="/cperl/lib/perlfaq.html">perlfaq</a> shipped with the Perl core has been updated from the official FAQ version, which is now maintained in the <code>briandfoy/perlfaq</code> branch of the Perl repository at <a href="git://perl5.git.perl.org/perl.git">git://perl5.git.perl.org/perl.git</a>.</p>
</li>
</ul>
<h1 id="Installation-and-Configuration-Improvements">Installation and Configuration Improvements</h1>
<h2 id="Configuration-improvements">Configuration improvements</h2>
<ul>
<li><p>The <code>d_u32align</code> configuration probe on ARM has been fixed.</p>
</li>
</ul>
<h2 id="Compilation-improvements">Compilation improvements</h2>
<ul>
<li><p>An "<code>incompatible operand types</code>" error in ternary expressions when building with <code>clang</code> has been fixed.</p>
</li>
<li><p>Perl now skips setuid <code>File::Copy</code> tests on partitions it detects to be mounted as <code>nosuid</code>.</p>
</li>
</ul>
<h1 id="Selected-Bug-Fixes">Selected Bug Fixes</h1>
<ul>
<li><p>A possible segfault in the <code>T_PRTOBJ</code> default typemap has been fixed.</p>
</li>
<li><p>A possible memory leak when using <a href="/cperl/perlfunc.html#caller-EXPR">caller()</a> to set <code>@DB::args</code> has been fixed.</p>
</li>
<li><p>Several memory leaks when loading XS modules were fixed.</p>
</li>
<li><p><code>unpack()</code> now handles scalar context correctly for <code>%32H</code> and <code>%32u</code>, fixing a potential crash. <code>split()</code> would crash because the third item on the stack wasn't the regular expression it expected. <code>unpack("%2H", ...)</code> would return both the unpacked result and the checksum on the stack, as would <code>unpack("%2u", ...)</code>. <a href="http://rt.perl.org/rt3/Ticket/Display.html?id=73814">[perl #73814]</a></p>
</li>
<li><p>Perl now avoids using memory after calling <code>free()</code> in <i>pp_require</i> when there are CODEREFs in <code>@INC</code>.</p>
</li>
<li><p>A bug that could cause "<code>Unknown error</code>" messages when "<code>call_sv(code, G_EVAL)</code>" is called from an XS destructor has been fixed.</p>
</li>
<li><p>The implementation of the <code>open $fh, '>' \$buffer</code> feature now supports get/set magic and thus tied buffers correctly.</p>
</li>
<li><p>The <code>pp_getc</code>, <code>pp_tell</code>, and <code>pp_eof</code> opcodes now make room on the stack for their return values in cases where no argument was passed in.</p>
</li>
<li><p>When matching unicode strings under some conditions inappropriate backtracking would result in a <code>Malformed UTF-8 character (fatal)</code> error. This should no longer occur. See <a href="http://rt.perl.org/rt3/Public/Bug/Display.html?id=75680">[perl #75680]</a></p>
</li>
</ul>
<h1 id="Platform-Specific-Notes">Platform Specific Notes</h1>
<h2 id="AIX">AIX</h2>
<ul>
<li><p><i>README.aix</i> has been updated with information about the XL C/C++ V11 compiler suite.</p>
</li>
</ul>
<h2 id="Windows">Windows</h2>
<ul>
<li><p>When building Perl with the mingw64 x64 cross-compiler <code>incpath</code>, <code>libpth</code>, <code>ldflags</code>, <code>lddlflags</code> and <code>ldflags_nolargefiles</code> values in <i>Config.pm</i> and <i>Config_heavy.pl</i> were not previously being set correctly because, with that compiler, the include and lib directories are not immediately below <code>$(CCHOME)</code>.</p>
</li>
</ul>
<h2 id="VMS">VMS</h2>
<ul>
<li><p><i>git_version.h</i> is now installed on VMS. This was an oversight in v5.12.0 which caused some extensions to fail to build.</p>
</li>
<li><p>Several memory leaks in <a href="/cperl/perlfunc.html#stat-FILEHANDLE">stat()</a> have been fixed.</p>
</li>
<li><p>A memory leak in <code>Perl_rename()</code> due to a double allocation has been fixed.</p>
</li>
<li><p>A memory leak in <code>vms_fid_to_name()</code> (used by <code>realpath()</code> and <code>realname()</code>) has been fixed.</p>
</li>
</ul>
<h1 id="Acknowledgements">Acknowledgements</h1>
<p>Perl 5.12.2 represents approximately three months of development since Perl 5.12.1 and contains approximately 2,000 lines of changes across 100 files from 36 authors.</p>
<p>Perl continues to flourish into its third decade thanks to a vibrant community of users and developers. The following people are known to have contributed the improvements that became Perl 5.12.2:</p>
<p>Abigail, Ævar Arnfjörð Bjarmason, Ben Morrow, brian d foy, Brian Phillips, Chas. Owens, Chris 'BinGOs' Williams, Chris Williams, Craig A. Berry, Curtis Jewell, Dan Dascalescu, David Golden, David Mitchell, Father Chrysostomos, Florian Ragwitz, George Greer, H.Merijn Brand, Jan Dubois, Jesse Vincent, Jim Cromie, Karl Williamson, Lars Dɪᴇᴄᴋᴏᴡ 迪拉斯, Leon Brocard, Maik Hentsche, Matt S Trout, Nicholas Clark, Rafael Garcia-Suarez, Rainer Tammer, Ricardo Signes, Salvador Ortiz Garcia, Sisyphus, Slaven Rezic, Steffen Mueller, Tony Cook, Vincent Pit and Yves Orton.</p>
<h1 id="Reporting-Bugs">Reporting Bugs</h1>
<p>If you find what you think is a bug, you might check the articles recently posted to the comp.lang.perl.misc newsgroup and the perl bug database at http://rt.perl.org/perlbug/ . There may also be information at http://www.perl.org/ , the Perl Home Page.</p>
<p>If you believe you have an unreported bug, please run the <b>perlbug</b> program included with your release. Be sure to trim your bug down to a tiny but sufficient test case. Your bug report, along with the output of <code>perl -V</code>, will be sent off to [email protected] to be analysed by the Perl porting team.</p>
<p>If the bug you are reporting has security implications, which make it inappropriate to send to a publicly archived mailing list, then please send it to [email protected]. This points to a closed subscription unarchived mailing list, which includes all the core committers, who will be able to help assess the impact of issues, figure out a resolution, and help co-ordinate the release of patches to mitigate or fix the problem across all platforms on which Perl is supported. Please only use this address for security issues in the Perl core, not for modules independently distributed on CPAN.</p>
<h1 id="SEE-ALSO">SEE ALSO</h1>
<p>The <i>Changes</i> file for an explanation of how to view exhaustive details on what changed.</p>
<p>The <i>INSTALL</i> file for how to build Perl.</p>
<p>The <i>README</i> file for general stuff.</p>
<p>The <i>Artistic</i> and <i>Copying</i> files for copyright information.</p>
</body>
</html>