This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
PATCH: [perl #133767] Assertion failure
[perl5.git] / pod / perldelta.pod
index 9602f13..75bf63e 100644 (file)
@@ -2,9 +2,6 @@
 
 =head1 NAME
 
-[ this is a template for a new perldelta file.  Any text flagged as XXX needs
-to be processed before release. ]
-
 perldelta - what is new for perl v5.29.8
 
 =head1 DESCRIPTION
@@ -17,153 +14,100 @@ L<perl5297delta>, which describes differences between 5.29.6 and 5.29.7.
 
 =head1 Notice
 
-XXX Any important notices here
+sv_utf8_(downgrade|decode) are no longer marked as experimental [perl #133788]
 
 =head1 Core Enhancements
 
-XXX New core language features go here.  Summarize user-visible core language
-enhancements.  Particularly prominent performance optimisations could go
-here, but most should go in the L</Performance Enhancements> section.
-
-[ List each enhancement as a =head2 entry ]
-
-=head1 Security
-
-XXX Any security-related notices go here.  In particular, any security
-vulnerabilities closed should be noted here rather than in the
-L</Selected Bug Fixes> section.
-
-[ List each security issue as a =head2 entry ]
-
-=head1 Incompatible Changes
-
-XXX For a release on a stable branch, this section aspires to be:
-
-    There are no changes intentionally incompatible with 5.XXX.XXX
-    If any exist, they are bugs, and we request that you submit a
-    report.  See L</Reporting Bugs> below.
+=head2 Use faster method to convert to UTF-8
 
-[ List each incompatible change as a =head2 entry ]
+There is a special inline function that's used when converting a single
+byte to UTF-8, that is faster than the more general one used prior to
+this commit.
 
-=head1 Deprecations
+=head2 Turkic UTF-8 locales are now seamlessly supported
 
-XXX Any deprecated features, syntax, modules etc. should be listed here.
+Turkic languages have different casing rules than other languages for
+the characters C<"i"> and C<"I">.  The uppercase of C<"i"> is LATIN
+CAPITAL LETTER I WITH DOT ABOVE (U+0130); and the lowercase of C<"I"> is LATIN
+SMALL LETTER DOTLESS I (U+0131).  Unicode furnishes alternate casing
+rules for use with Turkic languages.  Previously, Perl ignored these,
+but now, it uses them when it detects that it is operating under a
+Turkic UTF-8 locale.
 
-=head2 Module removals
+=head2 Eliminate opASSIGN macro usage from core
 
-XXX Remove this section if not applicable.
+This macro is still defined but no longer used in core
 
-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.
+=head1 Incompatible Changes
 
-The core versions of these modules will now issue C<"deprecated">-category
-warnings to alert you to this fact.  To silence these deprecation warnings,
-install the modules in question from CPAN.
+=head2 JSON::PP enable allow_nonref by default
 
-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.
+As JSON::XS 4.0 changed its policy and enabled allow_nonref
+by default, JSON::PP also enabled allow_nonref by default.
 
-=over
+=head1 Performance Enhancements
 
-=item XXX
+=over 4
 
-XXX Note that deprecated modules should be listed here even if they are listed
-as an updated module in the L</Modules and Pragmata> section.
+Eliminate recursion from finalize_op() [perl #108276]
 
 =back
 
-[ List each other deprecation as a =head2 entry ]
-
-=head1 Performance Enhancements
-
-XXX Changes which enhance performance without changing behaviour go here.
-There may well be none in a stable release.
+=head1 Modules and Pragmata
 
-[ List each enhancement as an =item entry ]
+=head2 Updated Modules and Pragmata
 
 =over 4
 
 =item *
 
-XXX
-
-=back
+L<B> has been upgraded from version 1.75 to 1.76.
 
-=head1 Modules and Pragmata
-
-XXX All changes to installed files in F<cpan/>, F<dist/>, F<ext/> and F<lib/>
-go here.  If Module::CoreList is updated, generate an initial draft of the
-following sections using F<Porting/corelist-perldelta.pl>.  A paragraph summary
-for important changes should then be added by hand.  In an ideal world,
-dual-life modules would have a F<Changes> file that could be cribbed.
-
-The list of new and updated modules is modified automatically as part of
-preparing a Perl release, so the only reason to manually add entries here is if
-you're summarising the important changes in the module update. (Also, if the
-manually-added details don't match the automatically-generated ones, the
-release manager will have to investigate the situation carefully.)
+=item *
 
-[ Within each section, list entries as an =item entry ]
+L<Encode> has been upgraded from version 2.97 to 3.00.
 
-=head2 New Modules and Pragmata
+=item *
 
-=over 4
+L<JSON::PP> has been upgraded from version 2.97001 to 4.00.
+JSON::PP as JSON::XS 4.0 enable allow_nonref by default
 
 =item *
 
-XXX Remove this section if not applicable.
+L<Module::CoreList> has been upgraded from version 5.20190120 to 5.20190220.
 
-=back
+Changes to B::Op_private and Config
 
-=head2 Updated Modules and Pragmata
+=item *
 
-=over 4
+L<Module::Load> has been upgraded from version 0.32 to 0.34.
 
 =item *
 
-L<XXX> has been upgraded from version A.xx to B.yy.
+L<Net::Ping> has been upgraded from version 2.61 to 2.71.
 
-If there was something important to note about this change, include that here.
+=item *
 
-=back
+L<perlfaq> has been upgraded from version 5.20180915 to 5.20190126.
 
-=head2 Removed Modules and Pragmata
+=item *
 
-=over 4
+L<Test::Simple> has been upgraded from version 1.302160 to 1.302162.
 
 =item *
 
-XXX
+L<XS::APItest> has been upgraded from version 0.99 to 1.00.
 
 =back
 
 =head1 Documentation
 
-XXX Changes to files in F<pod/> go here.  Consider grouping entries by
-file and be sure to link to the appropriate page, e.g. L<perlfunc>.
-
-=head2 New Documentation
-
-XXX Changes which create B<new> files in F<pod/> go here.
-
-=head3 L<XXX>
-
-XXX Description of the purpose of the new file here
-
 =head2 Changes to Existing Documentation
 
 We have attempted to update the documentation to reflect the changes
 listed in this document.  If you find any we have missed, send email
 to L<perlbug@perl.org|mailto:perlbug@perl.org>.
 
-XXX Changes which significantly change existing files in F<pod/> go here.
-However, any changes to F<pod/perldiag.pod> should go in the L</Diagnostics>
-section.
-
 Additionally, the following selected changes have been made:
 
 =head3 L<perlfunc>
@@ -177,43 +121,35 @@ C<REGEXP> and why.  [perl #133751]
 
 =back
 
-=head1 Diagnostics
-
-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 L<perldiag>.
-
-XXX New or changed warnings emitted by the core's C<C> code go here.  Also
-include any changes in L<perldiag> that reconcile it to the C<C> code.
-
-=head2 New Diagnostics
-
-XXX Newly added diagnostic messages go under here, separated into New Errors
-and New Warnings
-
-=head3 New Errors
+=head3 L<perllocale>
 
 =over 4
 
 =item *
 
-XXX L<message|perldiag/"message">
+There are actually two slightly different types of UTF-8 locales: one for Turkic
+languages and one for everything else. Starting in Perl v5.30, Perl seamlessly 
+handles both types.
 
 =back
 
-=head3 New Warnings
+=head3 L<perlrecharclass>
 
 =over 4
 
 =item *
 
-XXX L<message|perldiag/"message">
+Add a note for the ::xdigit:: character class.
 
 =back
 
-=head2 Changes to Existing Diagnostics
+=head1 Diagnostics
+
+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 L<perldiag>.
 
-XXX Changes (i.e. rewording) of diagnostic messages go here
+=head2 Changes to Existing Diagnostics
 
 =over 4
 
@@ -227,39 +163,17 @@ rather than complaining that they no longer work on scalars. [perl
 
 =back
 
-=head1 Utility Changes
-
-XXX Changes to installed programs such as F<perlbug> and F<xsubpp> go here.
-Most of these are built within the directory F<utils>.
-
-[ List utility changes as a =head2 entry for each utility and =item
-entries for each change
-Use L<XXX> with program names to get proper documentation linking. ]
-
-=head2 L<XXX>
+=head1 Configuration and Compilation
 
 =over 4
 
 =item *
 
-XXX
-
-=back
-
-=head1 Configuration and Compilation
-
-XXX Changes to F<Configure>, F<installperl>, F<installman>, and analogous tools
-go here.  Any other changes to the Perl build process should be listed here.
-However, any platform-specific changes should be listed in the
-L</Platform Support> section, instead.
-
-[ List changes as an =item entry ].
-
-=over 4
+Improve detection of memrchr, strlcat, and strlcpy
 
 =item *
 
-XXX
+Improve Configure detection of memmem() [perl #133760].
 
 =back
 
@@ -288,7 +202,19 @@ made:
 
 =item *
 
-XXX
+t/lib/croak/op [perl #130367]
+
+separate error for push etc on hash/glob
+
+=item *
+
+t/op/svleak.t [perl #133660]
+
+add test for goto &sub in overload leaking
+
+=item *
+
+Split t/re/fold_grind.t into multiple test files
 
 =back
 
@@ -368,41 +294,100 @@ files in F<ext/> and F<lib/> are best summarized in L</Modules and Pragmata>.
 
 =item *
 
-XXX
+Regular expression matching no longer leaves stale UTF-8 length magic
+when updating C<$^R>. This could result in C<length($^R)> returning
+an incorrect value.
 
-=back
+=item *
 
-=head1 Known Problems
+Fix a qr/[...]/ bug introduced in v5.29.7
 
-XXX Descriptions of platform agnostic bugs we know we can't fix go here.  Any
-tests that had to be C<TODO>ed for the release would be noted here.  Unfixed
-platform specific bugs also go here.
+Using /il should not result in looking for a [:posix:] class
+that matches the code points given.
 
-[ List each fix as an =item entry ]
+=item *
 
-=over 4
+Reduce recursion on ops [perl #108276]
+
+This can prevent stack overflow when processing extremely deep op
+trees.
 
 =item *
 
-XXX
+Avoid leak in multiconcat with overloading. [perl #133789]
 
-=back
+=item *
 
-=head1 Errata From Previous Releases
+The handling of user-defined C<\p{}> properties (see
+L<perlunicode/User-Defined Character Properties>) has been rewritten to
+be in C (instead of Perl).  This speeds things up, but in the process
+several inconsistencies and bug fixes are made.
 
-=over 4
+=over
 
-=item *
+=item 1
+
+A few error messages have minor wording changes.  This is essentially
+because the new way is integrated into the regex error handling
+mechanism that marks the position in the input at which the error
+occurred.  That was not possible previously.  The messages now also
+contain additional back-trace-like information in case the error occurs
+deep in nested calls.
 
-XXX Add anything here that we forgot to add, or were mistaken about, in
-the perldelta of a previous release.
+=item 2
+
+A user-defined property is implemented as a perl subroutine with certain
+highly constrained naming conventions.  It was documented previously
+that the sub would be in the current package if the package was
+unspecified.  This turned out not to be true in all cases, but now it
+is.
+
+=item 3
+
+All recursive calls are treated as infinite recursion.  Previously they
+would cause the interpreter to panic.  Now, they cause the regex pattern
+to fail to compile.
+
+=item 4
+
+Similarly, any other error likely would lead to a panic; now to just the
+pattern failing to compile.
+
+=item 5
+
+The old mechanism did not detect illegal ranges in the definition of the
+property.  Now, the range max must not be smaller than the range min.
+Otherwise, the pattern fails to compile.
+
+=item 6
+
+The intention was to have each sub called only once during the lifetime
+of the program, so that a property's definition is immutable.  This was
+relaxed so that it could be called once for all /i compilations, and
+potentially a second time for non-/i (the sub is passed a parameter
+indicating which).  However, in practice there were instances when this
+was broken, and multiple calls were possible.  Those have been fixed.
+Now (besides the /i,non-/i cases) the only way a sub can be called
+multiple times is if some component of it has not been defined yet.  For
+example, suppose we have sub IsA() whose definition is known at compile
+time, and it in turn calls isB() whose definition is not yet known.
+isA() will be called each time a pattern it appears in is compiled.  If
+isA() also calls isC() and that definition is known, isC() will be
+called just once.
+
+=item 7
+
+There were some races and very long hangs should one thread be compiling
+the same property as another simultaneously.  These have now been fixed.
 
 =back
 
-=head1 Obituary
+=item * Assertion failure in compiling invalid regex pattern [perl #133767]
+
+This bug was introduced in the 5.29 series, so this should not be in the
+perldelta for 5.30.
 
-XXX If any significant core contributor or member of the CPAN community has
-died, add a short obituary here.
+=back
 
 =head1 Acknowledgements