-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathperl5271cdelta.html
753 lines (483 loc) · 32.5 KB
/
perl5271cdelta.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
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
<?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></title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rev="made" href="mailto:[email protected]" />
</head>
<body style="background-color: white">
<ul id="index">
<li><a href="#NAME">NAME</a></li>
<li><a href="#DESCRIPTION">DESCRIPTION</a></li>
<li><a href="#Core-Enhancements">Core Enhancements</a>
<ul>
<li><a href="#class-role-method-has">class, role, method, has</a></li>
<li><a href="#Check-and-normalize-stringified-names">Check and normalize stringified names</a></li>
<li><a href="#strict-names">strict names</a></li>
</ul>
</li>
<li><a href="#Deprecations">Deprecations</a>
<ul>
<li><a href="#Module-removals">Module removals</a></li>
</ul>
</li>
<li><a href="#Performance-Enhancements">Performance 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="#Updated-Modules-and-Pragmata">Updated Modules and Pragmata</a></li>
</ul>
</li>
<li><a href="#Documentation">Documentation</a>
<ul>
<li><a href="#New-Documentation">New Documentation</a>
<ul>
<li><a href="#perlclass">perlclass</a></li>
</ul>
</li>
<li><a href="#Changes-to-Existing-Documentation">Changes to Existing Documentation</a>
<ul>
<li><a href="#perlxs-perlxstut-perlxstypemap">perlxs, perlxstut, perlxstypemap</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="#Diagnostics">Diagnostics</a>
<ul>
<li><a href="#New-Diagnostics">New Diagnostics</a>
<ul>
<li><a href="#New-Warnings">New Warnings</a></li>
</ul>
</li>
<li><a href="#Changes-to-Existing-Diagnostics">Changes to Existing Diagnostics</a></li>
</ul>
</li>
<li><a href="#Configuration-and-Compilation">Configuration and Compilation</a></li>
<li><a href="#Utility-Changes">Utility Changes</a>
<ul>
<li><a href="#cperlivp">cperlivp</a></li>
</ul>
</li>
<li><a href="#Testing">Testing</a></li>
<li><a href="#Platform-Support">Platform Support</a>
<ul>
<li><a href="#Platform-Specific-Notes">Platform-Specific Notes</a></li>
</ul>
</li>
<li><a href="#Internal-Changes">Internal Changes</a></li>
<li><a href="#Selected-Bug-Fixes">Selected Bug Fixes</a></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>perl5271cdelta - what is new for cperl v5.27.1</p>
<h1 id="DESCRIPTION">DESCRIPTION</h1>
<p>This document describes the differences between the cperl 5.27.0 and the cperl 5.27.1 releases.</p>
<p>If you are upgrading from an earlier release such as v5.24.2c, first read the <a>perl525*cdelta</a> documentation, which describes differences between v5.25.1c and v5.26.0c</p>
<h1 id="Core-Enhancements">Core Enhancements</h1>
<h2 id="class-role-method-has">class, role, method, has</h2>
<p>cperl has now classes, roles, methods and fields. Old user-subroutines or parser-hacks with these names are still supported, but not recommended. See <a href="/cperl/perlclass.html">perlclass</a>.</p>
<h2 id="Check-and-normalize-stringified-names">Check and normalize stringified names</h2>
<p>Before symbols and identifiers created from strings at run-time were added asis. Now those names are treated almost as in the parser at compile-time, i.e. unicode is normalized, mixed Unicode scripts are checked at run-time also. cperl-only.</p>
<p>Behaviour of <a href="/cperl/perlapi.html#valid_ident">"valid_ident" in perlapi</a>:</p>
<pre><code> ${"\xc3\x28"} => FALSE. Illegal unicode, but no warning or error,
unless under strict names.
${"E\x{45}\x{301}"} => TRUE. Normalized to $E\x{c9}
${"एxṰர::ʦፖㄡsȨ"} => FALSE. Error: Invalid script Tamil in identifier
ர::ʦፖㄡsȨ for U+0BB0. Have Devanagari</code></pre>
<p>See below <a href="#strict-names">"strict names"</a>. <code>use strict</code> fatalizes now any run-time identifier parsing problem.</p>
<h2 id="strict-names">strict names</h2>
<p>strict names is the default when using <code>use strict</code>. Reject illegal identifiers at run-time when created dynamically from strings, which would be rejected at compile-time. cperl-only.</p>
<pre><code> use strict "names";
${"\$var"} => Invalid identifier "$var" while "strict names"
${"\xff"} => Invalid identifier "\377" while "strict names"
${"\xc3\x28"} => Invalid identifier "\303(" while "strict names"</code></pre>
<p>See <a href="/cperl/perldata.html#Identifier-parsing">"Identifier parsing" in perldata</a> and <a href="http://perl11.github.io/blog/strict-names.html">http://perl11.github.io/blog/strict-names.html</a></p>
<h1 id="Deprecations">Deprecations</h1>
<h2 id="Module-removals">Module removals</h2>
<p>The following modules will be removed from the core distribution in a future release, and will at that time need to be installed from CPAN. Distributions on CPAN which require these modules will need to list them as prerequisites.</p>
<p>The core versions of these modules will now issue <code>"deprecated"</code>-category warnings to alert you to this fact. To silence these deprecation warnings, install the modules in question from CPAN.</p>
<p>Note that these are (with rare exceptions) fine modules that you are encouraged to continue to use. Their disinclusion from core primarily hinges on their necessity to bootstrapping a fully functional, CPAN-capable Perl installation, not usually on concerns over their design.</p>
<dl>
<dt id="B::Debug"><a>B::Debug</a></dt>
<dd>
<p>will be removed from core with 5.30, and needs to be installed from CPAN then. Best together with <a>B::Flags</a>.</p>
</dd>
</dl>
<h1 id="Performance-Enhancements">Performance Enhancements</h1>
<ul>
<li><p>XS calls were made faster again. Previously cperl (with 5.22.1c) fell from pure perl calls to XS calls and changed the call type to ENTERXSSUB for faster subsequent invocations. This made bigger examples ~10% faster. Now the compiler detects calls to XS code and changes the type to ENTERXSSUB. Also the method cache code checks now for an XS call and changes the type of the next OP. Overall the improvement is ~3.5%, but it depends on the frequency of XS calls. It's 0.5-1% slower without any XS call. Note that p5p decided to delete this feature request from it's TODO list.</p>
<p>The optree is a bit slimmer. Before:</p>
<pre><code> $ cperl5.27.0d-nt -Dt -e'use strict'
(-e:1) nextstate
(-e:1) const(PV("strict.pm"))
(-e:1) require
(-e:1) nextstate
(-e:1) pushmark
(-e:1) const(PV("strict"))
(-e:1) method_named(->import)
(-e:1) entersub(strict::import)
(-e:1) enterxssub(strict::import)
(-e:1) leavesub</code></pre>
<p>Now:</p>
<pre><code> $ cperl5.27.1d-nt -Dt -e'use strict'
(-e:1) nextstate
(-e:1) const(PV("strict.pm"))
(-e:1) require
(-e:1) nextstate
(-e:1) pushmark
(-e:1) const(PV("strict"))
(-e:1) method_named(->import)
(-e:1) enterxssub(strict::import)
(-e:1) leavesub</code></pre>
<p>Note that this is still not optimal, as strict::import can be compile-time optimized from a dynamic method call to a static function call. A regression from 5.22.1c. See <a href="http://blogs.perl.org/users/rurban/2011/06/how-perl-calls-subs-and-methods.html">http://blogs.perl.org/users/rurban/2011/06/how-perl-calls-subs-and-methods.html</a></p>
</li>
<li><p>Most checks for readonly packages are now avoided, needed to bypass the "Attempt to access disallowed key %s in the restricted hash %CLASS::" errors. Stash lookup now got a <b>GV_CLASS</b> flag and <code>hv_fetch*_ifexists</code> macros, which does the EXISTS and FETCH hash actions in the stash on one.</p>
</li>
<li><p>Optimized the loop op ITER to jump directly to the subsequent AND op. For an empty body, this cuts about 20% off the time of an iteration. Backported from perl-5.27.3. This is a simplier implementation of the cperl <i>feature/gh138-iter-and</i> branch from <a href="https://github.com/perl11/cperl/issues/138">[cperl #138]</a>.</p>
</li>
</ul>
<h1 id="Modules-and-Pragmata">Modules and Pragmata</h1>
<h2 id="New-Modules-and-Pragmata">New Modules and Pragmata</h2>
<dl>
<dt id="Mu-0.01"><a href="/cperl/lib/Mu.html">Mu</a> 0.01</dt>
<dd>
<p>For now only <code>new</code> and <code>CREATE</code>, implemented as XS builtins.</p>
</dd>
<dt id="Metamodel"><a href="/cperl/lib/Metamodel.html">Metamodel</a></dt>
<dd>
<p>Just the documentation for the perl6 MOP.</p>
</dd>
</dl>
<h2 id="Updated-Modules-and-Pragmata">Updated Modules and Pragmata</h2>
<dl>
<dt id="attributes-1.12c"><a href="/cperl/lib/attributes.html">attributes</a> 1.12c</dt>
<dd>
<p>Fixed :const parsing with SVs (cperl-only). Previously :const would set the containing sub to :const, now it sets the lexical to readonly, with deferring the attributes::import call after an assignment.</p>
<pre><code> my %h :const = (a => 1);
=>
assign %h = (...);
attributes->import(PACKAGE, \%h, const);</code></pre>
<p>See <a href="https://github.com/perl11/cperl/issues/294">[cperl #294]</a>.</p>
</dd>
<dt id="B-1.68_08"><a href="/cperl/lib/B.html">B</a> 1.68_08</dt>
<dd>
<p>Add non-destructive $cv->PUREGV method, which does not create a GV from a CvNAMED $cv. Warning: $cv->GV does create a GV from a CvNAMED $cv.</p>
<p>Internal Refactor: thread API</p>
<p>Add many missing methods and docs. Some from B::C.</p>
</dd>
<dt id="B::C-1.55_04"><a href="/cperl/lib/B/C.html">B::C</a> 1.55_04</dt>
<dd>
<p>Protect from destructive $cv->GV, renamed is_lexsub to is_named, allow @0, &0, ... types.</p>
</dd>
<dt id="B::Debug-1.25"><a>B::Debug</a> 1.25</dt>
<dd>
<p>Deprecated from CORE, will not be in 5.30 anymore. Avoid destructive CvNAMED vivification to GVs. Add cperl features.</p>
</dd>
<dt id="base-2.26c"><a href="/cperl/lib/base.html">base</a> 2.26c</dt>
<dd>
<p>Turn off HvCLASS again, just turn on SvREADONLY <code>@ISA</code>. With all the new class features, we cannot and should not compete.</p>
<p>The problem is the new sub as :method warning with classes, which would cause all Test::Simple methods to be declared as :method, as they derive from base.</p>
</dd>
<dt id="Cpanel::JSON::XS-3.0237"><a href="/cperl/lib/Cpanel/JSON/XS.html">Cpanel::JSON::XS</a> 3.0237</dt>
<dd>
<p>Stringify true again as "1". Disallow duplicate keys by default, only allow them in relaxed mode. De-fragilize t/96_mojo.t false test to "". It mostly is. Fix and unify utf8 handling with 5.6.2 and improve many utf8 tests. Add tests for boolean sv_yes and sv_no. Check for correct module in %INC. Relax inf/nan detection for newer msvcrt.dll runtime versions (it's now almost ANSI).</p>
</dd>
<dt id="Devel::Peek-1.26_02"><a href="/cperl/lib/Devel/Peek.html">Devel::Peek</a> 1.26_02</dt>
<dd>
<p>Add TYPECHECKED, RETTYPE and pad var names and types.</p>
</dd>
<dt id="Devel::PPPort-3.36_02"><a href="/cperl/lib/Devel/PPPort.html">Devel::PPPort</a> 3.36_02</dt>
<dd>
<p>Restore silence under <code>make -s</code>. I broke it in cperl 5.27.0</p>
<p>Add <code>#if { CPERL && VERSION </code> 5.26.0 }> support, support parser enum expectation.</p>
</dd>
<dt id="deprecate-0.03_01"><a href="/cperl/lib/deprecate.html">deprecate</a> 0.03_01</dt>
<dd>
<p>Add pod synopsis for modules for older perls.</p>
</dd>
<dt id="Encode-2.92"><a href="/cperl/lib/Encode.html">Encode</a> 2.92</dt>
<dd>
<p>Skip the flapping test <i>t/Aliases.t</i> on threaded smokers, with random segfaults. This is a long standing core bug, with PMOP aliases or clone. First observed at <a href="https://github.com/rurban/perl-compiler/issues/73">https://github.com/rurban/perl-compiler/issues/73</a> (since 5.6)</p>
<p>Stop directory tweaking $Encode::Encoding{utf8}</p>
<p>Fix gcc warnings for older gcc < 4.0</p>
<p>Where possible do not depend on value of $@, instead use return value of eval</p>
<p>Fix more XS problems in Encode.xs file</p>
<p>Load modules Encode::MIME::Name and Storable normally</p>
<p>Remove no warnings 'redefine'; and correctly loaddependences</p>
<p>Remove PP stubs and reformat predefine_encodings()</p>
<p>Run Encode XS BOOT code at compile time</p>
<p>Use Encode::define_encoding and propagate carp/croak message</p>
<p>cperl fixes: encoding undeprecated, no strict hashpairs</p>
<p>Cleanup code for handling fallback/replacement characters</p>
</dd>
<dt id="ExtUtils::CBuilder-0.280226"><a href="/cperl/lib/ExtUtils/CBuilder.html">ExtUtils::CBuilder</a> 0.280226</dt>
<dd>
<p>Fix C++ compiler detection (RT #131749)</p>
</dd>
<dt id="ExtUtils::Install-2.14"><a href="/cperl/lib/ExtUtils/Install.html">ExtUtils::Install</a> 2.14</dt>
<dd>
<p>- Fix tests for when perl path contains a space</p>
<p>- Fix win32 check</p>
<p>- 'make -s' support: set $INSTALL_QUIET automatically</p>
<p>- Optimisations:</p>
<pre><code> * use our instead of vars
* lazy load modules
* make OS variables into constants
* move some calculations out of a loop</code></pre>
<p>- Removed instructions using Build.PL from README</p>
<p>- Load Win32API::File for _move_file_at_boot only when needed</p>
<p>- Allow disabling autosplit by omitting autosplit dir</p>
</dd>
<dt id="ExtUtils::MakeMaker-8.30_04"><a href="/cperl/lib/ExtUtils/MakeMaker.html">ExtUtils::MakeMaker</a> 8.30_04</dt>
<dd>
<p>Merge our fixes to upstream 7.30 (which has e.g. the dlltool mingw fixes). Many fixes were already in, but some new upstream bugs crept in.</p>
<p>Support IO::Scalar handle as $parsefile argument to ExtUtils::MM_Unix::parse_version().</p>
<p>fix Invalid Locale symbol name. Invalid identifier "ENCODING_UTF-8" while "strict names"</p>
<p>fix XSMULTI static with strict linkers, avoid duplicate symbol _boot_XS__Test in: Test.o blib/arch/auto/XS/Test/Test.a(Test.o)</p>
<p>xsstatic: fixup MAKE_APERL_FILE, which was Makefile.aperl.aperl</p>
</dd>
<dt id="ExtUtils::ParseXS-3.35_02"><a href="/cperl/lib/ExtUtils/ParseXS.html">ExtUtils::ParseXS</a> 3.35_02</dt>
<dd>
<p>Moved xs pods still missing from the CPAN release completely to core.</p>
<p>Bump versions.</p>
</dd>
<dt id="fields-2.25c"><a href="/cperl/lib/fields.html">fields</a> 2.25c</dt>
<dd>
<p>A cperl class has now fields with <code>@class::FIELDS</code> targ offsets to the lexical fields, and the old <code>%type::FIELDS</code> hash pointing to the <code>*class</code> GV, allowing again compile-time type checks on typed object hash accesses.</p>
</dd>
<dt id="File::Path-3.15_01c"><a href="/cperl/lib/File/Path.html">File::Path</a> 3.15_01c</dt>
<dd>
<p>Remove erroneous documentation. Correct skip count for Windows. Comment out two TODO tests. Make subdirectory names used in tests more random.</p>
</dd>
<dt id="File::Spec::Functions-3.36_05"><a href="/cperl/lib/File/Spec/Functions.html">File::Spec::Functions</a> 3.36_05</dt>
<dd>
<p>Bumped version from unparsable 3.3.65, which prevented e.g. File::chdir to install.</p>
</dd>
<dt id="Filter::Simple-0.94"><a href="/cperl/lib/Filter/Simple.html">Filter::Simple</a> 0.94</dt>
<dd>
<p>Various small documentation fixes. Swap out base.pm use for parent.pm. Remove use of deprecated \C regex feature. Filter::Simple was erroneously signalling eof if it encountered a ‘no MyFilter’ right after ‘use’: use MyFilter; no MyFilter; In this case it should simply not filter anything.</p>
</dd>
<dt id="Getopt::Long-2.50"><a href="/cperl/lib/Getopt/Long.html">Getopt::Long</a> 2.50</dt>
<dd>
<p>Fix bug <a href="https://rt.cpan.org/Ticket/Display.html?id=120231">https://rt.cpan.org/Ticket/Display.html?id=120231</a>.</p>
<p>Fix bug <a href="https://rt.cpan.org/Ticket/Display.html?id=120300">https://rt.cpan.org/Ticket/Display.html?id=120300</a>. Unfortunately, this withdraws a small part of fix 114999. GNU <code>getopt_long()</code> does not accept the (optional) argument to be passed to the option without <code>=</code> sign. We do, since not doing so breaks existing scripts.</p>
<p>Provide a default value for options (<b>gnu_compat</b> mode). Thanks to Andrew Gregory.</p>
</dd>
<dt id="IO"><a href="/cperl/lib/IO.html">IO</a></dt>
<dd>
<p>Bump versions of 3 Socket modules.</p>
</dd>
<dt id="IPC::Cmd-0.98"><a href="/cperl/lib/IPC/Cmd.html">IPC::Cmd</a> 0.98</dt>
<dd>
<p>Added wait_loop_callback for run_forked()</p>
<p>Only search in curdir in can_run() when on Win32 RT#105601</p>
</dd>
<dt id="JSON::PP-2.94_01"><a href="/cperl/lib/JSON/PP.html">JSON::PP</a> 2.94_01</dt>
<dd>
<p>Various, see <a href="https://metacpan.org/changes/distribution/JSON-PP">https://metacpan.org/changes/distribution/JSON-PP</a></p>
</dd>
<dt id="Locale::Codes-3.53"><a>Locale::Codes</a> 3.53</dt>
<dd>
<p>Fixed the default error condition in legacy modules.</p>
</dd>
<dt id="Math::BigRat-0.2613"><a href="/cperl/lib/Math/BigRat.html">Math::BigRat</a> 0.2613</dt>
<dd>
<p>Fix problem with second operand being changed in multiplication (CPAN RT #121139).</p>
</dd>
<dt id="Memoize-1.03"><a href="/cperl/lib/Memoize.html">Memoize</a> 1.03</dt>
<dd>
<p>Skip flapping, timer-sensitive t/expmod_t.t tests on Travis CI.</p>
</dd>
<dt id="Net::Ping-2.61"><a href="/cperl/lib/Net/Ping.html">Net::Ping</a> 2.61</dt>
<dd>
<p>Fix ping_udp for a started udp echo server (PR#5 by Stephan Loyd)</p>
<p>Fix t/400_ping_syn.t phases</p>
<p>Try to handle Windows Socket::getnameinfo errors</p>
<p>Improve some tests on missing network connections</p>
</dd>
<dt id="Opcode-1.39_02c"><a href="/cperl/lib/Opcode.html">Opcode</a> 1.39_02c</dt>
<dd>
<p>Added new 'oelem' and 'oelemfast' to :base_core</p>
</dd>
<dt id="PathTools-4.68c"><a>PathTools</a> 4.68c</dt>
<dd>
<p>Add security usage note to File::Spec::no_upwards white space change so can compile under C++11 Protect modules also from . in @INC [perl #127384] (CVE-2016-1238)</p>
</dd>
<dt id="Search::Dict-1.07_01"><a href="/cperl/lib/Search/Dict.html">Search::Dict</a> 1.07_01</dt>
<dd>
<p>Bump version</p>
</dd>
<dt id="SelectSaver-1.02_01"><a href="/cperl/lib/SelectSaver.html">SelectSaver</a> 1.02_01</dt>
<dd>
<p>Bump version</p>
</dd>
<dt id="Storable-3.05_13"><a href="/cperl/lib/Storable.html">Storable</a> 3.05_13</dt>
<dd>
<p>mingw fix: use safe defaults, not segfaulting defaults. mingw fails on the stacksize binary search, leaving it empty.</p>
</dd>
<dt id="strict-1.13c"><a href="/cperl/lib/strict.html">strict</a> 1.13c</dt>
<dd>
<p>Implemented <code>strict 'names'</code> to reject illegal identifiers created via <code>no strict 'refs'</code> also at run-time, not only at compile-time. See <a href="https://github.com/perl11/cperl/issues/282">[cperl #282]</a>.</p>
</dd>
<dt id="threads-2.16_01"><a href="/cperl/lib/threads.html">threads</a> 2.16_01</dt>
<dd>
<p>Fix Clang macro backward compatibility per patch by Andy Grundman. Keep the old better doc. Keep our modglobal fix in global destruction from 2.12_01.</p>
</dd>
<dt id="threads::shared-1.57"><a href="/cperl/lib/threads/shared.html">threads::shared</a> 1.57</dt>
<dd>
<p>Fix Clang macro backward compatibility per patch by Andy Grundman. RT #131124 Memory allocation fix.</p>
</dd>
<dt id="Time::HiRes-1.9744_01"><a href="/cperl/lib/Time/HiRes.html">Time::HiRes</a> 1.9744_01</dt>
<dd>
<p>upstream:</p>
<p>add more potential clock constants, like CLOCK_MONOTONIC_FAST (available in FreeBSD), and not all potentially found clock constants were properly exported to be available from Perl, see your system's clock_gettime() documentation for the available ones</p>
<p>correct declared minimum Perl version (should be 5.6, was declared as 5.8 since 1.9727_03): blead af94b3ac</p>
<p>merged with our cperl test fixes. See <a href="https://github.com/rurban/Time-HiRes/tree/cperl">https://github.com/rurban/Time-HiRes/tree/cperl</a></p>
</dd>
<dt id="VMS::Studio-2.41_01"><a>VMS::Studio</a> 2.41_01</dt>
<dd>
<p>Bump version</p>
</dd>
<dt id="Win32API::File-0.1204"><a>Win32API::File</a> 0.1204</dt>
<dd>
<p>Fix xsubpp warnings</p>
</dd>
</dl>
<h1 id="Documentation">Documentation</h1>
<h2 id="New-Documentation">New Documentation</h2>
<h3 id="perlclass"><a href="/cperl/perlclass.html">perlclass</a></h3>
<p>Modern cperl classes and roles. The new syntax and features.</p>
<h2 id="Changes-to-Existing-Documentation">Changes to Existing Documentation</h2>
<h3 id="perlxs-perlxstut-perlxstypemap"><a href="/cperl/perlxs.html">perlxs</a>, <a href="/cperl/perlxstut.html">perlxstut</a>, <a href="/cperl/perlxstypemap.html">perlxstypemap</a></h3>
<ul>
<li><p>Moved from <i>dist/ExtUtils-ParseXS</i> to core <i>pod/</i>, as the upstream CPAN releases do not contain them anymore.</p>
</li>
</ul>
<h1 id="Diagnostics">Diagnostics</h1>
<p>The following additions or changes have been made to diagnostic output, including warnings and fatal error messages. For the complete list of diagnostic messages, see <a href="/cperl/perldiag.html">perldiag</a>.</p>
<h2 id="New-Diagnostics">New Diagnostics</h2>
<h3 id="New-Warnings">New Warnings</h3>
<ul>
<li><p>With loopex ops calling a list, all arguments but the last are ignored. This might be valid for side-effects, but useless on constants. Warn with <a href="/cperl/perldiag.html#Useless-use-of-constant-in-list-at">Useless use of constant in list at %s() </a> This affects next, goto, redo, last, dump.</p>
<p>E.g. with <code>label:{next(1,label)}</code> 1 is ignored.</p>
</li>
</ul>
<h2 id="Changes-to-Existing-Diagnostics">Changes to Existing Diagnostics</h2>
<ul>
<li><p>"Can't modify non-lvalue subroutine call of &%s" was extended to support methods.</p>
<p>The new message is "Can't modify non-lvalue %s call of %s", with the variants "Can't modify non-lvalue subroutine call of &CLASS::sub" and "Can't modify non-lvalue method call of CLASS->sub".</p>
</li>
<li><p>Under DEBUGGING "Modification of a read-only value attempted at <location>" was changed to "Modification of a read-only value attempted <value> at <c file:line> at <location>"</p>
<p>Existing tests best cut off the " at" at the end.</p>
</li>
</ul>
<h1 id="Configuration-and-Compilation">Configuration and Compilation</h1>
<ul>
<li><p><code>inc_version_list</code> skips now older development versions. It only includes older non-devel versions with even numbers. See <a href="https://github.com/perl11/cperl/issues/284">[cperl #284]</a></p>
</li>
<li><p><code>-Dusedevel</code> is needed to be added to all development versions anymore, it is now the default on such. A big warning is still being displayed, even in the usual silent auto mode <code>-des</code>. See <a href="https://github.com/perl11/cperl/issues/283">[cperl #283]</a></p>
</li>
</ul>
<h1 id="Utility-Changes">Utility Changes</h1>
<h2 id="cperlivp"><a>cperlivp</a></h2>
<ul>
<li><p>Add support for <code>-d DESTDIR</code>, e.g. after</p>
<pre><code> make -s -j4 install DESTDIR=$HOME/cperl-inst
cd $HOME/cperl-inst/usr/local/bin &&
./cperl cperlivp -p -d $HOME/cperl-inst</code></pre>
<p>See <a href="https://github.com/perl11/cperl/issues/305">[cperl #305]</a></p>
</li>
</ul>
<h1 id="Testing">Testing</h1>
<ul>
<li><p>Fixed <i>Porting/cmpVERSION.pl</i> resp. <i>t/porting/cmp_version.t</i></p>
</li>
<li><p>Some flapping tests on slow windows smokers (appveyor) are now skipped.</p>
</li>
</ul>
<h1 id="Platform-Support">Platform Support</h1>
<h2 id="Platform-Specific-Notes">Platform-Specific Notes</h2>
<dl>
<dt id="mingw">mingw</dt>
<dd>
<p>cperl on mingw was previously unsupported and didn't compile nor work.</p>
<p>The plan is to use mingw 32bit and 64bit packages instead of MSVC compiled packages, which do require a special MS runtime DLL.</p>
<ul>
<li><p>Removed the broken <i>dlltool</i>, which corrupted 64bit DLL's for years. In our case Cpanel::JSON::XS and Unicode::Normalize. Just use <code>gcc</code> to create dll's and import libs, as in cygwin.</p>
</li>
<li><p>Added version specific gcc config values.</p>
<p>The default mingw configs were extremely defensive and slow. Even gcc-2.95.3 settings were disabled. Now several modern builtins and attributes are used.</p>
<p>Fixed the wrong <code>d_u32align</code> default, which caused Digest::MD5 to crash.</p>
</li>
<li><p>Fixed BUILTIN_*_OVERFLOW macros for mingw64, which uses long long for normal IV/UV on win64.</p>
</li>
<li><p>Removed the version suffix from the importlib which is the entry for <code>$Config{libperl}</code>. <code>-lcperl</code> works now for the compiler and embedders. Just keep the version on MSVC, e.g. <i>cperl527.lib</i>, as this had special logic in perlcc already.</p>
</li>
<li><p>Improved <i>t/run/switchDBG.t</i> for <code>-D''</code> and <code>-T</code> tests.</p>
</li>
<li><p>Fixed building of the extensions with the Extensions_normalize target.</p>
</li>
<li><p>Switched from <i>C:\MinGW</i> to <i>C:\Strawberry\c</i> as default <b>CCHOME</b> prefix. This is much more stable on 64bit, and easier to setup.</p>
</li>
<li><p>The compiler <i>perlcc</i> only works with very simple programs under mingw yet. With dynaloaded XS modules it usually fails.</p>
</li>
</ul>
</dd>
</dl>
<h1 id="Internal-Changes">Internal Changes</h1>
<ul>
<li><p><code>Perl_croak_no_modify()</code> got 2 arguments, the macro is the same. The new <code>croak_no_modify_sv(sv)</code> has better diagnostics with DEBUGGING and is used throughout core.</p>
</li>
<li><p>Many gv_fetch methods use now GV_CLASS, i.e. they try EXISTS and FETCH in the same stash lookup, not failing on restricted stashes.</p>
</li>
<li><p>The overload magic vtable (AMT) allows now readonly stashes. classes are not cached, readonly packages are.</p>
</li>
</ul>
<h1 id="Selected-Bug-Fixes">Selected Bug Fixes</h1>
<ul>
<li><p>Fixed signature corruption with skip'ed arguments without default and with 0, 1, undef or op defaults, such as in <code>sub func ($, $=0, $=1, $=2, $=do{$i++} $="foo", $a="bar", $b="zoot")</code>, with the first <code>$</code>, the 2nd <code>$=0</code>, the 3rd <code>$=1</code> and the 5th <code>$=do{}</code> argument. cperl-only.</p>
</li>
<li><p>Harmonized TOKENBUF_SIZE and stack buf sizes</p>
<p>The max identifier length depends on the max tokenbuf size, which went from 256 in perl5 to 1024 in cperl, mostly to speed up parsing with a larger parser buffer. A few places still had hardcoded 256 tmpbuf sizes, which led to wrong error messages. See <a href="https://github.com/perl11/cperl/issues/293">[cperl #293]</a>.</p>
</li>
<li><p>Fixed one place in ck_sort for utf8 lexical variable names, which passed the unneeded UTF8 flag to <code>pad_findmy_pvn()</code>. In cperl all pads are normalized UTF8 for faster searches, the flag argument must be 0. See <a href="https://github.com/perl11/cperl/issues/293">[cperl #293]</a>.</p>
</li>
<li><p>Fix regex stack recursion overflow with DEBUGGING</p>
<p>This is a regression since 5.26 (also in upstream perl5). Without DEBUGGING it failed with the error message "Unmatched ( in regex", now with more than 5000 open parens it will fail with the same error message. This would be security relevant if one would use a DEBUGGING perl in production as one can construct a pattern which writes arbitrary values to the stack, similar to the Storable (<a href="https://github.com/perl11/cperl/issues/257">[cperl #257]</a>, <a href="https://rt.cpan.org/Public/Bug/Display.html?id=97526">[cpan #97526]</a>) stack overflow and the old 5.10 regex stack overflow attack. See <a href="https://github.com/perl11/cperl/issues/293">[cperl #293]</a>.</p>
</li>
<li><p>Fixed wrong "Don’t stringify GV in numeric cx outside warnings scope" optimization from 5.18, which fails with code like <code>$* += (** = 0)</code>. See <a href="https://github.com/perl11/cperl/issues/299">[cperl #299]</a>.</p>
</li>
<li><p>Added missing arity checks to <code>readline</code> and <code>readpipe</code>. E.g. <code>readline(1,2)</code> and <code>readpipe(1,2)</code> errors now. Those excessive args were previously called for side-effects, in case of constants or variables effectively ignored.</p>
<p>All internal ops are now properly arity checked. See <a href="https://github.com/perl11/cperl/issues/301">[cperl #301]</a>.</p>
</li>
<li><p>More fixes for handling readonly packages, aka classes. Allow AMT (overload) cache updates, <code>@ISA</code> searches and general class dispatch, falling back to AUTOLOAD in classes.</p>
<p>E.g. this works now: <code>class XX{method m{"ok $self"}} XX->new->m</code> The string concat looked in the class XX for an overload for the concat "." op, and failed with "Modification of a read-only value attempted" on the class, when trying to update the AMT cache. On windows it also tried the <code>"(qr"</code> overload. See <a href="https://github.com/perl11/cperl/issues/308">[cperl #308]</a>.</p>
</li>
<li><p>Attempting to apply an attribute to an <code>our</code> variable where a function of that name already exists could result in a NULL pointer being supplied where an SV was expected, crashing perl. See <a href="https://rt.perl.org/Public/Bug/Display.html?id=131597">[perl #131597]</a>.</p>
</li>
</ul>
<h1 id="Acknowledgements">Acknowledgements</h1>
<p>cperl 5.27.1c represents approximately 3 months of development since cperl 5.27.0c and contains approximately 56,000 lines of changes across 570 files from 9 authors.</p>
<p>Excluding auto-generated files, documentation and release tools, there were approximately 26,000 lines of changes to 390 .pm, .t, .c and .h files.</p>
<p>The following people are known to have contributed the improvements that became cperl 5.27.1c:</p>
<p>Reini Urban, Tony Cook, vendethiel, François Perrad, Aaron Crane, David Mitchell, H.Merijn Brand, William N. Braswell, Jr.</p>
<p>The list above is almost certainly incomplete as it is automatically generated from version control history. In particular, it does not include the names of the (very much appreciated) contributors who reported issues to the Perl bug tracker.</p>
<p>Many of the changes included in this version originated in the CPAN modules included in Perl's core. We're grateful to the entire CPAN community for helping Perl to flourish.</p>
<p>For a more complete list of all of Perl's historical contributors, please see the <i>AUTHORS</i> file in the Perl source distribution.</p>
<p>Generated with:</p>
<pre><code> cperl Porting/acknowledgements.pl cperl-5.27.0..HEAD</code></pre>
<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 <a href="https://rt.perl.org/">https://rt.perl.org/</a> . There may also be information at <a href="http://www.perl.org/">http://www.perl.org/</a> , the Perl Home Page.</p>
<p>If you believe you have an unreported bug, please run the <a>cperlbug</a> 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 you think it's a cperl specific bug or trust the cperl developers more please file an issue at <a href="https://github.com/perl11/cperl/issues">https://github.com/perl11/cperl/issues</a>.</p>
<p>If the bug you are reporting has security implications which make it inappropriate to send to a publicly archived mailing list, then see <a href="/cperl/perlsec.html#SECURITY-VULNERABILITY-CONTACT-INFORMATION">"SECURITY VULNERABILITY CONTACT INFORMATION" in perlsec</a> For details of how to report the issue.</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>