This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Evaluate arg once in all forms of SvTRUE
[perl5.git] / pod / perldelta.pod
index dfdd782..d0c4daa 100644 (file)
@@ -5,15 +5,15 @@
 [ 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.33.4
+perldelta - what is new for perl v5.33.5
 
 =head1 DESCRIPTION
 
-This document describes differences between the 5.33.3 release and the 5.33.4
+This document describes differences between the 5.33.4 release and the 5.33.5
 release.
 
-If you are upgrading from an earlier release such as 5.33.2, first read
-L<perl5333delta>, which describes differences between 5.33.2 and 5.33.3.
+If you are upgrading from an earlier release such as 5.33.3, first read
+L<perl5334delta>, which describes differences between 5.33.3 and 5.33.4.
 
 =head1 Notice
 
@@ -166,13 +166,15 @@ section.
 
 Additionally, the following selected changes have been made:
 
-=head3 L<XXX>
+=head3 L<perlfunc>
 
 =over 4
 
 =item *
 
-XXX Description of the change here
+L<msgsnd()|perlfunc/msgsnd> documented a length field included in the
+packed C<MSG> parameter to msgsnd(), but there was no such field.
+C<MSG> contains only the type and the message content.
 
 =back
 
@@ -283,7 +285,13 @@ made:
 
 =item *
 
-XXX
+When testing in parallel on many-core platforms, you can now cause the
+test suite to finish somewhat earlier, but with less logical ordering of
+the tests, by setting
+
+ PERL_TEST_HARNESS_ASAP=1
+
+while running the test suite.
 
 =back
 
@@ -330,9 +338,42 @@ L</Modules and Pragmata> section.
 
 =over 4
 
-=item XXX-some-platform
+=item Windows
 
-XXX
+Windows now supports L<symlink()|perlfunc/symlink> and
+L<readlink()|perlfunc/readlink>, and L<lstat()|perlfunc/lstat> is no
+longer an alias for L<stat()|perlfunc/stat>.
+L<[#18005]|https://github.com/Perl/perl5/issues/18005>.
+
+Unlike POSIX systems, creating a symbolic link on Windows requires
+either elevated privileges or Windows 10 1703 or later with Developer
+Mode enabled.
+
+stat(), including C<stat FILEHANDLE>, and lstat() now uses our own
+implementation that populates the device C<dev> and inode numbers
+C<ino> returned rather than always returning zero.  The number of
+links C<nlink> field is now always populated.
+
+L<< C<${^WIN32_SLOPPY_STAT}> |perlvar/${^WIN32_SLOPPY_STAT} >> previously
+controlled whether the C<nlink> field was populated requiring a
+separate Windows API call to fetch, since nlink and the other
+information required for stat() is now retrieved in a single API call.
+
+The C<-r> and C<-w> operators now return true for the C<STDIN>,
+C<STDOUT> and C<STDERR> handles.  Unfortunately it still won't return
+true for duplicates of those handles.
+L<[#8502]|https://github.com/Perl/perl5/issues/8502>.
+
+The times returned by stat() and lstat() are no longer incorrect
+across Daylight Savings Time adjustments.
+L<[#6080]|https://github.com/Perl/perl5/issues/6080>.
+
+C<-x> on a filehandle should now match C<-x> on the corresponding
+filename on Vista or later.
+L<[#4145]|https://github.com/Perl/perl5/issues/4145>.
+
+C<-e '"'> no longer incorrectly returns true.
+L<[#12431]|https://github.com/Perl/perl5/issues/12431>.
 
 =back
 
@@ -348,7 +389,9 @@ well.
 
 =item *
 
-XXX
+All C<SvTRUE>-ish functions now evaluate their arguments exactly once.
+In 5.32, plain L<perlapi/C<SvTRUE>> was changed to do that; now the rest
+do as well.
 
 =back
 
@@ -363,7 +406,38 @@ files in F<ext/> and F<lib/> are best summarized in L</Modules and Pragmata>.
 
 =item *
 
-XXX
+L<semctl()|perlfunc/semctl>, L<msgctl()|perlfunc/msgctl>, and
+L<shmctl()|perlfunc/shmctl> now properly reset the UTF-8 flag on the
+C<ARG> parameter if it's modified for C<IPC_STAT> or C<GETALL>
+operations.
+
+=item *
+
+semctl(), msgctl(), and shmctl() now attempt to downgrade the C<ARG>
+parameter if it's value is being used as input to C<IPC_SET> or
+C<SETALL> calls.  A failed downgrade will thrown an exception.
+
+=item *
+
+In cases where semctl(), msgctl() or shmctl() would treat the C<ARG>
+parameter as a pointer, an undefined value no longer generates a
+warning.  In most such calls the pointer isn't used anyway and this
+allows you to supply C<undef> for a value not used by the underlying
+function.
+
+=item *
+
+L<semop()|perlfunc/semop> now downgrades the C<OPSTRING> parameter,
+L<msgsnd()|perlfunc/msgsnd> now downgrades the C<MSG> parameter and
+L<shmwrite|perlfunc/shmwrite> now downgrades the C<STRING> parameter
+to treat them as bytes.  Previously they would be left upgraded,
+providing a corrupted structure to the underlying function call.
+
+=item *
+
+L<msgrcv()|perlfunc/msgrcv> now properly resets the UTF-8 flag the
+C<VAR> parameter when it is modified.  Previusly the UTF-8 flag could
+be left on, resulting in a possibly corrupt result in C<VAR>.
 
 =back
 
@@ -403,7 +477,7 @@ died, add a short obituary here.
 
 XXX Generate this with:
 
-  perl Porting/acknowledgements.pl v5.33.3..HEAD
+  perl Porting/acknowledgements.pl v5.33.4..HEAD
 
 =head1 Reporting Bugs