This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perldelta: put fatal perldiags in the right spot
[perl5.git] / pod / perldelta.pod
1 =encoding utf8
2
3 =head1 NAME
4
5 [ this is a template for a new perldelta file.  Any text flagged as XXX needs
6 to be processed before release. ]
7
8 perldelta - what is new for perl v5.21.3
9
10 =head1 DESCRIPTION
11
12 This document describes differences between the 5.21.2 release and the 5.21.3
13 release.
14
15 If you are upgrading from an earlier release such as 5.21.1, first read
16 L<perl5212delta>, which describes differences between 5.21.1 and 5.21.2.
17
18 =head1 Notice
19
20 XXX Any important notices here
21
22 =head1 Core Enhancements
23
24 =head2 C<defined(@array = LIST)> is no longer fatal
25
26 In 5.21.1, C<defined(@array)> was made fatal.  This has been relaxed
27 to not die if the argument is assigning to an array.
28
29 =head1 Security
30
31 =head2 The L<Safe> module could allow outside packages to be replaced
32
33 Critical bugfix: outside packages could be replaced.  L<Safe> has
34 been patched to 2.38 to address this.
35
36 =head1 Incompatible Changes
37
38 =head2 S<C<use UNIVERSAL '...'>> is now a fatal error
39
40 Importing functions from C<UNIVERSAL> has been deprecated since v5.12, and
41 is now a fatal error.  S<C<"use UNIVERSAL">> without any arguments is still
42 allowed.
43
44 =head1 Modules and Pragmata
45
46 =head2 Updated Modules and Pragmata
47
48 =over 4
49
50 =item *
51
52 L<B::Debug> has been upgraded from version 1.19 to 1.21
53
54 =item *
55
56 L<Config::Perl::V> has been upgraded from version 0.20 to 0.22.
57
58 =item *
59
60 L<CPAN::Meta> has been upgraded from version 2.141520 to 2.142060.
61
62 =item *
63
64 L<CPAN::Meta::Requirements> has been upgraded from version 2.125 to 2.126.
65
66 =item *
67
68 L<ExtUtils::Manifest> has been upgraded from version 1.64 to 1.65.
69
70 The MANIFEST is now opened with C<:raw>, to prevent C<CRLF>s leaking in.
71
72 =item *
73
74 L<HTTP::Tiny> has been upgraded from version 0.043 to 0.047.
75
76 =item *
77
78 L<perl5db.pl> has been upgraded from version 1.45 to 1.46.
79
80 Fixed the scope level handling of the debugger's C<y> command.
81
82 =item *
83
84 L<POSIX> has been upgraded from version 1.41 to 1.42.
85
86 Replaced the thread-unsafe code used to prevent duplicate warning
87 messages for using the isxxx() functions.  [perl #122476]
88
89 =item *
90
91 L<Safe> has been upgraded from version 2.37 to 2.38.
92
93 Critical bugfix: outside packages could be replaced.
94
95 =item *
96
97 L<Socket> has been upgraded from version 2.014 to 2.015.
98
99 Test suite updates, particularly useful for Solaris and cygwin, and
100 a slight change to the pattern used for IPv4 address matching.
101
102 =back
103
104 =head1 Documentation
105
106 =head2 Changes to Existing Documentation
107
108 =head3 L<perlexperiment>
109
110 =over 4
111
112 =item *
113
114 Added reference to L<feature>.
115
116 =back
117
118 =head3 L<perlguts>
119
120 =over 4
121
122 =item *
123
124 Details on C level symbols and libperl.t added.
125
126 =back
127
128 =head3 L<perlhacktips>
129
130 =over 4
131
132 =item *
133
134 Recommended replacements for tmpfile, atoi, strtol, and strtoul added.
135  
136 =back
137
138 =head3 L<perlop>
139
140 =over 4
141
142 =item *
143
144 ASCII v. EBCDIC clarifications added.
145
146 =back
147
148 =head3 L<perlsec>
149
150 =over 4
151
152 =item *
153
154 Comments added on algorithmic complexity and tied hashes.
155
156 =back
157
158 =head3 L<perlvms>
159
160 =over 4
161
162 =item *
163
164 Updated documentation on environment and shell interaction in VMS.
165
166 =back
167
168 =head1 Diagnostics
169
170 The following additions or changes have been made to diagnostic output,
171 including warnings and fatal error messages.  For the complete list of
172 diagnostic messages, see L<perldiag>.
173
174 =head2 New Diagnostics
175
176 =head3 New Errors
177
178 =over 4
179
180 =item *
181
182 L<Hexadecimal float: internal error|perldiag/"Hexadecimal float: internal error">
183
184 (F) Something went horribly bad in hexadecimal float handling.
185
186 =item *
187
188 L<Hexadecimal float: unsupported long double format|perldiag/"Hexadecimal float: unsupported long double format">
189
190 (F) You have configured Perl to use long doubles but
191 the internals of the long double format are unknown,
192 therefore the hexadecimal float output is impossible.
193
194 =back
195
196 =head3 New Warnings
197
198 =over 4
199
200 =item *
201
202 L<Hexadecimal float: exponent overflow|perldiag/"Hexadecimal float: exponent overflow">
203
204 (W overflow) The hexadecimal floating point has larger exponent
205 than the floating point supports.
206
207 =item *
208
209 L<Hexadecimal float: exponent underflow|perldiag/"Hexadecimal float: exponent underflow">
210
211 (W overflow) The hexadecimal floating point has smaller exponent
212 than the floating point supports.
213
214 =item *
215
216 L<Hexadecimal float: mantissa overflow|perldiag/"Hexadecimal float: mantissa overflow">
217
218 (W overflow) The hexadecimal floating point literal had more bits in
219 the mantissa (the part between the 0x and the exponent, also known as
220 the fraction or the significand) than the floating point supports.
221
222 =item *
223
224 L<Hexadecimal float: precision loss|perldiag/"Hexadecimal float: precision loss">
225
226 (W overflow) The hexadecimal floating point had internally more
227 digits than could be output.  This can be caused by unsupported
228 long double formats, or by 64-bit integers not being available
229 (needed to retrieve the digits under some configurations).
230
231 =back
232
233 =head2 Changes to Existing Diagnostics
234
235 XXX Changes (i.e. rewording) of diagnostic messages go here
236
237 =over 4
238
239 =item *
240
241 XXX Describe change here
242
243 =back
244
245 =head1 Configuration and Compilation
246
247 XXX Changes to F<Configure>, F<installperl>, F<installman>, and analogous tools
248 go here.  Any other changes to the Perl build process should be listed here.
249 However, any platform-specific changes should be listed in the
250 L</Platform Support> section, instead.
251
252 [ List changes as a =item entry ].
253
254 =over 4
255
256 =item *
257
258 Internal handling of floating point values has been improved.
259
260 =back
261
262 =head1 Testing
263
264 XXX Any significant changes to the testing of a freshly built perl should be
265 listed here.  Changes which create B<new> files in F<t/> go here as do any
266 large changes to the testing harness (e.g. when parallel testing was added).
267 Changes to existing files in F<t/> aren't worth summarizing, although the bugs
268 that they represent may be covered elsewhere.
269
270 [ List each test improvement as a =item entry ]
271
272 =over 4
273
274 =item *
275
276 XXX
277
278 =back
279
280 =head1 Platform Support
281
282 =head2 Platform-Specific Notes
283
284 =over 4
285
286 =item Android
287
288 Build support has been improved for cross-compiling in general and for
289 Android in particular.
290
291 =item Solaris
292
293 C<c99> options have been cleaned up, hints look for C<solstudio>
294 as well as C<SUNWspro>, and support for native C<setenv> has been added.
295
296 =item VMS
297
298 C<finite>, C<finitel>, and C<isfinite> detection has been added to
299 C<configure.com>, environment handling has had some minor changes, and
300 a fix for legacy feature checking status.
301
302 =item Windows
303
304 C<%I64d> is now being used instead of C<%lld> for MinGW.
305
306 =back
307
308 =head1 Internal Changes
309
310 XXX Changes which affect the interface available to C<XS> code go here.  Other
311 significant internal changes for future core maintainers should be noted as
312 well.
313
314 [ List each change as a =item entry ]
315
316 =over 4
317
318 =item *
319
320 Added L<perlapi/sync_locale>.
321 Changing the program's locale should be avoided by XS code.  Nevertheless,
322 certain non-Perl libraries called from XS, such as C<Gtk> do so.  When this
323 happens, Perl needs to be told that the locale has changed.  Use this function
324 to do so, before returning to Perl.
325
326 =item *
327
328 Added L<perlapi/grok_atou> as a safer replacement for atoi and strtol.
329
330 =back
331
332 =head1 Selected Bug Fixes
333
334 XXX Important bug fixes in the core language are summarized here.  Bug fixes in
335 files in F<ext/> and F<lib/> are best summarized in L</Modules and Pragmata>.
336
337 [ List each fix as a =item entry ]
338
339 =over 4
340
341 =item *
342
343 Failing to compile C<use Foo> in an eval could leave a spurious
344 C<BEGIN> subroutine definition, which would produce a "Subroutine
345 BEGIN redefined" warning on the next use of C<use>, or other C<BEGIN>
346 block.  [perl #122107]
347
348 =item *
349
350 C<method { BLOCK } ARGS> syntax now correctly parses the arguments if they
351 begin with an opening brace.  [perl #46947]
352
353 =item *
354
355 External libraries and Perl may have different ideas of what the locale is.
356 This is problematic when parsing version strings if the locale's numeric
357 separator has been changed.  Version parsing has been patched to ensure
358 it handles the locales correctly.  [perl #121930]
359
360 =item *
361
362 A bug has been fixed where zero-length assertions and code blocks inside of a
363 regex could cause L<pos> to see an incorrect value.  [perl #122460]
364
365 =back
366
367 =head1 Known Problems
368
369 XXX Descriptions of platform agnostic bugs we know we can't fix go here.  Any
370 tests that had to be C<TODO>ed for the release would be noted here.  Unfixed
371 platform specific bugs also go here.
372
373 [ List each fix as a =item entry ]
374
375 =over 4
376
377 =item *
378
379 XXX
380
381 =back
382
383 =head1 Errata From Previous Releases
384
385 =over 4
386
387 =item *
388
389 XXX Add anything here that we forgot to add, or were mistaken about, in
390 the perldelta of a previous release.
391
392 =back
393
394 =head1 Acknowledgements
395
396 XXX Generate this with:
397
398   perl Porting/acknowledgements.pl v5.21.2..HEAD
399
400 =head1 Reporting Bugs
401
402 If you find what you think is a bug, you might check the articles recently
403 posted to the comp.lang.perl.misc newsgroup and the perl bug database at
404 https://rt.perl.org/ .  There may also be information at
405 http://www.perl.org/ , the Perl Home Page.
406
407 If you believe you have an unreported bug, please run the L<perlbug> program
408 included with your release.  Be sure to trim your bug down to a tiny but
409 sufficient test case.  Your bug report, along with the output of C<perl -V>,
410 will be sent off to perlbug@perl.org to be analysed by the Perl porting team.
411
412 If the bug you are reporting has security implications, which make it
413 inappropriate to send to a publicly archived mailing list, then please send it
414 to perl5-security-report@perl.org.  This points to a closed subscription
415 unarchived mailing list, which includes all the core committers, who will be
416 able to help assess the impact of issues, figure out a resolution, and help
417 co-ordinate the release of patches to mitigate or fix the problem across all
418 platforms on which Perl is supported.  Please only use this address for
419 security issues in the Perl core, not for modules independently distributed on
420 CPAN.
421
422 =head1 SEE ALSO
423
424 The F<Changes> file for an explanation of how to view exhaustive details on
425 what changed.
426
427 The F<INSTALL> file for how to build Perl.
428
429 The F<README> file for general stuff.
430
431 The F<Artistic> and F<Copying> files for copyright information.
432
433 =cut