Commit | Line | Data |
---|---|---|
4c793fe3 FR |
1 | =encoding utf8 |
2 | ||
8ebb9810 | 3 | =for release_engineer |
fb37c85c | 4 | * changelogged up to 45a6a02 |
8ebb9810 | 5 | |
4c793fe3 FR |
6 | =head1 NAME |
7 | ||
8 | [ this is a template for a new perldelta file. Any text flagged as | |
9 | XXX needs to be processed before release. ] | |
10 | ||
11 | perldelta - what is new for perl v5.13.5 | |
12 | ||
13 | =head1 DESCRIPTION | |
14 | ||
15 | This document describes differences between the 5.13.4 release and | |
16 | the 5.13.5 release. | |
17 | ||
18 | If you are upgrading from an earlier release such as 5.13.3, first read | |
19 | L<perl5134delta>, which describes differences between 5.13.3 and | |
20 | 5.13.4. | |
21 | ||
22 | =head1 Notice | |
23 | ||
24 | XXX Any important notices here | |
25 | ||
26 | =head1 Core Enhancements | |
27 | ||
28 | XXX New core language features go here. Summarise user-visible core language | |
29 | enhancements. Particularly prominent performance optimisations could go | |
30 | here, but most should go in the L</Performance Enhancements> section. | |
31 | ||
0c692eed FR |
32 | =head2 Adjacent pairs of nextstate opcodes are now optimized away |
33 | ||
34 | Previously, in code such as | |
35 | ||
36 | use constant DEBUG => 0; | |
37 | ||
38 | sub GAK { | |
39 | warn if DEBUG; | |
40 | print "stuff\n"; | |
41 | } | |
42 | ||
43 | the ops for C<warn if DEBUG;> would be folded to a C<null> op (C<ex-const>), but | |
44 | the C<nextstate> op would remain, resulting in a runtime op dispatch of | |
45 | C<nextstate>, C<nextstate>, ... | |
46 | ||
47 | The execution of a sequence of C<nexstate> ops is indistinguishable from just | |
48 | the last C<nextstate> op, so teach the peephole optimiser to eliminate the first | |
49 | of a pair of C<nextstate> ops. (Except where the first carries a label, as | |
50 | labels mustn't be eliminated by the optimiser, and label usage isn't | |
51 | conclusively known at compile time.) | |
4c793fe3 | 52 | |
85318b69 FR |
53 | =head2 API function to parse statements |
54 | ||
55 | The C<parse_fullstmt> function has been added to allow parsing of a single | |
56 | complete Perl statement. See L<perlapi> for details. | |
57 | ||
58 | =head2 API functions for accessing the runtime hinthash | |
59 | ||
60 | A new C API for introspecting the hinthash C<%^H> at runtime has been added. See | |
78846812 FR |
61 | C<cop_hints_2hv>, C<cop_hints_fetchpvn>, C<cop_hints_fetchpvs>, |
62 | C<cop_hints_fetchsv>, and C<hv_copy_hints_hv> in L<perlapi> for details. | |
85318b69 FR |
63 | |
64 | =head2 C interface to C<caller()> | |
65 | ||
66 | The C<caller_cx> function has been added as an XSUB-writer's equivalent of | |
67 | C<caller()>. See L<perlapi> for details. | |
68 | ||
4c793fe3 FR |
69 | =head1 Security |
70 | ||
71 | XXX Any security-related notices go here. In particular, any security | |
72 | vulnerabilities closed should be noted here rather than in the | |
73 | L</Selected Bug Fixes> section. | |
74 | ||
75 | [ List each security issue as a =head2 entry ] | |
76 | ||
77 | =head1 Incompatible Changes | |
78 | ||
44428a46 FC |
79 | =head2 Magic Variables Outside the Main Package |
80 | ||
81 | In previous versions of perl, magic variables like C<$!>, C<%SIG>, etc. would | |
82 | 'leak' into other packages. So C<%foo::SIG> could be used to access signals, | |
83 | C<${"foo::!"}> (with strict mode off) to access C's C<errno>, etc. | |
84 | ||
85 | This was a bug, or an 'unintentional' feature, which caused various ill | |
86 | effects, such as signal handlers being wiped when modules were loaded, etc. | |
87 | ||
88 | This has been fixed (or the feature has been removed, depending on how you | |
89 | see it). | |
90 | ||
85318b69 FR |
91 | =head2 Smart-matching against array slices |
92 | ||
93 | Previously, the following code resulted in a successful match: | |
94 | ||
95 | my @a = qw(a y0 z); | |
96 | my @b = qw(a x0 z); | |
97 | $a[0 .. $#b] ~~ @b; | |
98 | ||
ebce6c40 FR |
99 | This odd behaviour has now been fixed |
100 | L<[perl #77468]|http://rt.perl.org/rt3//Public/Bug/Display.html?id=77468>. | |
85318b69 | 101 | |
d6747b7a | 102 | =head2 C API changes |
4c793fe3 | 103 | |
d6747b7a NC |
104 | The first argument of the C API function C<Perl_fetch_cop_label> has changed |
105 | from C<struct refcounted he *> to C<COP *>, to better insulate the user from | |
106 | implementation details. | |
4c793fe3 | 107 | |
d6747b7a NC |
108 | This API function was marked as "may change", and likely isn't in use outside |
109 | the core. (Neither an unpacked CPAN, nor Google's codesearch, finds any other | |
110 | references to it.) | |
4c793fe3 FR |
111 | |
112 | =head1 Deprecations | |
113 | ||
114 | XXX Any deprecated features, syntax, modules etc. should be listed here. | |
115 | In particular, deprecated modules should be listed here even if they are | |
116 | listed as an updated module in the L</Modules and Pragmata> section. | |
117 | ||
85318b69 FR |
118 | =head2 Use of qw(...) as parentheses |
119 | ||
120 | Historically the parser fooled itself into thinking that C<qw(...)> literals | |
121 | were always enclosed in parentheses, and as a result you could sometimes omit | |
122 | parentheses around them: | |
123 | ||
124 | for $x qw(a b c) { ... } | |
125 | ||
126 | The parser no longer lies to itself in this way. Wrap the list literal in | |
127 | parentheses, like: | |
128 | ||
129 | for $x (qw(a b c)) { ... } | |
4c793fe3 FR |
130 | |
131 | =head1 Performance Enhancements | |
132 | ||
133 | XXX Changes which enhance performance without changing behaviour go here. There | |
134 | may well be none in a stable release. | |
135 | ||
136 | [ List each enhancement as a =item entry ] | |
137 | ||
138 | =over 4 | |
139 | ||
140 | =item * | |
141 | ||
0c692eed FR |
142 | Scalars containing regular expressions now only allocate the part of the C<SV> |
143 | body they actually use, saving some space. | |
4c793fe3 | 144 | |
e2babdfb FR |
145 | =item * |
146 | ||
147 | Compiling regular expressions has been made faster for the case where upgrading | |
148 | the regex to utf8 is necessary, but that isn't known when the compilation | |
149 | begins. | |
150 | ||
4c793fe3 FR |
151 | =back |
152 | ||
153 | =head1 Modules and Pragmata | |
154 | ||
155 | XXX All changes to installed files in F<cpan/>, F<dist/>, F<ext/> and F<lib/> | |
156 | go here. If Module::CoreList is updated, generate an initial draft of the | |
157 | following sections using F<Porting/corelist-perldelta.pl>, which prints stub | |
158 | entries to STDOUT. Results can be pasted in place of the '=head2' entries | |
159 | below. A paragraph summary for important changes should then be added by hand. | |
160 | In an ideal world, dual-life modules would have a F<Changes> file that could be | |
161 | cribbed. | |
162 | ||
163 | [ Within each section, list entries as a =item entry ] | |
164 | ||
165 | =head2 New Modules and Pragmata | |
166 | ||
167 | =over 4 | |
168 | ||
169 | =item * | |
170 | ||
4997ece7 | 171 | XXX |
4c793fe3 FR |
172 | |
173 | =back | |
174 | ||
175 | =head2 Updated Modules and Pragmata | |
176 | ||
177 | =over 4 | |
178 | ||
179 | =item * | |
180 | ||
8ebb9810 FR |
181 | C<blib> has been upgraded from version 1.05 to 1.06. |
182 | ||
183 | =item * | |
184 | ||
b3364d98 | 185 | C<bignum>, C<bigint>, and C<bigrat> have been upgraded from version 0.23 to |
7b8ae169 | 186 | 0.25. |
b3364d98 FR |
187 | |
188 | =item * | |
189 | ||
5355f933 FR |
190 | C<open> has been upgraded from version 1.07 to 1.08. |
191 | ||
192 | =item * | |
193 | ||
4997ece7 FR |
194 | C<warnings> has been upgraded from version 1.10 to 1.11. |
195 | ||
196 | C<warnings::register> has been upgraded from version 1.01 to 1.02. | |
197 | ||
198 | It is now possible to register warning categories other than the names of | |
ebce6c40 | 199 | packages using C<warnings::register>. See L<perllexwarn> for more information. |
4997ece7 FR |
200 | |
201 | =item * | |
202 | ||
fb37c85c | 203 | C<B::Debug> has been upgraded from version 1.12 to 1.16. |
df91fef1 FR |
204 | |
205 | =item * | |
206 | ||
b80fbfc1 | 207 | C<Data::Dumper> has been upgraded from version 2.126 to 2.128. |
ccb45ef4 FR |
208 | |
209 | This fixes a crash when using custom sort functions that might cause the stack | |
210 | to change. | |
211 | ||
212 | =item * | |
213 | ||
fb37c85c FR |
214 | C<Encode> has been upgraded from version 2.39 to 2.40. |
215 | ||
216 | =item * | |
217 | ||
48c1efd2 FR |
218 | C<Errno> has been upgraded from version 1.12 to 1.13. |
219 | ||
220 | On some platforms with unusual header files, like Win32/gcc using mingw64 | |
221 | headers, some constants which weren't actually error numbers have been exposed | |
ebce6c40 FR |
222 | by C<Errno>. This has been fixed |
223 | L<[perl #77416]|http://rt.perl.org/rt3//Public/Bug/Display.html?id=77416>. | |
48c1efd2 FR |
224 | |
225 | =item * | |
226 | ||
37f6eaa4 | 227 | C<ExtUtils::MakeMaker> has been upgraded from version 6.56 to 6.57_05. |
0c692eed FR |
228 | |
229 | =item * | |
230 | ||
b3364d98 FR |
231 | C<Filter::Simple> has been upgraded from version 0.84 to 0.85. |
232 | ||
233 | =item * | |
234 | ||
78846812 FR |
235 | C<Hash::Util> has been upgraded from version 0.08 to 0.09. |
236 | ||
237 | =item * | |
238 | ||
2aa6a1fb FR |
239 | C<Math::BigInt> has been upgraded from version 1.89_01 to 1.95. |
240 | C<Math::BigInt::Calc> has been upgraded from version 0.52 to 0.54. | |
48c1efd2 | 241 | |
a714e9cc | 242 | This fixes, among other things, incorrect results when computing binomial |
ebce6c40 FR |
243 | coefficients |
244 | L<[perl #77640]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=77640>. | |
48c1efd2 FR |
245 | |
246 | =item * | |
247 | ||
68223daa | 248 | C<Math::BigInt::FastCalc> has been upgraded from version 0.19 to 0.22. |
b3364d98 FR |
249 | |
250 | =item * | |
251 | ||
c32198f6 | 252 | C<Math::BigRat> has been upgraded from version 0.24 to 0.26. |
07d14be5 FR |
253 | |
254 | =item * | |
255 | ||
85318b69 FR |
256 | C<Module::CoreList> has been upgraded from version 2.37 to 2.38. |
257 | ||
258 | =item * | |
259 | ||
df91fef1 FR |
260 | C<POSIX> has been upgraded from version 1.19 to 1.20. |
261 | ||
262 | It now includes constants for POSIX signal constants. | |
263 | ||
264 | =item * | |
265 | ||
e2babdfb FR |
266 | C<Safe> has been upgraded from version 2.27 to 2.28. |
267 | ||
268 | This fixes a possible infinite loop when looking for coderefs. | |
269 | ||
270 | =item * | |
271 | ||
c9a84c8b NC |
272 | C<Tie::Hash> has been upgraded from version 1.03 to 1.04. |
273 | ||
48c1efd2 | 274 | Calling C<< Tie::Hash->TIEHASH() >> used to loop forever. Now it C<croak>s. |
c9a84c8b NC |
275 | |
276 | =item * | |
277 | ||
ccb45ef4 | 278 | C<Unicode::Collate> has been upgraded from version 0.56 to 0.59. |
4c793fe3 | 279 | |
48c1efd2 FR |
280 | =item * |
281 | ||
282 | C<XSLoader> has been upgraded from version 0.10 to 0.11. | |
283 | ||
4c793fe3 FR |
284 | =back |
285 | ||
286 | =head2 Removed Modules and Pragmata | |
287 | ||
288 | =over 4 | |
289 | ||
290 | =item * | |
291 | ||
292 | XXX | |
293 | ||
294 | =back | |
295 | ||
296 | =head1 Documentation | |
297 | ||
298 | XXX Changes to files in F<pod/> go here. Consider grouping entries by | |
299 | file and be sure to link to the appropriate page, e.g. L<perlfunc>. | |
300 | ||
301 | =head2 New Documentation | |
302 | ||
303 | XXX Changes which create B<new> files in F<pod/> go here. | |
304 | ||
305 | =head3 L<XXX> | |
306 | ||
307 | XXX Description of the purpose of the new file here | |
308 | ||
309 | =head2 Changes to Existing Documentation | |
310 | ||
311 | XXX Changes which significantly change existing files in F<pod/> go here. | |
312 | However, any changes to F<pod/perldiag.pod> should go in the L</Diagnostics> | |
313 | section. | |
314 | ||
0c692eed | 315 | =head3 L<perlapi> |
4c793fe3 FR |
316 | |
317 | =over 4 | |
318 | ||
319 | =item * | |
320 | ||
0c692eed | 321 | Many of the optree construction functions are now documented. |
4c793fe3 FR |
322 | |
323 | =back | |
324 | ||
e2babdfb FR |
325 | =head3 L<perlfaq> |
326 | ||
e2babdfb FR |
327 | L<perlfaq>, L<perlfaq2>, L<perlfaq4>, L<perlfaq5>, L<perlfaq6>, L<perlfaq8>, and |
328 | L<perlfaq9> have seen various updates and modernisations. | |
329 | ||
4c793fe3 FR |
330 | =head1 Diagnostics |
331 | ||
332 | The following additions or changes have been made to diagnostic output, | |
333 | including warnings and fatal error messages. For the complete list of | |
334 | diagnostic messages, see L<perldiag>. | |
335 | ||
336 | XXX New or changed warnings emitted by the core's C<C> code go here. Also | |
337 | include any changes in L<perldiag> that reconcile it to the C<C> code. | |
338 | ||
339 | [ Within each section, list entries as a =item entry ] | |
340 | ||
341 | =head2 New Diagnostics | |
342 | ||
343 | XXX Newly added diagnostic messages go here | |
344 | ||
345 | =over 4 | |
346 | ||
347 | =item * | |
348 | ||
85318b69 | 349 | Use of qw(...) as parentheses is deprecated |
4c793fe3 | 350 | |
ebce6c40 FR |
351 | See L</"Use of qw(...) as parentheses"> for details. |
352 | ||
4c793fe3 FR |
353 | =back |
354 | ||
355 | =head2 Changes to Existing Diagnostics | |
356 | ||
357 | XXX Changes (i.e. rewording) of diagnostic messages go here | |
358 | ||
359 | =over 4 | |
360 | ||
361 | =item * | |
362 | ||
363 | XXX | |
364 | ||
365 | =back | |
366 | ||
367 | =head1 Utility Changes | |
368 | ||
369 | XXX Changes to installed programs such as F<perlbug> and F<xsubpp> go | |
370 | here. Most of these are built within the directories F<utils> and F<x2p>. | |
371 | ||
372 | [ List utility changes as a =head3 entry for each utility and =item | |
373 | entries for each change | |
374 | Use L<XXX> with program names to get proper documentation linking. ] | |
375 | ||
48c1efd2 | 376 | =head3 L<h2ph> |
4c793fe3 FR |
377 | |
378 | =over 4 | |
379 | ||
380 | =item * | |
381 | ||
ebce6c40 FR |
382 | The use of a deprecated C<goto> construct has been removed |
383 | L<[perl #74404]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=74404>. | |
4c793fe3 FR |
384 | |
385 | =back | |
386 | ||
387 | =head1 Configuration and Compilation | |
388 | ||
389 | XXX Changes to F<Configure>, F<installperl>, F<installman>, and analogous tools | |
390 | go here. Any other changes to the Perl build process should be listed here. | |
391 | However, any platform-specific changes should be listed in the | |
392 | L</Platform Support> section, instead. | |
393 | ||
394 | [ List changes as a =item entry ]. | |
395 | ||
396 | =over 4 | |
397 | ||
398 | =item * | |
399 | ||
400 | XXX | |
401 | ||
402 | =back | |
403 | ||
404 | =head1 Testing | |
405 | ||
406 | XXX Any significant changes to the testing of a freshly built perl should be | |
407 | listed here. Changes which create B<new> files in F<t/> go here as do any | |
408 | large changes to the testing harness (e.g. when parallel testing was added). | |
409 | Changes to existing files in F<t/> aren't worth summarising, although the bugs | |
410 | that they represent may be covered elsewhere. | |
411 | ||
412 | [ List each test improvement as a =item entry ] | |
413 | ||
414 | =over 4 | |
415 | ||
416 | =item * | |
417 | ||
0c692eed FR |
418 | A rare race condition in F<t/op/while_readdir.t> has been fixed, stopping it |
419 | from failing randomly when running tests in parallel. | |
4c793fe3 | 420 | |
44428a46 FC |
421 | =item * |
422 | ||
423 | The new F<t/op/leaky-magic.t> script tests that magic applied to variables in | |
424 | the main packages does not affect other packages. | |
425 | ||
4c793fe3 FR |
426 | =back |
427 | ||
428 | =head1 Platform Support | |
429 | ||
430 | XXX Any changes to platform support should be listed in the sections below. | |
431 | ||
432 | [ Within the sections, list each platform as a =item entry with specific | |
433 | changes as paragraphs below it. ] | |
434 | ||
435 | =head2 New Platforms | |
436 | ||
437 | XXX List any platforms that this version of perl compiles on, that previous | |
438 | versions did not. These will either be enabled by new files in the F<hints/> | |
439 | directories, or new subdirectories and F<README> files at the top level of the | |
440 | source tree. | |
441 | ||
442 | =over 4 | |
443 | ||
444 | =item XXX-some-platform | |
445 | ||
446 | XXX | |
447 | ||
448 | =back | |
449 | ||
450 | =head2 Discontinued Platforms | |
451 | ||
452 | XXX List any platforms that this version of perl no longer compiles on. | |
453 | ||
454 | =over 4 | |
455 | ||
456 | =item XXX-some-platform | |
457 | ||
458 | XXX | |
459 | ||
460 | =back | |
461 | ||
462 | =head2 Platform-Specific Notes | |
463 | ||
464 | XXX List any changes for specific platforms. This could include configuration | |
465 | and compilation changes or changes in portability/compatibility. However, | |
466 | changes within modules for platforms should generally be listed in the | |
467 | L</Modules and Pragmata> section. | |
468 | ||
469 | =over 4 | |
470 | ||
0c692eed | 471 | =item VMS |
4c793fe3 | 472 | |
0c692eed FR |
473 | =over 4 |
474 | ||
475 | =item * | |
476 | ||
ebce6c40 | 477 | Make PerlIOUnix_open honour default permissions on VMS. |
0c692eed | 478 | |
ebce6c40 FR |
479 | When C<perlio> became the default and C<unixio> became the default bottom layer, |
480 | the most common path for creating files from Perl became C<PerlIOUnix_open>, | |
481 | which has always explicitly used C<0666> as the permission mask. | |
0c692eed FR |
482 | |
483 | To avoid this, C<0777> is now passed as the permissions to C<open()>. In the VMS | |
484 | CRTL, C<0777> has a special meaning over and above intersecting with the current | |
485 | umask; specifically, it allows Unix syscalls to preserve native default | |
486 | permissions. | |
487 | ||
488 | =back | |
4c793fe3 FR |
489 | |
490 | =back | |
491 | ||
492 | =head1 Internal Changes | |
493 | ||
494 | XXX Changes which affect the interface available to C<XS> code go here. | |
495 | Other significant internal changes for future core maintainers should | |
496 | be noted as well. | |
497 | ||
498 | [ List each test improvement as a =item entry ] | |
499 | ||
500 | =over 4 | |
501 | ||
502 | =item * | |
503 | ||
ebce6c40 | 504 | C<CALL_FPTR> and C<CPERLscope> have been deprecated. |
0c692eed FR |
505 | |
506 | Those are left from an old implementation of C<MULTIPLICITY> using C++ objects, | |
507 | which has been removed in 5.8. Nowadays these macros do exactly nothing, so they | |
508 | shouldn't be used anymore. | |
509 | ||
510 | For compatibility, they are still defined for external C<XS> code. Only | |
511 | extensions defining C<PERL_CORE> must be updated now. | |
512 | ||
513 | =item * | |
514 | ||
515 | C<lex_stuff_pvs()> has been added as a convenience macro wrapping | |
516 | C<lex_stuff_pvn()> for literal strings. | |
517 | ||
518 | =item * | |
519 | ||
520 | The recursive part of the peephole optimizer is how hookable. | |
521 | ||
522 | In addition to C<PL_peepp>, for hooking into the toplevel peephole optimizer, a | |
523 | C<PL_rpeepp> is now available to hook into the optimizer recursing into | |
524 | side-chains of the optree. | |
4c793fe3 FR |
525 | |
526 | =back | |
527 | ||
528 | =head1 Selected Bug Fixes | |
529 | ||
530 | XXX Important bug fixes in the core language are summarised here. | |
531 | Bug fixes in files in F<ext/> and F<lib/> are best summarised in | |
532 | L</Modules and Pragmata>. | |
533 | ||
534 | [ List each fix as a =item entry ] | |
535 | ||
536 | =over 4 | |
537 | ||
538 | =item * | |
539 | ||
f4beb78f | 540 | A regression introduced in perl 5.12.0, making |
0c692eed FR |
541 | C<< my $x = 3; $x = length(undef) >> result in C<$x> set to C<3> has been |
542 | fixed. C<$x> will now be C<undef>. | |
543 | ||
544 | =item * | |
545 | ||
546 | A fatal error in regular expressions when processing UTF-8 data has been fixed | |
ebce6c40 | 547 | L<[perl #75680]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=75680>. |
0c692eed FR |
548 | |
549 | =item * | |
550 | ||
551 | An erroneous regular expression engine optimization, that caused regex verbs | |
552 | like C<*COMMIT> to sometimes be ignored, has been removed. | |
553 | ||
554 | =item * | |
555 | ||
ebce6c40 FR |
556 | The perl debugger now also works in taint mode |
557 | L<[perl #76872]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=76872>. | |
4c793fe3 | 558 | |
8ebb9810 FR |
559 | =item * |
560 | ||
561 | Several memory leaks in cloning and freeing threaded perl interpreters have been | |
ebce6c40 | 562 | fixed L<[perl #77352]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=77352>. |
8ebb9810 | 563 | |
48c1efd2 FR |
564 | =item * |
565 | ||
566 | A possible string corruption when doing regular expression matches on overloaded | |
ebce6c40 FR |
567 | objects has been fixed |
568 | L<[perl #77084]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=77084>. | |
48c1efd2 | 569 | |
44428a46 FC |
570 | =item * |
571 | ||
572 | Magic applied to variables in the main package no longer affects other | |
ebce6c40 FR |
573 | packages. See L</Magic Variables Outside the Main Package>, above |
574 | L<[perl #76138]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=76138>. | |
44428a46 | 575 | |
f4beb78f FC |
576 | =item * |
577 | ||
578 | Opening a glob reference via C<< open $fh, ">", \*glob >> will no longer cause | |
579 | the glob to be corrupted when the file handle is printed to. This would cause | |
ebce6c40 FR |
580 | perl to crash whenever the glob's contents were accessed |
581 | L<[perl #77492]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=77492>. | |
f4beb78f | 582 | |
ccb45ef4 FR |
583 | =item * |
584 | ||
d827d4bf | 585 | The postincrement and postdecrement operators, C<++> and C<--> used to cause |
ccb45ef4 FR |
586 | leaks when being used on references. This has now been fixed. |
587 | ||
85318b69 FR |
588 | =item * |
589 | ||
ebce6c40 FR |
590 | A bug when replacing the glob of a loop variable within the loop has been fixed |
591 | L<[perl #21469]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=21469>. This | |
592 | means the following code will no longer crash: | |
85318b69 FR |
593 | |
594 | for $x (...) { | |
595 | *x = *y; | |
596 | } | |
597 | ||
80b6a949 AB |
598 | =item * |
599 | ||
600 | Perl would segfault if the undocumented C<Internals> functions that | |
601 | used reference prototypes were called with the C<&foo()> syntax, | |
ebce6c40 FR |
602 | e.g. C<&Internals::SvREADONLY(undef)> |
603 | L<[perl #77776]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=77776>. | |
80b6a949 AB |
604 | |
605 | These functions now call C<SvROK> on their arguments before | |
606 | dereferencing them with C<SvRV>, and we test for this case in | |
607 | F<t/lib/universal.t>. | |
608 | ||
e2babdfb FR |
609 | =item * |
610 | ||
611 | When assigning a list with duplicated keys to a hash, the assignment used to | |
612 | return garbage and/or freed values: | |
613 | ||
614 | @a = %h = (list with some duplicate keys); | |
615 | ||
616 | This has now been fixed [perl #31865]. | |
617 | ||
618 | =item * | |
619 | ||
620 | An earlier release of the 5.13 series of perl changed the semantics of opening a | |
621 | reference to a copy of a glob: | |
622 | ||
623 | my $var = *STDOUT; | |
624 | open my $fh, '>', \$var; | |
625 | ||
626 | This was a mistake, and the previous behaviour from perl 5.10 and 5.12, which is | |
627 | to treat \$var as a scalar reference, has now been restored. | |
628 | ||
346e4e56 KW |
629 | =item * |
630 | ||
631 | The regular expression bracketed character class C<[\8\9]> was | |
632 | effectively the same as C<[89\000]>, incorrectly matching a NULL character. | |
633 | It also gave incorrect warnings that the C<8> and C<9> were ignored. | |
634 | Now C<[\8\9]> is the same as C<[89]> and gives legitimate warnings that | |
635 | C<\8> and C<\9> are unrecognized escape sequences, passed-through. | |
636 | ||
78846812 FR |
637 | =item * |
638 | ||
ebce6c40 FR |
639 | C<warn()> now respects utf8-encoded scalars |
640 | L<[perl #45549]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=45549>. | |
78846812 | 641 | |
4c793fe3 FR |
642 | =back |
643 | ||
644 | =head1 Known Problems | |
645 | ||
646 | XXX Descriptions of platform agnostic bugs we know we can't fix go here. Any | |
647 | tests that had to be C<TODO>ed for the release would be noted here, unless | |
648 | they were specific to a particular platform (see below). | |
649 | ||
650 | This is a list of some significant unfixed bugs, which are regressions | |
651 | from either 5.XXX.XXX or 5.XXX.XXX. | |
652 | ||
653 | [ List each fix as a =item entry ] | |
654 | ||
655 | =over 4 | |
656 | ||
657 | =item * | |
658 | ||
659 | XXX | |
660 | ||
661 | =back | |
662 | ||
663 | =head1 Obituary | |
664 | ||
665 | XXX If any significant core contributor has died, we've added a short obituary | |
666 | here. | |
667 | ||
668 | =head1 Acknowledgements | |
669 | ||
670 | XXX The list of people to thank goes here. | |
671 | ||
672 | =head1 Reporting Bugs | |
673 | ||
674 | If you find what you think is a bug, you might check the articles | |
675 | recently posted to the comp.lang.perl.misc newsgroup and the perl | |
676 | bug database at http://rt.perl.org/perlbug/ . There may also be | |
677 | information at http://www.perl.org/ , the Perl Home Page. | |
678 | ||
679 | If you believe you have an unreported bug, please run the B<perlbug> | |
680 | program included with your release. Be sure to trim your bug down | |
681 | to a tiny but sufficient test case. Your bug report, along with the | |
682 | output of C<perl -V>, will be sent off to perlbug@perl.org to be | |
683 | analysed by the Perl porting team. | |
684 | ||
685 | If the bug you are reporting has security implications, which make it | |
686 | inappropriate to send to a publicly archived mailing list, then please send | |
687 | it to perl5-security-report@perl.org. This points to a closed subscription | |
688 | unarchived mailing list, which includes all the core committers, who be able | |
689 | to help assess the impact of issues, figure out a resolution, and help | |
690 | co-ordinate the release of patches to mitigate or fix the problem across all | |
691 | platforms on which Perl is supported. Please only use this address for | |
692 | security issues in the Perl core, not for modules independently | |
693 | distributed on CPAN. | |
694 | ||
695 | =head1 SEE ALSO | |
696 | ||
697 | The F<Changes> file for an explanation of how to view exhaustive details | |
698 | on what changed. | |
699 | ||
700 | The F<INSTALL> file for how to build Perl. | |
701 | ||
702 | The F<README> file for general stuff. | |
703 | ||
704 | The F<Artistic> and F<Copying> files for copyright information. | |
705 | ||
706 | =cut |