This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regexp.h: Move bits around
[perl5.git] / pod / perl5134delta.pod
... / ...
CommitLineData
1=encoding utf8
2
3=for rafl
4changelogged up to commit d6fa5a34
5* PERL_STATIC_INLINE might want to be mentioned
6
7=head1 NAME
8
9[ this is a template for a new perldelta file. Any text flagged as
10XXX needs to be processed before release. ]
11
12perldelta - what is new for perl v5.13.4
13
14=head1 DESCRIPTION
15
16This document describes differences between the 5.13.4 release and
17the 5.13.3 release.
18
19If you are upgrading from an earlier release such as 5.13.2, first read
20L<perl5133delta>, which describes differences between 5.13.2 and
215.13.3.
22
23=head1 Notice
24
25XXX Any important notices here
26
27=head1 Core Enhancements
28
29XXX New core language features go here. Summarise user-visible core language
30enhancements. Particularly prominent performance optimisations could go
31here, but most should go in the L</Performance Enhancements> section.
32
33[ List each enhancement as a =head2 entry ]
34
35=head2 C<\N{I<name>}> and C<charnames> enhancements
36
37C<\N{}>, C<charnames::vianame>, C<charnames::viacode> now know about every
38character in Unicode. Previously, they didn't know about the Hangul syllables
39nor a number of CJK (Chinese/Japanese/Korean) characters.
40
41=head2 C<srand()> now returns the seed
42
43This allows programs which need to have repeatable results to not have to come
44up with their own seed generating mechanism. Instead, they can use C<srand()>
45and somehow stash the return for future use. Typical is a test program which
46has too many combinations to test comprehensively in the time available to it
47each run. It can test a random subset each time, and should there be a
48failure, log the seed used for that run so that it can later be used to
49reproduce the exact results.
50
51=head1 Security
52
53XXX Any security-related notices go here. In particular, any security
54vulnerabilities closed should be noted here rather than in the
55L</Selected Bug Fixes> section.
56
57[ List each security issue as a =head2 entry ]
58
59=head1 Incompatible Changes
60
61=head2 Declare API incompatibility between blead releases
62
63Only stable releases (5.10.x, 5.12.x, 5.14.x, ...) guarantee binary
64compatibility with each other, while blead releases (5.13.x, 5.15.x, ...) often
65break this compatibility. However, prior to perl 5.13.4, all blead releases had
66the same C<PERL_API_REVISION>, C<PERL_API_VERSION>, and C<PERL_API_SUBVERSION>,
67effectively declaring them as binary compatible, which they weren't. From now
68on, blead releases will have a C<PERL_API_SUBVERSION> equal to their
69C<PERL_SUBVERSION>, explicitly marking them as incompatible with each other.
70
71Maintainance releases of stable perl versions will continue to make no
72intentionally incompatible API changes.
73
74=head2 Check API compatibility when loading XS modules
75
76When perl's API changes in incompatible ways (which usually happens between
77every major release), XS modules compiled for previous versions of perl will not
78work anymore. They will need to be recompiled against the new perl.
79
80In order to ensure that modules are recompiled, and to prevent users from
81accidentally loading modules compiled for old perls into newer ones, the
82C<XS_APIVERSION_BOOTCHECK> macro has been added. That macro, which is called
83when loading every newly compiled extension, compares the API version of the
84running perl with the version a module has been compiled for and raises an
85exception if they don't match.
86
87=head2 Binary Incompatible with all previous Perls
88
89Some bit fields have been reordered, hence this release will not be binary
90comptible with any previous Perl release.
91
92=head1 Deprecations
93
94XXX Any deprecated features, syntax, modules etc. should be listed here.
95In particular, deprecated modules should be listed here even if they are
96listed as an updated module in the L</Modules and Pragmata> section.
97
98[ List each deprecation as a =head2 entry ]
99
100=head1 Performance Enhancements
101
102XXX Changes which enhance performance without changing behaviour go here. There
103may well be none in a stable release.
104
105[ List each enhancement as a =item * entry ]
106
107=over 4
108
109=item *
110
111XXX
112
113=back
114
115=head1 Modules and Pragmata
116
117XXX All changes to installed files in F<cpan/>, F<dist/>, F<ext/> and F<lib/>
118go here. If Module::CoreList is updated, generate an initial draft of the
119following sections using F<Porting/corelist-perldelta.pl>, which prints stub
120entries to STDOUT. Results can be pasted in place of the '=head2' entries
121below. A paragraph summary for important changes should then be added by hand.
122In an ideal world, dual-life modules would have a F<Changes> file that could be
123cribbed.
124
125[ Within each section, list entries as a =item NAME entry ]
126
127=head2 New Modules and Pragmata
128
129=over 4
130
131=item *
132
133XXX
134
135=back
136
137=head2 Updated Modules and Pragmata
138
139=over 4
140
141=item C<Archive::Tar>
142
143Upgraded from version 1.64 to 1.66.
144
145Among other things, the new version adds a new option to C<ptar> to allow safe
146creation of tarballs without world-writable files on Windows, allowing those
147archives to be uploaded to CPAN.
148
149=item C<B::Lint>
150
151Upgraded from version 1.11 to 1.12.
152
153=item C<Carp>
154
155Upgraded from version 1.16 to 1.18.
156
157L<Carp> now detects incomplete L<caller()|perlfunc/"caller EXPR"> overrides and
158avoids using bogus C<@DB::args>. This fixes certain cases of C<Bizarre copy of
159ARRAY> caused by modules overriding C<caller()> incorrectly.
160
161=item C<Compress::Raw::Bzip2>
162
163Upgraded from version 2.027 to 2.030.
164
165=item C<Compress::Raw::Zlib>
166
167Upgraded from version 2.027 to 2.030.
168
169=item C<File::Spec>
170
171Upgraded from version 3.31 to 3.31_01.
172
173Various issues in L<File::Spec::VMS> have been fixed.
174
175=item C<IO::Compress>
176
177Upgraded from version 2.027 to 2.030.
178
179=back
180
181=head2 Removed Modules and Pragmata
182
183=over 4
184
185=item *
186
187XXX
188
189=back
190
191=head1 Documentation
192
193XXX Changes to files in F<pod/> go here. Consider grouping entries by
194file and be sure to link to the appropriate page, e.g. L<perlfunc>.
195
196=head2 New Documentation
197
198XXX Changes which create B<new> files in F<pod/> go here.
199
200=head3 L<XXX>
201
202XXX Description of the purpose of the new file here
203
204=head2 Changes to Existing Documentation
205
206XXX Changes which significantly change existing files in F<pod/> go here.
207However, any changes to F<pod/perldiag.pod> should go in the L</Diagnostics>
208section.
209
210=head3 L<perldiag>
211
212=over 4
213
214=item *
215
216The following existing diagnostics are now documented:
217
218=over 4
219
220=item *
221
222L<Ambiguous use of %c resolved as operator %c|perldiag/"Ambiguous use of %c resolved as operator %c">
223
224=item *
225
226L<Ambiguous use of %c{%s} resolved to %c%s|perldiag/"Ambiguous use of %c{%s} resolved to %c%s">
227
228=item *
229
230L<Ambiguous use of %c{%s%s} resolved to %c%s%s|perldiag/"Ambiguous use of %c{%s%s} resolved to %c%s%s">
231
232=item *
233
234L<Ambiguous use of -%s resolved as -&%s()|perldiag/"Ambiguous use of -%s resolved as -&%s()">
235
236=back
237
238=back
239
240=head3 L<perlport>
241
242=over 4
243
244=item *
245
246Documented a L<limitation|perlport/alarm> of L<alarm()|perlfunc/"alarm SECONDS">
247on Win32.
248
249=back
250
251=head1 Diagnostics
252
253The following additions or changes have been made to diagnostic output,
254including warnings and fatal error messages. For the complete list of
255diagnostic messages, see L<perldiag>.
256
257XXX New or changed warnings emitted by the core's C<C> code go here. Also
258include any changes in L<perldiag> that reconcile it to the C<C> code.
259
260[ Within each section, list entries as a =item entry ]
261
262=head2 New Diagnostics
263
264XXX Newly added diagnostic messages go here
265
266=over 4
267
268=item *
269
270XXX
271
272=back
273
274=head2 Changes to Existing Diagnostics
275
276XXX Changes (i.e. rewording) of diagnostic messages go here
277
278=over 4
279
280=item *
281
282XXX
283
284=back
285
286=head1 Utility Changes
287
288XXX Changes to installed programs such as F<perlbug> and F<xsubpp> go
289here. Most of these are built within the directories F<utils> and F<x2p>.
290
291[ List utility changes as a =head3 entry for each utility and =item
292entries for each change
293Use L<XXX> with program names to get proper documentation linking. ]
294
295=head3 L<XXX>
296
297=over 4
298
299=item *
300
301XXX
302
303=back
304
305=head1 Configuration and Compilation
306
307XXX Changes to F<Configure>, F<installperl>, F<installman>, and analogous tools
308go here. Any other changes to the Perl build process should be listed here.
309However, any platform-specific changes should be listed in the
310L</Platform Support> section, instead.
311
312[ List changes as a =item entry ].
313
314=over 4
315
316=item *
317
318Improve compatibility with C<C++> compilers.
319
320=back
321
322=head1 Testing
323
324XXX Any significant changes to the testing of a freshly built perl should be
325listed here. Changes which create B<new> files in F<t/> go here as do any
326large changes to the testing harness (e.g. when parallel testing was added).
327Changes to existing files in F<t/> aren't worth summarising, although the bugs
328that they represent may be covered elsewhere.
329
330[ List each test improvement as a =item entry ]
331
332=over 4
333
334=item *
335
336F<t/op/print.t> has been added to test implicit printing of C<$_>.
337
338=item *
339
340F<t/io/errnosig.t> has been added to test for restoration of of C<$!> when
341leaving signal handlers.
342
343=back
344
345=head1 Platform Support
346
347XXX Any changes to platform support should be listed in the sections below.
348
349[ Within the sections, list each platform as a =item entry with specific
350changes as paragraphs below it. ]
351
352=head2 New Platforms
353
354XXX List any platforms that this version of perl compiles on, that previous
355versions did not. These will either be enabled by new files in the F<hints/>
356directories, or new subdirectories and F<README> files at the top level of the
357source tree.
358
359=over 4
360
361=item XXX-some-platform
362
363XXX
364
365=back
366
367=head2 Discontinued Platforms
368
369XXX List any platforms that this version of perl no longer compiles on.
370
371=over 4
372
373=item XXX-some-platform
374
375XXX
376
377=back
378
379=head2 Platform-Specific Notes
380
381XXX List any changes for specific platforms. This could include configuration
382and compilation changes or changes in portability/compatibility. However,
383changes within modules for platforms should generally be listed in the
384L</Modules and Pragmata> section.
385
386=over 4
387
388=item Win32
389
390=over 4
391
392=item *
393
394Fixed a possible hang in F<t/op/readline.t>.
395
396=item *
397
398Fixed Makefile for SDK2003SP1 compilers.
399
400=back
401
402=back
403
404=head1 Internal Changes
405
406XXX Changes which affect the interface available to C<XS> code go here.
407Other significant internal changes for future core maintainers should
408be noted as well.
409
410[ List each test improvement as a =item entry ]
411
412=over 4
413
414=item Removed C<PERL_POLLUTE>
415
416The option to define C<PERL_POLLUTE> to expose older 5.005 symbols for backwards
417compatibility has been removed. It's use was always discouraged, and MakeMaker
418contains a more specific escape hatch:
419
420 perl Makefile.PL POLLUTE=1
421
422This can be used for modules that have not been upgraded to 5.6 naming
423conventions (and really should be completely obsolete by now).
424
425=item Make extending the peephole optimizer easier
426
427As of version 5.8, extension authors were allowed to replace perl's peephole
428optimizer function. However, this was B<very> hard to do, as there was no way to
429add new optimizations without having to copy large parts of perl's original
430optimizer. This problem is now solved by a rework of the optimizer extension
431API. See L<perlguts/"Compile pass 3: peephole optimization"> for details.
432
433=back
434
435=head1 Selected Bug Fixes
436
437XXX Important bug fixes in the core language are summarised here.
438Bug fixes in files in F<ext/> and F<lib/> are best summarised in
439L</Modules and Pragmata>.
440
441[ List each fix as a =item entry ]
442
443=over 4
444
445=item *
446
447Fixed possible memory leak when using L<caller()|perlfunc/"caller EXPR"> to set
448C<@DB::args>.
449
450=item *
451
452Several memory leaks when loading XS modules were fixed.
453
454=item *
455
456A panic in the regular expression optimizer has been fixed (RT#75762).
457
458=item *
459
460Assignments to lvalue subroutines now honor copy-on-write behavior again, which
461has been broken since version 5.10.0 (RT#75656).
462
463=item *
464
465Assignments to glob copies now behave just like assignments to regular globs
466(RT#1804).
467
468=item *
469
470Within signal handlers, C<$!> is now implicitly localized.
471
472=back
473
474=head1 Known Problems
475
476XXX Descriptions of platform agnostic bugs we know we can't fix go here. Any
477tests that had to be C<TODO>ed for the release would be noted here, unless
478they were specific to a particular platform (see below).
479
480This is a list of some significant unfixed bugs, which are regressions
481from either 5.XXX.XXX or 5.XXX.XXX.
482
483[ List each fix as a =item entry ]
484
485=over 4
486
487=item *
488
489XXX
490
491=back
492
493=head1 Obituary
494
495XXX If any significant core contributor has died, we've added a short obituary
496here.
497
498=head1 Acknowledgements
499
500XXX The list of people to thank goes here.
501
502=head1 Reporting Bugs
503
504If you find what you think is a bug, you might check the articles
505recently posted to the comp.lang.perl.misc newsgroup and the perl
506bug database at http://rt.perl.org/perlbug/ . There may also be
507information at http://www.perl.org/ , the Perl Home Page.
508
509If you believe you have an unreported bug, please run the B<perlbug>
510program included with your release. Be sure to trim your bug down
511to a tiny but sufficient test case. Your bug report, along with the
512output of C<perl -V>, will be sent off to perlbug@perl.org to be
513analysed by the Perl porting team.
514
515If the bug you are reporting has security implications, which make it
516inappropriate to send to a publicly archived mailing list, then please send
517it to perl5-security-report@perl.org. This points to a closed subscription
518unarchived mailing list, which includes all the core committers, who be able
519to help assess the impact of issues, figure out a resolution, and help
520co-ordinate the release of patches to mitigate or fix the problem across all
521platforms on which Perl is supported. Please only use this address for
522security issues in the Perl core, not for modules independently
523distributed on CPAN.
524
525=head1 SEE ALSO
526
527The F<Changes> file for an explanation of how to view exhaustive details
528on what changed.
529
530The F<INSTALL> file for how to build Perl.
531
532The F<README> file for general stuff.
533
534The F<Artistic> and F<Copying> files for copyright information.
535
536=cut