📄 perl572delta.pod
字号:
=over 4=item *In AFS installations one can configure the root of the AFS to besomewhere else than the default F</afs> by using the Configureparameter C<-Dafsroot=/some/where/else>.=item *The version of Berkeley DB used when the Perl (and, presumably, theDB_File extension) was built is now available asC<@Config{qw(db_version_major db_version_minor db_version_patch)}>from Perl and as C<DB_VERSION_MAJOR_CFG DB_VERSION_MINOR_CFGDB_VERSION_PATCH_CFG> from C.=item *The Thread extension is now not built at all under ithreads(C<Configure -Duseithreads>) because it wouldn't work anyway (theThread extension requires being Configured with C<-Duse5005threads>).=item *The C<B::Deparse> compiler backend has been so significantly improvedthat almost the whole Perl test suite passes after being deparsed. Amake target has been added to help in further testing: C<make test.deparse>.=back=head1 Selected Bug Fixes=over 5=item *The autouse pragma didn't work for Multi::Part::Function::Names.=item *The behaviour of non-decimal but numeric string constants such as"0x23" was platform-dependent: in some platforms that was seen as 35,in some as 0, in some as a floating point number (don't ask). Thiswas caused by Perl using the operating system libraries in a situationwhere the result of the string to number conversion is undefined: nowPerl consistently handles such strings as zero in numeric contexts.=item *L<dprofpp> -R didn't work.=item *PERL5OPT with embedded spaces didn't work.=item *L<Sys::Syslog> ignored the C<LOG_AUTH> constant.=back=head2 Platform Specific Changes and Fixes=over 4=item *Some versions of glibc have a broken modfl(). This affects buildswith C<-Duselongdouble>. This version of Perl detects this brokennessand has a workaround for it. The glibc release 2.2.2 is known to havefixed the modfl() bug.=back=head1 New or Changed Diagnostics=over 4=item *In the regular expression diagnostics the C<E<lt>E<lt> HERE> markerintroduced in 5.7.0 has been changed to be C<E<lt>-- HERE> since toomany people found the C<E<lt>E<lt>> to be too similar to here-documentstarters.=item *If you try to L<perlfunc/pack> a number less than 0 or larger than 255using the C<"C"> format you will get an optional warning. Similarlyfor the C<"c"> format and a number less than -128 or more than 127.=item *Certain regex modifiers such as C<(?o)> make sense only if applied tothe entire regex. You will an optional warning if you try to do otherwise.=item *Using arrays or hashes as references (e.g. C<< %foo->{bar} >> has beendeprecated for a while. Now you will get an optional warning.=back=head1 Source Code Enhancements=head2 MAGIC constantsThe MAGIC constants (e.g. C<'P'>) have been macrofied(e.g. C<PERL_MAGIC_TIED>) for better source code readabilityand maintainability.=head2 Better commented codeF<perly.c>, F<sv.c>, and F<sv.h> have now been extensively commented.=head2 Regex pre-/post-compilation items matched upThe regex compiler now maintains a structure that identifies nodes inthe compiled bytecode with the corresponding syntactic features of theoriginal regex expression. The information is attached to the newC<offsets> member of the C<struct regexp>. See L<perldebguts> for morecomplete information.=head2 gcc -WallThe C code has been made much more C<gcc -Wall> clean. Some warningmessages still remain, though, so if you are compiling with gcc youwill see some warnings about dubious practices. The warnings arebeing worked on.=head1 New TestsSeveral new tests have been added, especially for the F<lib> subsection.The tests are now reported in a different order than in earlier Perls.(This happens because the test scripts from under t/lib have been movedto be closer to the library/extension they are testing.)=head1 Known ProblemsNote that unlike other sections in this document (which describechanges since 5.7.0) this section is cumulative containing knownproblems for all the 5.7 releases.=head2 AIX=over 4=item *In AIX 4.2 Perl extensions that use C++ functions that use staticsmay have problems in that the statics are not getting initialized.In newer AIX releases this has been solved by linking Perl withthe libC_r library, but unfortunately in AIX 4.2 the said libraryhas an obscure bug where the various functions related to time(such as time() and gettimeofday()) return broken values, andtherefore in AIX 4.2 Perl is not linked against the libC_r.=item *vac 5.0.0.0 May Produce Buggy Code For PerlThe AIX C compiler vac version 5.0.0.0 may produce buggy code,resulting in few random tests failing, but when the failing testsare run by hand, they succeed. We suggest upgrading to at leastvac version 5.0.1.0, that has been known to compile Perl correctly."lslpp -L|grep vac.C" will tell you the vac version.=back=head2 Amiga Perl Invoking MysteryOne cannot call Perl using the C<volume:> syntax, that is, C<perl -v>works, but for example C<bin:perl -v> doesn't. The exact reason isknown but the current suspect is the F<ixemul> library.=head2 lib/ftmp-security tests warn 'system possibly insecure'Don't panic. Read INSTALL 'make test' section instead.=head2 Cygwin intermittent failures of lib/Memoize/t/expire_file 11 and 12The subtests 11 and 12 sometimes fail and sometimes work.=head2 HP-UX lib/io_multihomed Fails When LP64-ConfiguredThe lib/io_multihomed test may hang in HP-UX if Perl has beenconfigured to be 64-bit. Because other 64-bit platforms do not hang inthis test, HP-UX is suspect. All other tests pass in 64-bit HP-UX. Thetest attempts to create and connect to "multihomed" sockets (socketswhich have multiple IP addresses).=head2 HP-UX lib/posix Subtest 9 Fails When LP64-ConfiguredIf perl is configured with -Duse64bitall, the successful result of thesubtest 10 of lib/posix may arrive before the successful result of thesubtest 9, which confuses the test harness so much that it thinks thesubtest 9 failed.=head2 Linux With Sfio Fails op/misc Test 48No known fix.=head2 OS/390OS/390 has rather many test failures but the situation is actuallybetter than it was in 5.6.0, it's just that so many new modules andtests have been added. Failed Test Stat Wstat Total Fail Failed List of Failed ----------------------------------------------------------------------------- ../ext/B/Deparse.t 14 1 7.14% 14 ../ext/B/Showlex.t 1 1 100.00% 1 ../ext/Encode/Encode/Tcl.t 610 13 2.13% 592 594 596 598 600 602 604-610 ../ext/IO/lib/IO/t/io_unix.t 113 28928 5 3 60.00% 3-5 ../ext/POSIX/POSIX.t 29 1 3.45% 14 ../ext/Storable/t/lock.t 255 65280 5 3 60.00% 3-5 ../lib/locale.t 129 33024 117 19 16.24% 99-117 ../lib/warnings.t 434 1 0.23% 75 ../lib/ExtUtils.t 27 1 3.70% 25 ../lib/Math/BigInt/t/bigintpm.t 1190 1 0.08% 1145 ../lib/Unicode/UCD.t 81 48 59.26% 1-16 49-64 66-81 ../lib/User/pwent.t 9 1 11.11% 4 op/pat.t 660 6 0.91% 242-243 424-425 626-627 op/split.t 0 9 ?? ?? % ?? op/taint.t 174 3 1.72% 156 162 168 op/tr.t 70 3 4.29% 50 58-59 Failed 16/422 test scripts, 96.21% okay. 105/23251 subtests failed, 99.55% okay.=head2 op/sprintf tests 129 and 130The op/sprintf tests 129 and 130 are known to fail on some platforms.Examples include any platform using sfio, and Compaq/Tandem's NonStop-UX.The failing platforms do not comply with the ANSI C Standard, line19ff on page 134 of ANSI X3.159 1989 to be exact. (They producesomething other than "1" and "-1" when formatting 0.6 and -0.6 usingthe printf format "%.0f", most often they produce "0" and "-0".)=head2 Failure of Thread testsB<Note that support for 5.005-style threading remains experimental.>The following tests are known to fail due to fundamental problems inthe 5.005 threading implementation. These are not new failures--Perl5.005_0x has the same bugs, but didn't have these tests. lib/autouse.t 4 t/lib/thr5005.t 19-20=head2 UNICOS=over 4=item *ext/POSIX/sigaction subtests 6 and 13 may fail.=item *lib/ExtUtils may spuriously claim that subtest 28 failed,which is interesting since the test only has 27 tests.=item *Numerous numerical test failures op/numconvert 209,210,217,218 op/override 7 ext/Time/HiRes/HiRes 9 lib/Math/BigInt/t/bigintpm 1145 lib/Math/Trig 25These tests fail because of yet unresolved floating point inaccuracies.=back=head2 UTSThere are a few known test failures, see L<perluts>.=head2 VMSRather many tests are failing in VMS but that actually more testssucceed in VMS than they used to, it's just that there are many,many more tests than there used to be.Here are the known failures from some compiler/platform combinations.DEC C V5.3-006 on OpenVMS VAX V6.2 [-.ext.list.util.t]tainted..............FAILED on test 3 [-.ext.posix]sigaction..................FAILED on test 7 [-.ext.time.hires]hires.................FAILED on test 14 [-.lib.file.find]taint..................FAILED on test 17 [-.lib.math.bigint.t]bigintpm...........FAILED on test 1183 [-.lib.test.simple.t]exit...............FAILED on test 1 [.lib]vmsish............................FAILED on test 13 [.op]sprintf............................FAILED on test 12 Failed 8/399 tests, 91.23% okay.DEC C V6.0-001 on OpenVMS Alpha V7.2-1 andCompaq C V6.2-008 on OpenVMS Alpha V7.1 [-.ext.list.util.t]tainted..............FAILED on test 3 [-.lib.file.find]taint..................FAILED on test 17 [-.lib.test.simple.t]exit...............FAILED on test 1 [.lib]vmsish............................FAILED on test 13 Failed 4/399 tests, 92.48% okay.Compaq C V6.4-005 on OpenVMS Alpha 7.2.1 [-.ext.b]showlex........................FAILED on test 1 [-.ext.list.util.t]tainted..............FAILED on test 3 [-.lib.file.find]taint..................FAILED on test 17 [-.lib.test.simple.t]exit...............FAILED on test 1 [.lib]vmsish............................FAILED on test 13 [.op]misc...............................FAILED on test 49 Failed 6/401 tests, 92.77% okay.=head2 Win32In multi-CPU boxes there are some problems with the I/O buffering:some output may appear twice.=head2 Localising a Tied Variable Leaks Memory use Tie::Hash; tie my %tie_hash => 'Tie::StdHash'; ... local($tie_hash{Foo}) = 1; # leaksCode like the above is known to leak memory every time the local()is executed.=head2 Self-tying of Arrays and Hashes Is ForbiddenSelf-tying of arrays and hashes is broken in rather deep andhard-to-fix ways. As a stop-gap measure to avoid people from gettingfrustrated at the mysterious results (core dumps, most often) it isfor now forbidden (you will get a fatal error even from an attempt).=head2 Variable Attributes are not Currently Usable for TieingThis limitation will hopefully be fixed in future. (Subroutineattributes work fine for tieing, see L<Attribute::Handlers>).=head2 Building Extensions Can Fail Because Of LargefilesSome extensions like mod_perl are known to have issues with`largefiles', a change brought by Perl 5.6.0 in which file offsetsdefault to 64 bits wide, where supported. Modules may fail to compileat all or compile and work incorrectly. Currently there is no goodsolution for the problem, but Configure now provides appropriatenon-largefile ccflags, ldflags, libswanted, and libs in the %Confighash (e.g., $Config{ccflags_nolargefiles}) so the extensions that arehaving problems can try configuring themselves without thelargefileness. This is admittedly not a clean solution, and thesolution may not even work at all. One potential failure is whetherone can (or, if one can, whether it's a good idea) link together atall binaries with different ideas about file offsets, all this isplatform-dependent.=head2 The Compiler Suite Is Still ExperimentalThe compiler suite is slowly getting better but is nowhere nearworking order yet.=head2 The Long Double Support is Still ExperimentalThe ability to configure Perl's numbers to use "long doubles",floating point numbers of hopefully better accuracy, is stillexperimental. The implementations of long doubles are not yetwidespread and the existing implementations are not quite matureor standardised, therefore trying to support them is a rareand moving target. The gain of more precision may also be offsetby slowdown in computations (more bits to move around, and theoperations are more likely to be executed by less optimisedlibraries).=head1 Reporting BugsIf you find what you think is a bug, you might check the articlesrecently posted to the comp.lang.perl.misc newsgroup and the perlbug database at http://bugs.perl.org/ There may also beinformation at http://www.perl.com/perl/ , the Perl Home Page.If you believe you have an unreported bug, please run the B<perlbug>program included with your release. Be sure to trim your bug downto a tiny but sufficient test case. Your bug report, along with theoutput of C<perl -V>, will be sent off to perlbug@perl.org to beanalysed by the Perl porting team.=head1 SEE ALSOThe F<Changes> file for exhaustive details on what changed.The F<INSTALL> file for how to build Perl.The F<README> file for general stuff.The F<Artistic> and F<Copying> files for copyright information.=head1 HISTORYWritten by Jarkko Hietaniemi <F<jhi@iki.fi>>, with many contributionsfrom The Perl Porters and Perl Users submitting feedback and patches.Send omissions or corrections to <F<perlbug@perl.org>>.=cut
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -