In perl.git, the branch blead has been updated <http://perl5.git.perl.org/perl.git/commitdiff/1540de7c942823a29b1deeba0679cc5fe6d10674?hp=0ebca1e730969cf1b91d2ed9b84f981540ace1ab>
- Log ----------------------------------------------------------------- commit 1540de7c942823a29b1deeba0679cc5fe6d10674 Author: Ricardo Signes <[email protected]> Date: Tue May 15 17:59:48 2012 -0400 perldelta: Americanise spellings M pod/perldelta.pod commit a1d29d1320cc05ea6451cc94474a6bd8b75946a6 Author: Ricardo Signes <[email protected]> Date: Tue May 15 07:41:36 2012 -0400 reflect Socket update in Module::CoreList M dist/Module-CoreList/lib/Module/CoreList.pm commit 2329674809a320420acae0efb5641e1800297583 Author: Tony Cook <[email protected]> Date: Tue May 15 19:22:30 2012 +1000 Update Socket to CPAN version 2.001 2.001 CHANGES: * Apply (modified) patch from [email protected] to fix memory addressing bug with Zero() - RT76067 * Document that inet_pton() doesn't work on hostnames, only textual addresses - RT76010 * Ignore any existing-but-undefined hints hash members to getaddrinfo() Done for the critical RT76067 fix. M Porting/Maintainers.pl M cpan/Socket/Socket.pm M cpan/Socket/Socket.xs M pod/perldelta.pod commit 14b32ddab61902a15395daf29abf756e972cec84 Author: Ricardo Signes <[email protected]> Date: Tue May 15 07:27:17 2012 -0400 perldelta typo fixes (from mauke) M pod/perldelta.pod ----------------------------------------------------------------------- Summary of changes: Porting/Maintainers.pl | 2 +- cpan/Socket/Socket.pm | 4 +- cpan/Socket/Socket.xs | 10 ++-- dist/Module-CoreList/lib/Module/CoreList.pm | 2 +- pod/perldelta.pod | 58 +++++++++++++------------- 5 files changed, 38 insertions(+), 38 deletions(-) diff --git a/Porting/Maintainers.pl b/Porting/Maintainers.pl index bef1e74..1b1810e 100755 --- a/Porting/Maintainers.pl +++ b/Porting/Maintainers.pl @@ -1621,7 +1621,7 @@ use File::Glob qw(:case); 'Socket' => { 'MAINTAINER' => 'pevans', - 'DISTRIBUTION' => 'PEVANS/Socket-2.000.tar.gz', + 'DISTRIBUTION' => 'PEVANS/Socket-2.001.tar.gz', 'FILES' => q[cpan/Socket], 'UPSTREAM' => 'cpan', }, diff --git a/cpan/Socket/Socket.pm b/cpan/Socket/Socket.pm index 3b8ea73..e12d851 100644 --- a/cpan/Socket/Socket.pm +++ b/cpan/Socket/Socket.pm @@ -3,7 +3,7 @@ package Socket; use strict; { use 5.006001; } -our $VERSION = '2.000'; +our $VERSION = '2.001'; =head1 NAME @@ -286,7 +286,7 @@ code should use getnameinfo() or inet_ntop() instead for IPv6 support. =head2 $address = inet_pton $family, $string Takes an address family (such as C<AF_INET> or C<AF_INET6>) and a string -giving the name of a host, or a textual representation of an IP address and +containing a textual representation of an address in that family and translates that to an packed binary address structure. See also getaddrinfo() for a more powerful and flexible function to look up diff --git a/cpan/Socket/Socket.xs b/cpan/Socket/Socket.xs index 3999c4b..5ddd0e9 100644 --- a/cpan/Socket/Socket.xs +++ b/cpan/Socket/Socket.xs @@ -444,13 +444,13 @@ static void xs_getaddrinfo(pTHX_ CV *cv) hintshash = (HV*)SvRV(hints); - if((valp = hv_fetch(hintshash, "flags", 5, 0)) != NULL) + if((valp = hv_fetch(hintshash, "flags", 5, 0)) != NULL && SvOK(*valp)) hints_s.ai_flags = SvIV(*valp); - if((valp = hv_fetch(hintshash, "family", 6, 0)) != NULL) + if((valp = hv_fetch(hintshash, "family", 6, 0)) != NULL && SvOK(*valp)) hints_s.ai_family = SvIV(*valp); - if((valp = hv_fetch(hintshash, "socktype", 8, 0)) != NULL) + if((valp = hv_fetch(hintshash, "socktype", 8, 0)) != NULL && SvOK(*valp)) hints_s.ai_socktype = SvIV(*valp); - if((valp = hv_fetch(hintshash, "protocol", 8, 0)) != NULL) + if((valp = hv_fetch(hintshash, "protocol", 8, 0)) != NULL && SvOK(*valp)) hints_s.ai_protocol = SvIV(*valp); } @@ -712,7 +712,7 @@ unpack_sockaddr_un(sun_sv) getpeername and getsockname is not equal to sizeof(addr). */ if (sockaddrlen < sizeof(addr)) { Copy(sun_ad, &addr, sockaddrlen, char); - Zero(&addr+sockaddrlen, sizeof(addr)-sockaddrlen, char); + Zero(((char*)&addr) + sockaddrlen, sizeof(addr) - sockaddrlen, char); } else { Copy(sun_ad, &addr, sizeof(addr), char); } diff --git a/dist/Module-CoreList/lib/Module/CoreList.pm b/dist/Module-CoreList/lib/Module/CoreList.pm index ec6e1aa..7cbc6ba 100644 --- a/dist/Module-CoreList/lib/Module/CoreList.pm +++ b/dist/Module-CoreList/lib/Module/CoreList.pm @@ -33279,7 +33279,7 @@ for my $version ( sort { $a <=> $b } keys %released ) { 'Search::Dict' => '1.04', 'SelectSaver' => '1.02', 'SelfLoader' => '1.20', - 'Socket' => '2.000', + 'Socket' => '2.001', 'Storable' => '2.34', 'Symbol' => '1.07', 'Sys::Hostname' => '1.16', diff --git a/pod/perldelta.pod b/pod/perldelta.pod index 1632617..f3b17e2 100644 --- a/pod/perldelta.pod +++ b/pod/perldelta.pod @@ -51,7 +51,7 @@ when they come first: There is a new ":default" feature bundle that represents the set of features enabled before any version declaration or C<use feature> has been seen. Version declarations below 5.10 now enable the ":default" -feature set. This does not actually change the behaviour of C<use +feature set. This does not actually change the behavior of C<use v5.8>, because features added to the ":default" set are those that were traditionally enabled by default, before they could be turned off. @@ -125,7 +125,7 @@ lvalue will always extend to the end of the string, even if the string becomes longer. Since this change also allowed many bugs to be fixed (see -L</The C<substr> operator>), and since the behaviour +L</The C<substr> operator>), and since the behavior of negative offsets has never been specified, the change was deemed acceptable. @@ -763,11 +763,11 @@ L<http://perldoc.perl.org/5.14.0/perlunicode.html#User-Defined-Case-Mappings-%28 XSUB C functions are now 'static', that is, they are not visible from outside the compilation unit. Users can use the new C<XS_EXTERNAL(name)> -and C<XS_INTERNAL(name)> macros to pick the desired linking behaviour. +and C<XS_INTERNAL(name)> macros to pick the desired linking behavior. The ordinary C<XS(name)> declaration for XSUBs will continue to declare non-'static' XSUBs for compatibility, but the XS compiler, L<ExtUtils::ParseXS> (C<xsubpp>) will emit 'static' XSUBs by default. -L<ExtUtils::ParseXS>'s behaviour can be reconfigured from XS using the +L<ExtUtils::ParseXS>'s behavior can be reconfigured from XS using the C<EXPORT_XSUB_SYMBOLS> keyword. See L<perlxs> for details. =head2 Weakening read-only references @@ -893,7 +893,7 @@ is not going to copy anyway. Perl 5.12.0 sped up the destruction of objects whose classes define empty C<DESTROY> methods (to prevent autoloading), by simply not -calling such empty methods. This release takes this optimisation a +calling such empty methods. This release takes this optimization a step further, by not calling any C<DESTROY> method that begins with a C<return> statement. This can be useful for destructors that are only used for debugging: @@ -902,7 +902,7 @@ used for debugging: sub DESTROY { return unless DEBUG; ... } Constant-folding will reduce the first statement to C<return;> if DEBUG -is set to 0, triggering this optimisation. +is set to 0, triggering this optimization. =item * @@ -1245,7 +1245,7 @@ Language Family codes (langfam) as defined in ISO 639-5. L<Math::BigFloat> has been upgraded from version 1.993 to 1.997. -The C<numify> method has been corrected to return a normalised Perl number +The C<numify> method has been corrected to return a normalized Perl number (the result of C<0 + $thing>), instead of a string [rt.cpan.org #66732]. =item * @@ -1403,7 +1403,7 @@ instead of 0. On most platforms C<TCSANOW> is defined to be 0, but on some =item * -L<Socket> has been upgraded from version 1.94 to 2.000. +L<Socket> has been upgraded from version 1.94 to 2.001. It has new functions and constants for handling IPv6 sockets: @@ -1624,7 +1624,7 @@ Documentation of the smartmatch operator has been reworked and moved from perlsyn to perlop where it belongs. It has also been corrected for the case of C<undef> on the left-hand -side. The list of different smart match behaviours had an item in the +side. The list of different smart match behaviors had an item in the wrong place. =item * @@ -1950,7 +1950,7 @@ with the correct spelling in L<perldiag>. =item * The error messages for using C<default> and C<when> outside a -topicalizer have been standardised to match the messages for C<continue> +topicalizer have been standardized to match the messages for C<continue> and loop controls. They now read 'Can't "default" outside a topicalizer' and 'Can't "when" outside a topicalizer'. They both used to be 'Can't use when() outside a topicalizer' [perl #91514]. @@ -2089,7 +2089,7 @@ option, as used by some projects that include perl's header files (5.14.1). =item * C<USE_LOCALE{,_COLLATE,_CTYPE,_NUMERIC}> have been added the output of perl -V -as they have affect the behaviour of the interpreter binary (albeit +as they have affect the behavior of the interpreter binary (albeit in only a small area). =item * @@ -2285,7 +2285,7 @@ the last place where the core stores data beyond C<SvLEN()>. =item * Simplified logic in C<Perl_sv_magic()> introduces a small change of -behaviour for error cases involving unknown magic types. Previously, if +behavior for error cases involving unknown magic types. Previously, if C<Perl_sv_magic()> was passed a magic type unknown to it, it would =over @@ -2431,7 +2431,7 @@ See L<perlguts/Autoloading with XSUBs>. =item * -Perl now checks whether the array (the linearised isa) returned by a MRO +Perl now checks whether the array (the linearized isa) returned by a MRO plugin begins with the name of the class itself, for which the array was created, instead of assuming that it does. This prevents the first element from being skipped during method lookup. It also means that @@ -2520,7 +2520,7 @@ possible to cause double-frees if the destructor freed the hash itself =item * -A C<keys> optimisation in Perl 5.12.0 to make it faster on empty hashes +A C<keys> optimization in Perl 5.12.0 to make it faster on empty hashes caused C<each> not to reset the iterator if called after the last element was deleted. @@ -2544,7 +2544,7 @@ hash or array itself, a crash would ensue. This is no longer the case =item * -It used to be possible to free the typeglob of a localised array or hash +It used to be possible to free the typeglob of a localized array or hash (e.g., C<local @{"x"}; delete $::{x}>), resulting in a crash on scope exit. =item * @@ -2618,14 +2618,14 @@ C<%^H> when entering a compilation scope [perl #106282]. =item * C<eval $string> and C<require> used not to -localise C<%^H> during compilation if it +localize C<%^H> during compilation if it was empty at the time the C<eval> call itself was compiled. This could lead to scary side effects, like C<use re "/m"> enabling other flags that the surrounding code was trying to enable for its caller [perl #68750]. =item * -C<eval $string> and C<require> no longer localise hints (C<$^H> and C<%^H>) +C<eval $string> and C<require> no longer localize hints (C<$^H> and C<%^H>) at run time, but only during compilation of the $string or required file. This makes C<BEGIN { $^H{foo}=7 }> equivalent to C<BEGIN { eval '$^H{foo}=7' }> [perl #70151]. @@ -2669,7 +2669,7 @@ copy-on-write values couldn't be deleted, nor could such hashes be cleared =item * -Localising a tied variable used to make it read-only if it contained a +Localizing a tied variable used to make it read-only if it contained a copy-on-write string. (5.14.2) =item * @@ -2876,7 +2876,7 @@ returning C<undef> for glob references without setting the last stat buffer that the "_" handle uses, but only if warnings were turned on. With warnings off, it was the same as 5.6. In other words, it was simply buggy and inconsistent. Now the 5.6 -behaviour has been restored. +behavior has been restored. =item * @@ -2892,7 +2892,7 @@ buffer, from which file(handle) it originated, what type it was, and whether the last stat succeeded. There were various cases where these could get out of synch, resulting in -inconsistent or erratic behaviour in edge cases (every mention of C<-T> +inconsistent or erratic behavior in edge cases (every mention of C<-T> applies to C<-B> as well): =over @@ -3213,7 +3213,7 @@ with "\n". This has been fixed [perl #109206]. Starting with 5.12.0, Perl used to get its internal bookkeeping muddled up after assigning C<${ qr// }> to a hash element and locking it with L<Hash::Util>. This could result in double frees, crashes, or erratic -behaviour. +behavior. =item * @@ -3340,7 +3340,7 @@ C<"f\x{FB00}" =~ /ff/i> to fail. =item * -The regexp optimiser no longer crashes on debugging builds when merging +The regexp optimizer no longer crashes on debugging builds when merging fixed-string nodes with inconvenient contents. =item * @@ -3364,7 +3364,7 @@ C<< (?foo: ...) >> no longer loses passed in character set. =item * -The trie optimisation used to have problems with alternations containing +The trie optimization used to have problems with alternations containing an empty C<(?:)>, causing C<< "x" =~ /\A(?>(?:(?:)A|B|C?x))\z/ >> not to match, whereas it should [perl #111842]. @@ -3451,11 +3451,11 @@ comparison routine's scope. =item * -C<< sort { $a <=> $b } >>, which is optimised internally, now produces +C<< sort { $a <=> $b } >>, which is optimized internally, now produces "uninitialized" warnings for NaNs (not-a-number values), since C<< <=> >> returns C<undef> for those. This brings it in line with S<C<< sort { 1; $a <=> $b } >>> and other more complex cases, which are not -optimised [perl #94390]. +optimized [perl #94390]. =back @@ -3676,7 +3676,7 @@ bitmask" warning on tied or tainted variables that are strings. =item * -Localising a tied scalar that returns a typeglob no longer stops it from +Localizing a tied scalar that returns a typeglob no longer stops it from being tied till the end of the scope. =item * @@ -3894,13 +3894,13 @@ for flat scalars (i.e., not references). =item * -Unrecognised switches on C<#!> line +Unrecognized switches on C<#!> line If a switch, such as B<-x>, that cannot occur on the C<#!> line is used there, perl dies with "Can't emulate...". It used to produce the same message for switches that perl did not -recognise at all, whether on the command line or the C<#!> line. +recognize at all, whether on the command line or the C<#!> line. Now it produces the "Unrecognized switch" error message [perl #104288]. @@ -4047,7 +4047,7 @@ subsequently compiled code to become tainted [perl #64804]. =item * Infinite loops like C<1 while 1> used to stop C<strict 'subs'> mode from -working for the rest of the block.t +working for the rest of the block. =item * -- Perl5 Master Repository
