perl571delta.html
来自「perl教程」· HTML 代码 · 共 1,096 行 · 第 1/4 页
HTML
1,096 行
<p>This will create in perl/build/directory a tree of symbolic links
pointing to files in /path/to/perl/source. The original files are left
unaffected. After Configure has finished you can just say</p>
<pre>
make all test</pre>
<p>and Perl will be built and tested, all in perl/build/directory.</p>
</li>
</ul>
<p>
</p>
<hr />
<h1><a name="selected_bug_fixes">Selected Bug Fixes</a></h1>
<p>Numerous memory leaks and uninitialized memory accesses have been hunted down.
Most importantly anonymous subs used to leak quite a bit.</p>
<ul>
<li>
<p><a href="../../lib/Pod/perlfunc.html#item_chop"><code>chop(@list)</code></a> in list context returned the characters chopped in
reverse order. This has been reversed to be in the right order.</p>
</li>
<li>
<p>The order of DESTROYs has been made more predictable.</p>
</li>
<li>
<p><a href="../../lib/Pod/perlfunc.html#item_mkdir"><code>mkdir()</code></a> now ignores trailing slashes in the directory name,
as mandated by POSIX.</p>
</li>
<li>
<p>Attributes (like :shared) didn't work with our().</p>
</li>
<li>
<p>The PERL5OPT environment variable (for passing command line arguments
to Perl) didn't work for more than a single group of options.</p>
</li>
<li>
<p>The tainting behaviour of <a href="../../lib/Pod/perlfunc.html#item_sprintf"><code>sprintf()</code></a> has been rationalized. It does
not taint the result of floating point formats anymore, making the
behaviour consistent with that of string interpolation.</p>
</li>
<li>
<p>All but the first argument of the IO <a href="../../lib/Pod/perlfunc.html#item_syswrite"><code>syswrite()</code></a> method are now optional.</p>
</li>
<li>
<p>Tie::ARRAY SPLICE method was broken.</p>
</li>
<li>
<p><a href="../../lib/Pod/perlfunc.html#item_vec"><code>vec()</code></a> now tries to work with characters <= 255 when possible, but it leaves
higher character values in place. In that case, if <a href="../../lib/Pod/perlfunc.html#item_vec"><code>vec()</code></a> was used to modify
the string, it is no longer considered to be utf8-encoded.</p>
</li>
</ul>
<p>
</p>
<h2><a name="platform_specific_changes_and_fixes">Platform Specific Changes and Fixes</a></h2>
<ul>
<li>
<p>Linux previously had problems related to sockaddrlen when using
accept(), <code>revcfrom()</code> (in Perl: recv()), getpeername(), and getsockname().</p>
</li>
<li>
<p>Previously DYNIX/ptx had problems in its Configure probe for non-blocking I/O.</p>
</li>
<li>
<p>Windows</p>
<ul>
<li>
<p>Borland C++ v5.5 is now a supported compiler that can build Perl.
However, the generated binaries continue to be incompatible with those
generated by the other supported compilers (GCC and Visual C++).</p>
</li>
<li>
<p>Win32::GetCwd() correctly returns C:\ instead of C: when at the drive root.
Other bugs in <a href="../../lib/Pod/perlfunc.html#item_chdir"><code>chdir()</code></a> and Cwd::cwd() have also been fixed.</p>
</li>
<li>
<p>Duping socket handles with open(F, ">&MYSOCK") now works under Windows 9x.</p>
</li>
<li>
<p>HTML files will be installed in c:\perl\html instead of c:\perl\lib\pod\html</p>
</li>
<li>
<p>The makefiles now provide a single switch to bulk-enable all the features
enabled in ActiveState ActivePerl (a popular binary distribution).</p>
</li>
</ul>
</ul>
<p>
</p>
<hr />
<h1><a name="new_or_changed_diagnostics">New or Changed Diagnostics</a></h1>
<p>Two new debugging options have been added: if you have compiled your
Perl with debugging, you can use the -DT and -DR options to trace
tokenising and to add reference counts to displaying variables,
respectively.</p>
<ul>
<li>
<p>If an attempt to use a (non-blessed) reference as an array index
is made, a warning is given.</p>
</li>
<li>
<p><code>push @a;</code> and <code>unshift @a;</code> (with no values to push or unshift)
now give a warning. This may be a problem for generated and evaled
code.</p>
</li>
</ul>
<p>
</p>
<hr />
<h1><a name="changed_internals">Changed Internals</a></h1>
<ul>
<li>
<p>Some new APIs: ptr_table_clear(), ptr_table_free(), sv_setref_uv().
For the full list of the available APIs see <a href="../../lib/Pod/perlapi.html">the perlapi manpage</a>.</p>
</li>
<li>
<p>dTHR and djSP have been obsoleted; the former removed (because it's
a no-op) and the latter replaced with dSP.</p>
</li>
<li>
<p>Perl now uses system malloc instead of Perl malloc on all 64-bit
platforms, and even in some not-always-64-bit platforms like AIX,
IRIX, and Solaris. This change breaks backward compatibility but
Perl's malloc has problems with large address spaces and also the
speed of vendors' malloc is generally better in large address space
machines (Perl's malloc is mostly tuned for space).</p>
</li>
</ul>
<p>
</p>
<hr />
<h1><a name="new_tests">New Tests</a></h1>
<p>Many new tests have been added. The most notable is probably the
lib/1_compile: it is very notable because running it takes quite a
long time -- it test compiles all the Perl modules in the distribution.
Please be patient.</p>
<p>
</p>
<hr />
<h1><a name="known_problems">Known Problems</a></h1>
<p>Note that unlike other sections in this document (which describe
changes since 5.7.0) this section is cumulative containing known
problems for all the 5.7 releases.</p>
<p>
</p>
<h2><a name="aix_vac_5_0_0_0_may_produce_buggy_code_for_perl">AIX vac 5.0.0.0 May Produce Buggy Code For Perl</a></h2>
<p>The AIX C compiler vac version 5.0.0.0 may produce buggy code,
resulting in few random tests failing, but when the failing tests
are run by hand, they succeed. We suggest upgrading to at least
vac version 5.0.1.0, that has been known to compile Perl correctly.
"lslpp -L|grep vac.C" will tell you the vac version.</p>
<p>
</p>
<h2><a name="lib_ftmpsecurity_tests_warn__system_possibly_insecure_">lib/ftmp-security tests warn 'system possibly insecure'</a></h2>
<p>Don't panic. Read INSTALL 'make test' section instead.</p>
<p>
</p>
<h2><a name="lib_io_multihomed_fails_in_lp64configured_hpux">lib/io_multihomed Fails In LP64-Configured HP-UX</a></h2>
<p>The lib/io_multihomed test may hang in HP-UX if Perl has been
configured to be 64-bit. Because other 64-bit platforms do not hang in
this test, HP-UX is suspect. All other tests pass in 64-bit HP-UX. The
test attempts to create and connect to "multihomed" sockets (sockets
which have multiple IP addresses).</p>
<p>
</p>
<h2><a name="test_lib_posix_subtest_9_fails_in_lp64configured_hpux">Test lib/posix Subtest 9 Fails In LP64-Configured HP-UX</a></h2>
<p>If perl is configured with -Duse64bitall, the successful result of the
subtest 10 of lib/posix may arrive before the successful result of the
subtest 9, which confuses the test harness so much that it thinks the
subtest 9 failed.</p>
<p>
</p>
<h2><a name="lib_b_test_19">lib/b test 19</a></h2>
<p>The test fails on various platforms (PA64 and IA64 are known), but the
exact cause is still being investigated.</p>
<p>
</p>
<h2><a name="linux_with_sfio_fails_op_misc_test_48">Linux With Sfio Fails op/misc Test 48</a></h2>
<p>No known fix.</p>
<p>
</p>
<h2><a name="sigaction_test_13_in_vms">sigaction test 13 in VMS</a></h2>
<p>The test is known to fail; whether it's because of VMS of because
of faulty test is not known.</p>
<p>
</p>
<h2><a name="sprintf_tests_129_and_130">sprintf tests 129 and 130</a></h2>
<p>The 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, line
19ff on page 134 of ANSI X3.159 1989 to be exact. (They produce
something else than "1" and "-1" when formatting 0.6 and -0.6 using
the printf format "%.0f", most often they produce "0" and "-0".)</p>
<p>
</p>
<h2><a name="failure_of_thread_tests">Failure of Thread tests</a></h2>
<p>The subtests 19 and 20 of lib/thr5005.t test are known to fail due to
fundamental problems in the 5.005 threading implementation. These are
not new failures--Perl 5.005_0x has the same bugs, but didn't have
these tests. (Note that support for 5.005-style threading remains
experimental.)</p>
<p>
</p>
<h2><a name="localising_a_tied_variable_leaks_memory">Localising a Tied Variable Leaks Memory</a></h2>
<pre>
<span class="keyword">use</span> <span class="variable">Tie::Hash</span><span class="operator">;</span>
<span class="keyword">tie</span> <span class="keyword">my</span> <span class="variable">%tie_hash</span> <span class="operator">=></span> <span class="string">'Tie::StdHash'</span><span class="operator">;</span>
</pre>
<pre>
...</pre>
<pre>
<span class="keyword">local</span><span class="operator">(</span><span class="variable">$tie_hash</span><span class="operator">{</span><span class="string">Foo</span><span class="operator">}</span><span class="operator">)</span> <span class="operator">=</span> <span class="number">1</span><span class="operator">;</span> <span class="comment"># leaks</span>
</pre>
<p>Code like the above is known to leak memory every time the <a href="../../lib/Pod/perlfunc.html#item_local"><code>local()</code></a>
is executed.</p>
<p>
</p>
<h2><a name="selftying_of_arrays_and_hashes_is_forbidden">Self-tying of Arrays and Hashes Is Forbidden</a></h2>
<p>Self-tying of arrays and hashes is broken in rather deep and
hard-to-fix ways. As a stop-gap measure to avoid people from getting
frustrated at the mysterious results (core dumps, most often) it is
for now forbidden (you will get a fatal error even from an attempt).</p>
<p>
</p>
<h2><a name="building_extensions_can_fail_because_of_largefiles">Building Extensions Can Fail Because Of Largefiles</a></h2>
<p>Some extensions like mod_perl are known to have issues with
`largefiles', a change brought by Perl 5.6.0 in which file offsets
default to 64 bits wide, where supported. Modules may fail to compile
at all or compile and work incorrectly. Currently there is no good
solution for the problem, but Configure now provides appropriate
non-largefile ccflags, ldflags, libswanted, and libs in the %Config
hash (e.g., $Config{ccflags_nolargefiles}) so the extensions that are
having problems can try configuring themselves without the
largefileness. This is admittedly not a clean solution, and the
solution may not even work at all. One potential failure is whether
one can (or, if one can, whether it's a good idea) link together at
all binaries with different ideas about file offsets, all this is
platform-dependent.</p>
<p>
</p>
<h2><a name="the_compiler_suite_is_still_experimental">The Compiler Suite Is Still Experimental</a></h2>
<p>The compiler suite is slowly getting better but is nowhere near
working order yet.</p>
<p>
</p>
<hr />
<h1><a name="reporting_bugs">Reporting Bugs</a></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="http://bugs.perl.org/">http://bugs.perl.org/</a> There may also be
information at <a href="http://www.perl.com/perl/">http://www.perl.com/perl/</a> , the Perl Home Page.</p>
<p>If you believe you have an unreported bug, please run the <strong>perlbug</strong>
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 <a href="mailto:perlbug@perl.org">perlbug@perl.org</a> to be
analysed by the Perl porting team.</p>
<p>
</p>
<hr />
<h1><a name="see_also">SEE ALSO</a></h1>
<p>The <em>Changes</em> file for exhaustive details on what changed.</p>
<p>The <em>INSTALL</em> file for how to build Perl.</p>
<p>The <em>README</em> file for general stuff.</p>
<p>The <em>Artistic</em> and <em>Copying</em> files for copyright information.</p>
<p>
</p>
<hr />
<h1><a name="history">HISTORY</a></h1>
<p>Written by Jarkko Hietaniemi <<em><a href="mailto:jhi@iki.fi">jhi@iki.fi</a></em>>, with many contributions
from The Perl Porters and Perl Users submitting feedback and patches.</p>
<p>Send omissions or corrections to <<em><a href="mailto:perlbug@perl.org">perlbug@perl.org</a></em>>.</p>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?