text:
<!DOCTYPE html>

<TITLE>Manpage of PERL589DELTA</TITLE>
<meta charset="utf-8">
<link rel="stylesheet" href="/css/main.css" type="text/css">

linux manpages

{"type":"documentation"}

PERL589DELTA

Section: Perl Programmers Reference Guide (1)
Updated: 2009-05-12
Index
Return to Main Contents

NAME

perl589delta - what is new for perl v5.8.9

DESCRIPTION

This document describes differences between the 5.8.8 release and
the 5.8.9 release.

Notice

The 5.8.9 release will be the last significant release of the 5.8.x
series. Any future releases of 5.8.x will likely only be to deal with
security issues, and platform build failures. Hence you should look to
migrating to 5.10.x, if you have not started already.
See ``Known Problems'' for more information.

Incompatible Changes

A particular construction in the source code of extensions written in C++
may need changing. See ``Changed Internals'' for more details. All
extensions written in C, most written in C++, and all existing compiled
extensions are unaffected. This was necessary to improve C++ support.

Other than this, there are no changes intentionally incompatible with 5.8.8.
If any exist, they are bugs and reports are welcome.

Core Enhancements

Unicode Character Database 5.1.0.

The copy of the Unicode Character Database included in Perl 5.8 has
been updated to 5.1.0 from 4.1.0. See
<http://www.unicode.org/versions/Unicode5.1.0/#NotableChanges> for the
notable changes.

stat and -X on directory handles

It is now possible to call <TT>"stat"</TT> and the <TT>"-X"</TT> filestat operators on
directory handles. As both directory and file handles are barewords, there
can be ambiguities over which was intended. In these situations the file
handle semantics are preferred. Both also treat <TT>*FILE{IO}</TT> filehandles
like <TT>*FILE</TT> filehandles.

Source filters in @INC

It's possible to enhance the mechanism of subroutine hooks in <TT>@INC</TT> by
adding a source filter on top of the filehandle opened and returned by the
hook. This feature was planned a long time ago, but wasn't quite working
until now. See ``require'' in perlfunc for details. (Nicholas Clark)

Exceptions in constant folding

The constant folding routine is now wrapped in an exception handler, and
if folding throws an exception (such as attempting to evaluate 0/0), perl
now retains the current optree, rather than aborting the whole program.
Without this change, programs would not compile if they had expressions that
happened to generate exceptions, even though those expressions were in code
that could never be reached at runtime. (Nicholas Clark, Dave Mitchell)

no VERSION

You can now use <TT>"no"</TT> followed by a version number to specify that you
want to use a version of perl older than the specified one.

Improved internal UTF-8 caching code

The code that caches calculated UTF-8 byte offsets for character offsets for
a string has been re-written. Several bugs have been located and eliminated,
and the code now makes better use of the information it has, so should be
faster. In particular, it doesn't scan to the end of a string before
calculating an offset within the string, which should speed up some operations
on long strings. It is now possible to disable the caching code at run time,
to verify that it is not the cause of suspected problems.

Runtime relocatable installations

There is now Configure support for creating a perl tree that is relocatable
at run time. see ``Relocatable installations''.

New internal variables

${^CHILD_ERROR_NATIVE}

This variable gives the native status returned by the last pipe close,
backtick command, successful call to <TT>"wait"</TT> or <TT>"waitpid"</TT>, or from the
<TT>"system"</TT> operator. See perlvar for details. (Contributed by Gisle Aas.)

${^UTF8CACHE}

This variable controls the state of the internal UTF-8 offset caching code.
1 for on (the default), 0 for off, -1 to debug the caching code by checking
all its results against linear scans, and panicing on any discrepancy.

readpipe is now overridable

The built-in function <TT>"readpipe"</TT> is now overridable. Overriding it permits
also to override its operator counterpart, <TT>"qx//"</TT> (also known as <TT>"``"</TT>).

simple exception handling macros

Perl 5.8.9 (and 5.10.0 onwards) now provides a couple of macros to do very
basic exception handling in XS modules. You can use these macros if you call
code that may <TT>"croak"</TT>, but you need to do some cleanup before giving control
back to Perl. See ``Exception Handling'' in perlguts for more details.

-D option enhancements

*

<TT>"-Dq"</TT> suppresses the EXECUTING... message when running under <TT>"-D"</TT>

*

<TT>"-Dl"</TT> logs runops loop entry and exit, and jump level popping.

*

<TT>"-Dv"</TT> displays the process id as part of the trace output.

XS-assisted SWASHGET

Some pure-perl code that the regexp engine was using to retrieve Unicode
properties and transliteration mappings has been reimplemented in XS
for faster execution.
(SADAHIRO Tomoyuki)

Constant subroutines

The interpreter internals now support a far more memory efficient form of
inlineable constants. Storing a reference to a constant value in a symbol
table is equivalent to a full typeglob referencing a constant subroutine,
but using about 400 bytes less memory. This proxy constant subroutine is
automatically upgraded to a real typeglob with subroutine if necessary.
The approach taken is analogous to the existing space optimisation for
subroutine stub declarations, which are stored as plain scalars in place
of the full typeglob.

However, to aid backwards compatibility of existing code, which (wrongly)
does not expect anything other than typeglobs in symbol tables, nothing in
core uses this feature, other than the regression tests.

Stubs for prototyped subroutines have been stored in symbol tables as plain
strings, and stubs for unprototyped subroutines as the number -1, since 5.005,
so code which assumes that the core only places typeglobs in symbol tables
has been making incorrect assumptions for over 10 years.

New Platforms

Compile support added for:

*

DragonFlyBSD

*

MidnightBSD

*

MirOS BSD

*

RISC OS

*

Cray XT4/Catamount

Modules and Pragmata

New Modules

*

<TT>"Module::Pluggable"</TT> is a simple framework to create modules that accept
pluggable sub-modules. The bundled version is 3.8

*

<TT>"Module::CoreList"</TT> is a hash of hashes that is keyed on perl version as
indicated in <TT>$]</TT>. The bundled version is 2.17

*

<TT>"Win32API::File"</TT> now available in core on Microsoft Windows. The bundled
version is 0.1001_01

*

<TT>"Devel::InnerPackage"</TT> finds all the packages defined by a single file. It is
part of the <TT>"Module::Pluggable"</TT> distribution. The bundled version is 0.3

Updated Modules

*

<TT>"attributes"</TT> upgraded to version 0.09

*

<TT>"AutoLoader"</TT> upgraded to version 5.67

*

<TT>"AutoSplit"</TT> upgraded to 1.06

*

<TT>"autouse"</TT> upgraded to version 1.06

*

<TT>"B"</TT> upgraded from 1.09_01 to 1.19

*

provides new pad related abstraction macros <TT>"B::NV::COP_SEQ_RANGE_LOW"</TT>,
<TT>"B::NV::COP_SEQ_RANGE_HIGH"</TT>, <TT>"B::NV::PARENT_PAD_INDEX"</TT>,
<TT>"B::NV::PARENT_FAKELEX_FLAGS"</TT>, which hides the difference in storage in
5.10.0 and later.

*

provides <TT>"B::sub_generation"</TT>, which exposes <TT>"PL_sub_generation"</TT>

*

provides <TT>"B::GV::isGV_with_GP"</TT>, which on pre-5.10 perls always returns true.

*

New type <TT>"B::HE"</TT> added with methods <TT>"VAL"</TT>, <TT>"HASH"</TT> and <TT>"SVKEY_force"</TT>

*

The <TT>"B::GVf_IMPORTED_CV"</TT> flag is now set correctly when a proxy
constant subroutine is imported.

*

bugs fixed in the handling of <TT>"PMOP"</TT>s.

*

<TT>"B::BM::PREVIOUS"</TT> returns now <TT>"U32"</TT>, not <TT>"U16"</TT>.
<TT>"B::CV::START"</TT> and <TT>"B:CV::ROOT"</TT> return now <TT>"NULL"</TT> on an XSUB,
<TT>"B::CV::XSUB"</TT> and <TT>"B::CV::XSUBANY"</TT> return 0 on a non-XSUB.

*

<TT>"B::C"</TT> upgraded to 1.05

*

<TT>"B::Concise"</TT> upgraded to 0.76

*

new option <TT>"-src"</TT> causes the rendering of each statement (starting with
the nextstate OP) to be preceded by the first line of source code that
generates it.

*

new option <TT>"-stash="somepackage""</TT>, <TT>"require"</TT>s ``somepackage'', and then renders
each function defined in its namespace.

*

now has documentation of detailed hint symbols.

*

<TT>"B::Debug"</TT> upgraded to version 1.05

*

<TT>"B::Deparse"</TT> upgraded to version 0.87

*

properly deparse <TT>"print readpipe $x, $y"</TT>.

*

now handles <TT>"''-"</TT>()>, <TT>"::()"</TT>, <TT>"sub :: {}"</TT>, etc. correctly [RT #43010].
All bugs in parsing these kinds of syntax are now fixed:

    perl -MO=Deparse -e '"my %h = "->()'
    perl -MO=Deparse -e '::->()'
    perl -MO=Deparse -e 'sub :: {}'
    perl -MO=Deparse -e 'package a; sub a::b::c {}'
    perl -MO=Deparse -e 'sub the::main::road {}'

*

does not deparse <TT>$^H{v_string}</TT>, which is automatically set by the
internals.

*

<TT>"B::Lint"</TT> upgraded to version 1.11

*

<TT>"B::Terse"</TT> upgraded to version 1.05

*

<TT>"base"</TT> upgraded to version 2.13

*

loading a module via base.pm would mask a global <TT>$SIG{__DIE__}</TT> in that
module.

*

push all classes at once in <TT>@ISA</TT>

*

<TT>"Benchmark"</TT> upgraded to version 1.10

*

<TT>"bigint"</TT> upgraded to 0.23

*

<TT>"bignum"</TT> upgraded to 0.23

*

<TT>"bigrat"</TT> upgraded to 0.23

*

<TT>"blib"</TT> upgraded to 0.04

*

<TT>"Carp"</TT> upgraded to version 1.10

The argument backtrace code now shows <TT>"undef"</TT> as <TT>"undef"</TT>,
instead of a string ``undef''.

*

<TT>"CGI"</TT> upgraded to version 3.42

*

<TT>"charnames"</TT> upgraded to 1.06

*

<TT>"constant"</TT> upgraded to version 1.17

*

<TT>"CPAN"</TT> upgraded to version 1.9301

*

<TT>"Cwd"</TT> upgraded to version 3.29 with some platform specific
improvements (including for VMS).

*

<TT>"Data::Dumper"</TT> upgraded to version 2.121_17

*

Fixes hash iterator current position with the pure Perl version [RT #40668]

*

Performance enhancements, which will be most evident on platforms where
repeated calls to C's <TT>"realloc()"</TT> are slow, such as Win32.

*

<TT>"DB_File"</TT> upgraded to version 1.817

*

<TT>"DB_Filter"</TT> upgraded to version 0.02

*

<TT>"Devel::DProf"</TT> upgraded to version 20080331.00

*

<TT>"Devel::Peek"</TT> upgraded to version 1.04

*

<TT>"Devel::PPPort"</TT> upgraded to version 3.14

*

<TT>"diagnostics"</TT> upgraded to version 1.16

*

<TT>"Digest"</TT> upgraded to version 1.15

*

<TT>"Digest::MD5"</TT> upgraded to version 2.37

*

<TT>"DirHandle"</TT> upgraded to version 1.02

*

now localises <TT>$.</TT>, <TT>$@</TT>, <TT>$!</TT>, <TT>$^E</TT>, and <TT>$?</TT> before closing the
directory handle to suppress leaking any side effects of warnings about it
already being closed.

*

<TT>"DynaLoader"</TT> upgraded to version 1.09

<TT>"DynaLoader"</TT> can now dynamically load a loadable object from a file with a
non-default file extension.

*

<TT>"Encode"</TT> upgraded to version 2.26

<TT>"Encode::Alias"</TT> includes a fix for encoding ``646'' on Solaris (better known as
ASCII).

*

<TT>"English"</TT> upgraded to version 1.03

*

<TT>"Errno"</TT> upgraded to version 1.10

*

<TT>"Exporter"</TT> upgraded to version 5.63

*

<TT>"ExtUtils::Command"</TT> upgraded to version 1.15

*

<TT>"ExtUtils::Constant"</TT> upgraded to version 0.21

*

<TT>"ExtUtils::Embed"</TT> upgraded to version 1.28

*

<TT>"ExtUtils::Install"</TT> upgraded to version 1.50_01

*

<TT>"ExtUtils::Installed"</TT> upgraded to version 1.43

*

<TT>"ExtUtils::MakeMaker"</TT> upgraded to version 6.48

*

support for <TT>"INSTALLSITESCRIPT"</TT> and <TT>"INSTALLVENDORSCRIPT"</TT>
configuration.

*

<TT>"ExtUtils::Manifest"</TT> upgraded to version 1.55

*

<TT>"ExtUtils::ParseXS"</TT> upgraded to version 2.19

*

<TT>"Fatal"</TT> upgraded to version 1.06

*

allows built-ins in <TT>"CORE::GLOBAL"</TT> to be made fatal.

*

<TT>"Fcntl"</TT> upgraded to version 1.06

*

<TT>"fields"</TT> upgraded to version 2.12

*

<TT>"File::Basename"</TT> upgraded to version 2.77

*

<TT>"FileCache"</TT> upgraded to version 1.07

*

<TT>"File::Compare"</TT> upgraded to 1.1005

*

<TT>"File::Copy"</TT> upgraded to 2.13

*

now uses 3-arg open.

*

<TT>"File::DosGlob"</TT> upgraded to 1.01

*

<TT>"File::Find"</TT> upgraded to version 1.13

*

<TT>"File::Glob"</TT> upgraded to version 1.06

*

fixes spurious results with brackets inside braces.

*

<TT>"File::Path"</TT> upgraded to version 2.07_02

*

<TT>"File::Spec"</TT> upgraded to version 3.29

*

improved handling of bad arguments.

*

some platform specific improvements (including for VMS and Cygwin), with
an optimisation on <TT>"abs2rel"</TT> when handling both relative arguments.

*

<TT>"File::stat"</TT> upgraded to version 1.01

*

<TT>"File::Temp"</TT> upgraded to version 0.20

*

<TT>"filetest"</TT> upgraded to version 1.02

*

<TT>"Filter::Util::Call"</TT> upgraded to version 1.07

*

<TT>"Filter::Simple"</TT> upgraded to version 0.83

*

<TT>"FindBin"</TT> upgraded to version 1.49

*

<TT>"GDBM_File"</TT> upgraded to version 1.09

*

<TT>"Getopt::Long"</TT> upgraded to version 2.37

*

<TT>"Getopt::Std"</TT> upgraded to version 1.06

*

<TT>"Hash::Util"</TT> upgraded to version 0.06

*

<TT>"if"</TT> upgraded to version 0.05

*

<TT>"IO"</TT> upgraded to version 1.23

Reduced number of calls to <TT>"getpeername"</TT> in <TT>"IO::Socket"</TT>

*

<TT>"IPC::Open"</TT> upgraded to version 1.03

*

<TT>"IPC::Open3"</TT> upgraded to version 1.03

*

<TT>"IPC::SysV"</TT> upgraded to version 2.00

*

<TT>"lib"</TT> upgraded to version 0.61

*

avoid warning about loading .par files.

*

<TT>"libnet"</TT> upgraded to version 1.22

*

<TT>"List::Util"</TT> upgraded to 1.19

*

<TT>"Locale::Maketext"</TT> upgraded to 1.13

*

<TT>"Math::BigFloat"</TT> upgraded to version 1.60

*

<TT>"Math::BigInt"</TT> upgraded to version 1.89

*

<TT>"Math::BigRat"</TT> upgraded to version 0.22

*

implements new <TT>"as_float"</TT> method.

*

<TT>"Math::Complex"</TT> upgraded to version 1.54.

*

<TT>"Math::Trig"</TT> upgraded to version 1.18.

*

<TT>"NDBM_File"</TT> upgraded to version 1.07

*

improve g++ handling for systems using GDBM compatibility headers.

*

<TT>"Net::Ping"</TT> upgraded to version 2.35

*

<TT>"NEXT"</TT> upgraded to version 0.61

*

fix several bugs with <TT>"NEXT"</TT> when working with <TT>"AUTOLOAD"</TT>, <TT>"eval"</TT> block, and
within overloaded stringification.

*

<TT>"ODBM_File"</TT> upgraded to 1.07

*

<TT>"open"</TT> upgraded to 1.06

*

<TT>"ops"</TT> upgraded to 1.02

*

<TT>"PerlIO::encoding"</TT> upgraded to version 0.11

*

<TT>"PerlIO::scalar"</TT> upgraded to version 0.06

*

[RT #40267] <TT>"PerlIO::scalar"</TT> doesn't respect readonly-ness.

*

<TT>"PerlIO::via"</TT> upgraded to version 0.05

*

<TT>"Pod::Html"</TT> upgraded to version 1.09

*

<TT>"Pod::Parser"</TT> upgraded to version 1.35

*

<TT>"Pod::Usage"</TT> upgraded to version 1.35

*

<TT>"POSIX"</TT> upgraded to version 1.15

*

<TT>"POSIX"</TT> constants that duplicate those in <TT>"Fcntl"</TT> are now imported from
<TT>"Fcntl"</TT> and re-exported, rather than being duplicated by <TT>"POSIX"</TT>

*

<TT>"POSIX::remove"</TT> can remove empty directories.

*

<TT>"POSIX::setlocale"</TT> safer to call multiple times.

*

<TT>"POSIX::SigRt"</TT> added, which provides access to POSIX realtime signal
functionality on systems that support it.

*

<TT>"re"</TT> upgraded to version 0.06_01

*

<TT>"Safe"</TT> upgraded to version 2.16

*

<TT>"Scalar::Util"</TT> upgraded to 1.19

*

<TT>"SDBM_File"</TT> upgraded to version 1.06

*

<TT>"SelfLoader"</TT> upgraded to version 1.17

*

<TT>"Shell"</TT> upgraded to version 0.72

*

<TT>"sigtrap"</TT> upgraded to version 1.04

*

<TT>"Socket"</TT> upgraded to version 1.81

*

this fixes an optimistic use of <TT>"gethostbyname"</TT>

*

<TT>"Storable"</TT> upgraded to 2.19

*

<TT>"Switch"</TT> upgraded to version 2.13

*

<TT>"Sys::Syslog"</TT> upgraded to version 0.27

*

<TT>"Term::ANSIColor"</TT> upgraded to version 1.12

*

<TT>"Term::Cap"</TT> upgraded to version 1.12

*

<TT>"Term::ReadLine"</TT> upgraded to version 1.03

*

<TT>"Test::Builder"</TT> upgraded to version 0.80

*

<TT>"Test::Harness"</TT> upgraded version to 2.64

*

this makes it able to handle newlines.

*

<TT>"Test::More"</TT> upgraded to version 0.80

*

<TT>"Test::Simple"</TT> upgraded to version 0.80

*

<TT>"Text::Balanced"</TT> upgraded to version 1.98

*

<TT>"Text::ParseWords"</TT> upgraded to version 3.27

*

<TT>"Text::Soundex"</TT> upgraded to version 3.03

*

<TT>"Text::Tabs"</TT> upgraded to version 2007.1117

*

<TT>"Text::Wrap"</TT> upgraded to version 2006.1117

*

<TT>"Thread"</TT> upgraded to version 2.01

*

<TT>"Thread::Semaphore"</TT> upgraded to version 2.09

*

<TT>"Thread::Queue"</TT> upgraded to version 2.11

*

added capability to add complex structures (e.g., hash of hashes) to queues.

*

added capability to dequeue multiple items at once.

*

added new methods to inspect and manipulate queues:  <TT>"peek"</TT>, <TT>"insert"</TT> and
<TT>"extract"</TT>

*

<TT>"Tie::Handle"</TT> upgraded to version 4.2

*

<TT>"Tie::Hash"</TT> upgraded to version 1.03

*

<TT>"Tie::Memoize"</TT> upgraded to version 1.1

*

<TT>"Tie::Memoize::EXISTS"</TT> now correctly caches its results.

*

<TT>"Tie::RefHash"</TT> upgraded to version 1.38

*

<TT>"Tie::Scalar"</TT> upgraded to version 1.01

*

<TT>"Tie::StdHandle"</TT> upgraded to version 4.2

*

<TT>"Time::gmtime"</TT> upgraded to version 1.03

*

<TT>"Time::Local"</TT> upgraded to version 1.1901

*

<TT>"Time::HiRes"</TT> upgraded to version 1.9715 with various build improvements
(including VMS) and minor platform-specific bug fixes (including
for HP-UX 11 ia64).

*

<TT>"threads"</TT> upgraded to 1.71

*

new thread state information methods: <TT>"is_running"</TT>, <TT>"is_detached"</TT>
and <TT>"is_joinable"</TT>.  <TT>"list"</TT> method enhanced to return running or joinable
threads.

*

new thread signal method: <TT>"kill"</TT>

*

added capability to specify thread stack size.

*

added capability to control thread exiting behavior.  Added a new <TT>"exit"</TT>
method.

*

<TT>"threads::shared"</TT> upgraded to version 1.27

*

smaller and faster implementation that eliminates one internal structure and
the consequent level of indirection.

*

user locks are now stored in a safer manner.

*

new function <TT>"shared_clone"</TT> creates a copy of an object leaving
shared elements as-is and deep-cloning non-shared elements.

*

added new <TT>"is_shared"</TT> method.

*

<TT>"Unicode::Normalize"</TT> upgraded to version 1.02

*

<TT>"Unicode::UCD"</TT> upgraded to version 0.25

*

<TT>"warnings"</TT> upgraded to version 1.05_01

*

<TT>"Win32"</TT> upgraded to version 0.38

*

added new function <TT>"GetCurrentProcessId"</TT> which returns the regular Windows
process identifier of the current process, even when called from within a fork.

*

<TT>"XSLoader"</TT> upgraded to version 0.10

*

<TT>"XS::APItest"</TT> and <TT>"XS::Typemap"</TT> are for internal use only and hence
no longer installed. Many more tests have been added to <TT>"XS::APItest"</TT>.

Utility Changes

debugger upgraded to version 1.31

*

Andreas Ko.nig contributed two functions to save and load the debugger
history.

*

<TT>"NEXT::AUTOLOAD"</TT> no longer emits warnings under the debugger.

*

The debugger should now correctly find tty the device on OS X 10.5 and VMS
when the program <TT>"fork"</TT>s.

*

LVALUE subs now work inside the debugger.

perlthanks

Perl 5.8.9 adds a new utility perlthanks, which is a variant of perlbug,
but for sending non-bug-reports to the authors and maintainers of Perl.
Getting nothing but bug reports can become a bit demoralising - we'll see if
this changes things.

perlbug

perlbug now checks if you're reporting about a non-core module and suggests
you report it to the CPAN author instead.

h2xs

*

won't define an empty string as a constant [RT #25366]

*

has examples for <TT>"h2xs -X"</TT>

h2ph

*

now attempts to deal sensibly with the difference in path implications
between <TT>""</TT> and <TT>"E<lt>E<gt>"</TT> quoting in <TT>"#include"</TT> statements.

*

now generates correct correct code for <TT>"#if defined A || defined B"</TT>
[RT #39130]

New Documentation

As usual, the documentation received its share of corrections, clarifications
and other nitfixes. More <TT>"X<...>"</TT> tags were added for indexing.

perlunitut is a tutorial written by Juerd Waalboer on Unicode-related
terminology and how to correctly handle Unicode in Perl scripts.

perlunicode is updated in section user defined properties.

perluniintro has been updated in the example of detecting data that is not
valid in particular encoding.

perlcommunity provides an overview of the Perl Community along with further
resources.

CORE documents the pseudo-namespace for Perl's core routines.

Changes to Existing Documentation

perlglossary adds deprecated modules and features and to be dropped modules.

perlhack has been updated and added resources on smoke testing.

The Perl FAQs (perlfaq1..perlfaq9) have been updated.

perlcheat is updated with better details on <TT>"\w"</TT>, <TT>"\d"</TT>, and <TT>"\s"</TT>.

perldebug is updated with information on how to call the debugger.

perldiag documentation updated with subroutine with an ampersand on the
argument to <TT>"exists"</TT> and <TT>"delete"</TT> and also several terminology updates on
warnings.

perlfork documents the limitation of <TT>"exec"</TT> inside pseudo-processes.

perlfunc:

*

Documentation is fixed in section <TT>"caller"</TT> and <TT>"pop"</TT>.

*

Function <TT>"alarm"</TT> now mentions <TT>"Time::HiRes::ualarm"</TT> in preference
to <TT>"select"</TT>.

*

Regarding precedence in <TT>"-X"</TT>, filetest operators are the same as unary
operators, but not regarding parsing and parentheses (spotted by Eirik Berg
Hanssen).

*

reverse function documentation received scalar context examples.

perllocale documentation is adjusted for number localization and
<TT>"POSIX::setlocale"</TT> to fix Debian bug #379463.

perlmodlib is updated with <TT>"CPAN::API::HOWTO"</TT> and
<TT>"Sys::Syslog::win32::Win32"</TT>

perlre documentation updated to reflect the differences between
<TT>"[[:xxxxx:]]"</TT> and <TT>"\p{IsXxxxx}"</TT> matches. Also added section on <TT>"/g"</TT> and
<TT>"/c"</TT> modifiers.

perlreguts describe the internals of the regular expressions engine. It has
been contributed by Yves Orton.

perlrebackslash describes all perl regular expression backslash and escape
sequences.

perlrecharclass describes the syntax and use of character classes in
Perl Regular Expressions.

perlrun is updated to clarify on the hash seed PERL_HASH_SEED. Also more
information in options <TT>"-x"</TT> and <TT>"-u"</TT>.

perlsub example is updated to use a lexical variable for <TT>"opendir"</TT> syntax.

perlvar fixes confusion about real GID <TT>$(</TT> and effective GID <TT>$)</TT>.

Perl thread tutorial example is fixed in section
``Queues: Passing Data Around'' in perlthrtut and perlothrtut.

perlhack documentation extensively improved by Jarkko Hietaniemi and others.

perltoot provides information on modifying <TT>@UNIVERSAL::ISA</TT>.

perlport documentation extended to include different <TT>"kill(-9, ...)"</TT>
semantics on Windows. It also clearly states <TT>"dump"</TT> is not supported on Win32
and cygwin.

INSTALL has been updated and modernised.

Performance Enhancements

*

The default since perl 5.000 has been for perl to create an empty scalar
with every new typeglob. The increased use of lexical variables means that
most are now unused. Thanks to Nicholas Clark's efforts, Perl can now be
compiled with <TT>"-DPERL_DONT_CREATE_GVSV"</TT> to avoid creating these empty scalars.
This will significantly decrease the number of scalars allocated for all
configurations, and the number of scalars that need to be copied for ithread
creation. Whilst this option is binary compatible with existing perl
installations, it does change a long-standing assumption about the
internals, hence it is not enabled by default, as some third party code may
rely on the old behaviour.

We would recommend testing with this configuration on new deployments of
perl, particularly for multi-threaded servers, to see whether all third party
code is compatible with it, as this configuration may give useful performance
improvements. For existing installations we would not recommend changing to
this configuration unless thorough testing is performed before deployment.

*

<TT>"diagnostics"</TT> no longer uses <TT>$&</TT>, which results in large speedups
for regexp matching in all code using it.

*

Regular expressions classes of a single character are now treated the same as
if the character had been used as a literal, meaning that code that uses
char-classes as an escaping mechanism will see a speedup. (Yves Orton)

*

Creating anonymous array and hash references (ie. <TT>"[]"</TT> and <TT>"{}"</TT>) now incurs
no more overhead than creating an anonymous list or hash. Nicholas Clark
provided changes with a saving of two ops and one stack push, which was measured
as a slightly better than 5% improvement for these operations.

*

Many calls to <TT>"strlen()"</TT> have been eliminated, either because the length was
already known, or by adopting or enhancing APIs that pass lengths. This has
been aided by the adoption of a <TT>"my_sprintf()"</TT> wrapper, which returns the
correct C89 value - the length of the formatted string. Previously we could
not rely on the return value of <TT>"sprintf()"</TT>, because on some ancient but
extant platforms it still returns <TT>"char *"</TT>.

*

<TT>"index"</TT> is now faster if the search string is stored in UTF-8 but only contains
characters in the Latin-1 range.

*

The Unicode swatch cache inside the regexp engine is now used. (the lookup had
a key mismatch, present since the initial implementation). [RT #42839]

Installation and Configuration Improvements

Relocatable installations

There is now Configure support for creating a relocatable perl tree. If
you Configure with <TT>"-Duserelocatableinc"</TT>, then the paths in <TT>@INC</TT> (and
everything else in <TT>%Config</TT>) can be optionally located via the path of the
perl executable.

At start time, if any paths in <TT>@INC</TT> or <TT>"Config"</TT> that Configure marked
as relocatable (by starting them with <TT>".../"</TT>), then they are prefixed the
directory of <TT>$^X</TT>. This allows the relocation can be configured on a
per-directory basis, although the default with <TT>"-Duserelocatableinc"</TT> is that
everything is relocated. The initial install is done to the original configured
prefix.

Configuration improvements

Configure is now better at removing temporary files. Tom Callaway
(from RedHat) also contributed patches that complete the set of flags
passed to the compiler and the linker, in particular that <TT>"-fPIC"</TT> is now
enabled on Linux. It will also croak when your /dev/null isn't a device.

A new configuration variable <TT>"d_pseudofork"</TT> has been to Configure, and is
available as  <TT>$Config{d_pseudofork}</TT> in the <TT>"Config"</TT> module. This
distinguishes real <TT>"fork"</TT> support from the pseudofork emulation used on
Windows platforms.

Config.pod and config.sh are now placed correctly for cross-compilation.

<TT>$Config{useshrplib}</TT> is now 'true' rather than 'yes' when using a shared perl
library.

Compilation improvements

Parallel makes should work properly now, although there may still be problems
if <TT>"make test"</TT> is instructed to run in parallel.

Many compilation warnings have been cleaned up. A very stubborn compiler
warning in <TT>"S_emulate_eaccess()"</TT> was killed after six attempts.
g++ support has been tuned, especially for FreeBSD.

mkppport has been integrated, and all ppport.h files in the core will now
be autogenerated at build time (and removed during cleanup).

Installation improvements.

installman now works with <TT>"-Duserelocatableinc"</TT> and <TT>"DESTDIR"</TT>.

installperl no longer installs:

*

static library files of statically linked extensions when a shared perl library
is being used. (They are not needed. See ``Windows'' below).

*

SIGNATURE and PAUSE*.pub (CPAN files)

*

NOTES and PATCHING (ExtUtils files)

*

perlld and ld2 (Cygwin files)

Platform Specific Changes

There are improved hints for AIX, Cygwin, DEC/OSF, FreeBSD, HP/UX, Irix 6
Linux, MachTen, NetBSD, OS/390, QNX, SCO, Solaris, SunOS, System V Release 5.x
(UnixWare 7, OpenUNIX 8), Ultrix, UMIPS, uts and VOS.

FreeBSD

*

Drop <TT>"-std=c89"</TT> and <TT>"-ansi"</TT> if using <TT>"long long"</TT> as the main integral type,
else in FreeBSD 6.2 (and perhaps other releases), system headers do not
declare some functions required by perl.

Solaris

*

Starting with Solaris 10, we do not want versioned shared libraries, because
those often indicate a private use only library. These problems could often
be triggered when SUNWbdb (Berkeley DB) was installed. Hence if Solaris 10
is detected set <TT>"ignore_versioned_solibs=y"</TT>.

VMS

*

Allow IEEE math to be deselected on OpenVMS I64 (but it remains the default).

*

Record IEEE usage in <TT>"config.h"</TT>

*

Help older VMS compilers by using <TT>"ccflags"</TT> when building <TT>"munchconfig.exe"</TT>.

*

Don't try to build old <TT>"Thread"</TT> extension on VMS when <TT>"-Duseithreads"</TT> has
been chosen.

*

Passing a raw string of ``NaN'' to nawk causes a core dump - so the string
has been changed to ``*NaN*''

*

t/op/stat.t tests will now test hard links on VMS if they are supported.

Windows

*

When using a shared perl library installperl no longer installs static
library files, import library files and export library files (of statically
linked extensions) and empty bootstrap files (of dynamically linked
extensions). This fixes a problem building PAR-Packer on Win32 with a debug
build of perl.

*

Various improvements to the win32 build process, including support for Visual
C++ 2005 Express Edition (aka Visual C++ 8.x).

*

perl.exe will now have an icon if built with MinGW or Borland.

*

Improvements to the perl-static.exe build process.

*

Add Win32 makefile option to link all extensions statically.

*

The WinCE directory has been merged into the Win32 directory.

*

<TT>"setlocale"</TT> tests have been re-enabled for Windows XP onwards.

Selected Bug Fixes

Unicode

Many many bugs related to the internal Unicode implementation (UTF-8) have
been fixed. In particular, long standing bugs related to returning Unicode
via <TT>"tie"</TT>, overloading or <TT>$@</TT> are now gone, some of which were never
reported.

<TT>"unpack"</TT> will internally convert the string back from UTF-8 on numeric types.
This is a compromise between the full consistency now in 5.10, and the current
behaviour, which is often used as a ``feature'' on string types.

Using <TT>":crlf"</TT> and <TT>"UTF-16"</TT> IO layers together will now work.

Fixed problems with <TT>"split"</TT>, Unicode <TT>"/\s+/"</TT> and <TT>"/ \0/"</TT>.

Fixed bug RT #40641 - encoding of Unicode characters in regular expressions.

Fixed a bug where using certain patterns in a regexp led to a panic.
[RT #45337]

Perl no longer segfaults (due to infinite internal recursion) if the locale's
character is not UTF-8 [RT #41442]:

    use open ':locale';
    print STDERR "\x{201e}"; # &bdquo;

PerlIO

Inconsistencies have been fixed in the reference counting PerlIO uses to keep
track of Unix file descriptors, and the API used by XS code to manage getting
and releasing <TT>"FILE *"</TT>s

Magic

Several bugs have been fixed in Magic, the internal system used to implement
features such as <TT>"tie"</TT>, tainting and threads sharing.

<TT>"undef @array"</TT> on a tied array now correctly calls the <TT>"CLEAR"</TT> method.

Some of the bitwise ops were not checking whether their arguments were magical
before using them. [RT #24816]

Magic is no longer invoked twice by the expression <TT>"\&$x"</TT>

A bug with assigning large numbers and tainting has been resolved.
[RT #40708]

A new entry has been added to the MAGIC vtable - <TT>"svt_local"</TT>. This is used
when copying magic to the new value during <TT>"local"</TT>, allowing certain problems
with localising shared variables to be resolved.

For the implementation details, see ``Magic Virtual Tables'' in perlguts.

Reblessing overloaded objects now works

Internally, perl object-ness is on the referent, not the reference, even
though methods can only be called via a reference. However, the original
implementation of overloading stored flags related to overloading on the
reference, relying on the flags being copied when the reference was copied,
or set at the creation of a new reference. This manifests in a bug - if you
rebless an object from a class that has overloading, into one that does not,
then any other existing references think that they (still) point to an
overloaded object, choose these C code paths, and then throw errors.
Analogously, blessing into an overloaded class when other references exist will
result in them not using overloading.

The implementation has been fixed for 5.10, but this fix changes the semantics
of flag bits, so is not binary compatible, so can't be applied to 5.8.9.
However, 5.8.9 has a work-around that implements the same bug fix. If the
referent has multiple references, then all the other references are located and
corrected. A full search is avoided whenever possible by scanning lexicals
outwards from the current subroutine, and the argument stack.

A certain well known Linux vendor applied incomplete versions of this bug fix
to their /usr/bin/perl and then prematurely closed bug reports about
performance issues without consulting back upstream. This not being enough,
they then proceeded to ignore the necessary fixes to these unreleased changes
for 11 months, until massive pressure was applied by their long-suffering
paying customers, catalysed by the failings being featured on a prominent blog
and Slashdot.

strict now propagates correctly into string evals

Under 5.8.8 and earlier:

    $ perl5.8.8 -e 'use strict; eval "use foo bar" or die $@'
    Can't locate foo.pm in @INC (@INC contains: ... .) at (eval 1) line 2.
    BEGIN failed--compilation aborted at (eval 1) line 2.

Under 5.8.9 and later:

    $ perl5.8.9 -e 'use strict; eval "use foo bar" or die $@'
    Bareword "bar" not allowed while "strict subs" in use at (eval 1) line 1.

This may cause problems with programs that parse the error message and rely
on the buggy behaviour.

Other fixes

*

The tokenizer no longer treats <TT>"=cute"</TT> (and other words beginning
with <TT>"=cut"</TT>) as a synonym for <TT>"=cut"</TT>.

*

Calling <TT>"CORE::require"</TT>

<TT>"CORE::require"</TT> and <TT>"CORE::do"</TT> were always parsed as <TT>"require"</TT> and <TT>"do"</TT>
when they were overridden. This is now fixed.

*

Stopped memory leak on long /etc/groups entries.

*

<TT>"while (my $x ...) { ...; redo }"</TT> shouldn't <TT>"undef $x"</TT>.

In the presence of <TT>"my"</TT> in the conditional of a <TT>"while()"</TT>, <TT>"until()"</TT>,
or <TT>"for(;;)"</TT> loop, we now add an extra scope to the body so that <TT>"redo"</TT>
doesn't <TT>"undef"</TT> the lexical.

*

The <TT>"encoding"</TT> pragma now correctly ignores anything following an <TT>"@"</TT>
character in the <TT>"LC_ALL"</TT> and <TT>"LANG"</TT> environment variables. [RT # 49646]

*

A segfault observed with some gcc 3.3 optimisations is resolved.

*

A possible segfault when <TT>"unpack"</TT> used in scalar context with <TT>"()"</TT> groups
is resolved. [RT #50256]

*

Resolved issue where <TT>$!</TT> could be changed by a signal handler interrupting
a <TT>"system"</TT> call.

*

Fixed bug RT #37886, symbolic deferencing was allowed in the argument of
<TT>"defined"</TT> even under the influence of <TT>"use strict 'refs'"</TT>.

*

Fixed bug RT #43207, where <TT>"lc"</TT>/<TT>"uc"</TT> inside <TT>"sort"</TT> affected the return
value.

*

Fixed bug RT #45607, where <TT>"*{"BONK"} = \&{"BONK"}"</TT> didn't work correctly.

*

Fixed bug RT #35878, croaking from a XSUB called via <TT>"goto &xsub"</TT> corrupts perl
internals.

*

Fixed bug RT #32539, DynaLoader.o is moved into libperl.so to avoid the
need to statically link DynaLoader into the stub perl executable. With this
libperl.so provides everything needed to get a functional embedded perl
interpreter to run.

*

Fix bug RT #36267 so that assigning to a tied hash doesn't change the
underlying hash.

*

Fix bug RT #6006, regexp replaces using large replacement variables
fail some of the time, i.e. when substitution contains something
like <TT>"${10}"</TT> (note the bracket) instead of just <TT>$10</TT>.

*

Fix bug RT #45053, <TT>"Perl_newCONSTSUB()"</TT> is now thread safe.

Platform Specific Fixes

Darwin / MacOS X

*

Various improvements to 64 bit builds.

*

Mutex protection added in <TT>"PerlIOStdio_close()"</TT> to avoid race conditions.
Hopefully this fixes failures in the threads tests free.t and blocks.t.

*

Added forked terminal support to the debugger, with the ability to update the
window title.

OS/2

*

A build problem with specifying <TT>"USE_MULTI"</TT> and <TT>"USE_ITHREADS"</TT> but without
<TT>"USE_IMP_SYS"</TT> has been fixed.

*

<TT>"OS2::REXX"</TT> upgraded to version 1.04

Tru64

*

Aligned floating point build policies for cc and gcc.

RedHat Linux

*

Revisited a patch from 5.6.1 for RH7.2 for Intel's icc [RT #7916], added an
additional check for <TT>$Config{gccversion}</TT>.

Solaris/i386

*

Use <TT>"-DPTR_IS_LONG"</TT> when using 64 bit integers

VMS

*

Fixed <TT>"PerlIO::Scalar"</TT> in-memory file record-style reads.

*

pipe shutdown at process exit should now be more robust.

*

Bugs in VMS exit handling tickled by <TT>"Test::Harness"</TT> 2.64 have been fixed.

*

Fix <TT>"fcntl()"</TT> locking capability test in configure.com.

*

Replaced <TT>"shrplib='define'"</TT> with <TT>"useshrplib='true'"</TT> on VMS.

Windows

*

<TT>"File::Find"</TT> used to fail when the target directory is a bare drive letter and
<TT>"no_chdir"</TT> is 1 (the default is 0). [RT #41555]

*

A build problem with specifying <TT>"USE_MULTI"</TT> and <TT>"USE_ITHREADS"</TT> but without
<TT>"USE_IMP_SYS"</TT> has been fixed.

*

The process id is no longer truncated to 16 bits on some Windows platforms
( http://bugs.activestate.com/show_bug.cgi?id=72443 )

*

Fixed bug RT #54828 in perlio.c where calling <TT>"binmode"</TT> on Win32 and Cgywin
may cause a segmentation fault.

Smaller fixes

*

It is now possible to overload <TT>"eq"</TT> when using <TT>"nomethod"</TT>.

*

Various problems using <TT>"overload"</TT> with 64 bit integers corrected.

*

The reference count of <TT>"PerlIO"</TT> file descriptors is now correctly handled.

*

On VMS, escaped dots will be preserved when converted to UNIX syntax.

*

<TT>"keys %+"</TT> no longer throws an <TT>'ambiguous'</TT> warning.

*

Using <TT>"#!perl -d"</TT> could trigger an assertion, which has been fixed.

*

Don't stringify tied code references in <TT>@INC</TT> when calling <TT>"require"</TT>.

*

Code references in <TT>@INC</TT> report the correct file name when <TT>"__FILE__"</TT> is
used.

*

Width and precision in sprintf didn't handle characters above 255 correctly.
[RT #40473]

*

List slices with indices out of range now work more consistently.
[RT #39882]

*

A change introduced with perl 5.8.1 broke the parsing of arguments of the form
<TT>"-foo=bar"</TT> with the <TT>"-s"</TT> on the <#!> line. This has been fixed. See
http://bugs.activestate.com/show_bug.cgi?id=43483

*

<TT>"tr///"</TT> is now threadsafe. Previously it was storing a swash inside its OP,
rather than in a pad.

*

pod2html labels anchors more consistently and handles nested definition
lists better.

*

<TT>"threads"</TT> cleanup veto has been extended to include <TT>"perl_free()"</TT> and
<TT>"perl_destruct()"</TT>

*

On some systems, changes to <TT>$ENV{TZ}</TT> would not always be
respected by the underlying calls to <TT>"localtime_r()"</TT>.  Perl now
forces the inspection of the environment on these systems.

*

The special variable <TT>$^R</TT> is now more consistently set when executing
regexps using the <TT>"(?{...})"</TT> construct.  In particular, it will still
be set even if backreferences or optional sub-patterns <TT>"(?:...)?"</TT> are
used.

New or Changed Diagnostics

panic: sv_chop %s

This new fatal error occurs when the C routine <TT>"Perl_sv_chop()"</TT> was passed a
position that is not within the scalar's string buffer. This is caused by
buggy XS code, and at this point recovery is not possible.

Maximal count of pending signals (%s) exceeded

This new fatal error occurs when the perl process has to abort due to
too many pending signals, which is bound to prevent perl from being
able to handle further incoming signals safely.

panic: attempt to call %s in %s

This new fatal error occurs when the ACL version file test operator is used
where it is not available on the current platform. Earlier checks mean that
it should never be possible to get this.

FETCHSIZE returned a negative value

New error indicating that a tied array has claimed to have a negative
number of elements.

Can't upgrade %s (%d) to %d

Previously the internal error from the SV upgrade code was the less informative
Can't upgrade that kind of scalar. It now reports the current internal type,
and the new type requested.

%s argument is not a HASH or ARRAY element or a subroutine

This error, thrown if an invalid argument is provided to <TT>"exists"</TT> now
correctly includes ``or a subroutine''. [RT #38955]

Cannot make the non-overridable builtin %s fatal

This error in <TT>"Fatal"</TT> previously did not show the name of the builtin in
question (now represented by <TT>%s</TT> above).

Unrecognized character '%s' in column %d

This error previously did not state the column.

Offset outside string

This can now also be generated by a <TT>"seek"</TT> on a file handle using
<TT>"PerlIO::scalar"</TT>.

Invalid escape in the specified encoding in regexp; marked by <-- HERE in m/%s/

New error, introduced as part of the fix to RT #40641 to handle encoding
of Unicode characters in regular expression comments.

Your machine doesn't support dump/undump.

A more informative fatal error issued when calling <TT>"dump"</TT> on Win32 and
Cygwin. (Given that the purpose of <TT>"dump"</TT> is to abort with a core dump,
and core dumps can't be produced on these platforms, this is more useful than
silently exiting.)

Changed Internals

The perl sources can now be compiled with a C++ compiler instead of a C
compiler. A necessary implementation details is that under C++, the macro
<TT>"XS"</TT> used to define XSUBs now includes an <TT>"extern "C""</TT> definition. A side
effect of this is that C++ code that used the construction

    typedef XS(SwigPerlWrapper);

now needs to be written

    typedef XSPROTO(SwigPerlWrapper);

using the new <TT>"XSPROTO"</TT> macro, in order to compile. C extensions are
unaffected, although C extensions are encouraged to use <TT>"XSPROTO"</TT> too.
This change was present in the 5.10.0 release of perl, so any actively
maintained code that happened to use this construction should already have
been adapted. Code that needs changing will fail with a compilation error.

<TT>"set"</TT> magic on localizing/assigning to a magic variable will now only
trigger for container magics, i.e. it will for <TT>%ENV</TT> or <TT>%SIG</TT>
but not for <TT>$#array</TT>.

The new API macro <TT>"newSVpvs()"</TT> can be used in place of constructions such as
<TT>"newSVpvn("ISA", 3)"</TT>. It takes a single string constant, and at C compile
time determines its length.

The new API function <TT>"Perl_newSV_type()"</TT> can be used as a more efficient
replacement of the common idiom

    sv = newSV(0);
    sv_upgrade(sv, type);

Similarly <TT>"Perl_newSVpvn_flags()"</TT> can be used to combine
<TT>"Perl_newSVpv()"</TT> with <TT>"Perl_sv_2mortal()"</TT> or the equivalent
<TT>"Perl_sv_newmortal()"</TT> with <TT>"Perl_sv_setpvn()"</TT>

Two new macros <TT>"mPUSHs()"</TT> and <TT>"mXPUSHs()"</TT> are added, to make it easier to
push mortal SVs onto the stack. They were then used to fix several bugs where
values on the stack had not been mortalised.

A <TT>"Perl_signbit()"</TT> function was added to test the sign of an <TT>"NV"</TT>. It
maps to the system one when available.

<TT>"Perl_av_reify()"</TT>, <TT>"Perl_lex_end()"</TT>, <TT>"Perl_mod()"</TT>, <TT>"Perl_op_clear()"</TT>,
<TT>"Perl_pop_return()"</TT>, <TT>"Perl_qerror()"</TT>, <TT>"Perl_setdefout()"</TT>,
<TT>"Perl_vivify_defelem()"</TT> and <TT>"Perl_yylex()"</TT> are now visible to extensions.
This was required to allow <TT>"Data::Alias"</TT> to work on Windows.

<TT>"Perl_find_runcv()"</TT> is now visible to perl core extensions. This was required
to allow <TT>"Sub::Current"</TT> to work on Windows.

<TT>"ptr_table*"</TT> functions are now available in unthreaded perl. <TT>"Storable"</TT>
takes advantage of this.

There have been many small cleanups made to the internals. In particular,
<TT>"Perl_sv_upgrade()"</TT> has been simplified considerably, with a straight-through
code path that uses <TT>"memset()"</TT> and <TT>"memcpy()"</TT> to initialise the new body,
rather than assignment via multiple temporary variables. It has also
benefited from simplification and de-duplication of the arena management
code.

A lot of small improvements in the code base were made due to reports from
the Coverity static code analyzer.

Corrected use and documentation of <TT>"Perl_gv_stashpv()"</TT>, <TT>"Perl_gv_stashpvn()"</TT>,
<TT>"Perl_gv_stashsv()"</TT> functions (last parameter is a bitmask, not boolean).

<TT>"PERL_SYS_INIT"</TT>, <TT>"PERL_SYS_INIT3"</TT> and <TT>"PERL_SYS_TERM"</TT> macros have been
changed into functions.

<TT>"PERLSYS_TERM"</TT> no longer requires a context. <TT>"PerlIO_teardown()"</TT>
is now called without a context, and debugging output in this function has
been disabled because that required that an interpreter was present, an invalid
assumption at termination time.

All compile time options which affect binary compatibility have been grouped
together into a global variable (<TT>"PL_bincompat_options"</TT>).

The values of <TT>"PERL_REVISION"</TT>, <TT>"PERL_VERSION"</TT> and <TT>"PERL_SUBVERSION"</TT> are
now baked into global variables (and hence into any shared perl library).
Additionally under <TT>"MULTIPLICITY"</TT>, the perl executable now records the size of
the interpreter structure (total, and for this version). Coupled with
<TT>"PL_bincompat_options"</TT> this will allow 5.8.10 (and later), when compiled with a
shared perl library, to perform sanity checks in <TT>"main()"</TT> to verify that the
shared library is indeed binary compatible.

Symbolic references can now have embedded NULs. The new public function
<TT>"Perl_get_cvn_flags()"</TT> can be used in extensions if you have to handle them.

Macro cleanups

The core code, and XS code in ext that is not dual-lived on CPAN, no longer
uses the macros <TT>"PL_na"</TT>, <TT>"NEWSV()"</TT>, <TT>"Null()"</TT>, <TT>"Nullav"</TT>, <TT>"Nullcv"</TT>,
<TT>"Nullhv"</TT>, <TT>"Nullhv"</TT> etc. Their use is discouraged in new code,
particularly <TT>"PL_na"</TT>, which is a small performance hit.

New Tests

Many modules updated from CPAN incorporate new tests. Some core specific
tests have been added:

ext/DynaLoader/t/DynaLoader.t

Tests for the <TT>"DynaLoader"</TT> module.

t/comp/fold.t

Tests for compile-time constant folding.

t/io/pvbm.t

Tests incorporated from 5.10.0 which check that there is no unexpected
interaction between the internal types <TT>"PVBM"</TT> and <TT>"PVGV"</TT>.

t/lib/proxy_constant_subs.t

Tests for the new form of constant subroutines.

t/op/attrhand.t

Tests for <TT>"Attribute::Handlers"</TT>.

t/op/dbm.t

Tests for <TT>"dbmopen"</TT>.

t/op/inccode-tie.t

Calls all tests in t/op/inccode.t after first tying <TT>@INC</TT>.

t/op/incfilter.t

Tests for for source filters returned from code references in <TT>@INC</TT>.

t/op/kill0.t

Tests for RT #30970.

t/op/qrstack.t

Tests for RT #41484.

t/op/qr.t

Tests for the <TT>"qr//"</TT> construct.

t/op/regexp_qr_embed.t

Tests for the <TT>"qr//"</TT> construct within another regexp.

t/op/regexp_qr.t

Tests for the <TT>"qr//"</TT> construct.

t/op/rxcode.t

Tests for RT #32840.

t/op/studytied.t

Tests for <TT>"study"</TT> on tied scalars.

t/op/substT.t

Tests for <TT>"subst"</TT> run under <TT>"-T"</TT> mode.

t/op/symbolcache.t

Tests for <TT>"undef"</TT> and <TT>"delete"</TT> on stash entries that are bound to
subroutines or methods.

t/op/upgrade.t

Tests for <TT>"Perl_sv_upgrade()"</TT>.

t/mro/package_aliases.t

MRO tests for <TT>"isa"</TT> and package aliases.

t/pod/twice.t

Tests for calling <TT>"Pod::Parser"</TT> twice.

t/run/cloexec.t

Tests for inheriting file descriptors across <TT>"exec"</TT> (close-on-exec).

t/uni/cache.t

Tests for the UTF-8 caching code.

t/uni/chr.t

Test that strange encodings do not upset <TT>"Perl_pp_chr()"</TT>.

t/uni/greek.t

Tests for RT #40641.

t/uni/latin2.t

Tests for RT #40641.

t/uni/overload.t

Tests for returning Unicode from overloaded values.

t/uni/tie.t

Tests for returning Unicode from tied variables.

Known Problems

There are no known new bugs.

However, programs that rely on bugs that have been fixed will have problems.
Also, many bug fixes present in 5.10.0 can't be back-ported to the 5.8.x
branch, because they require changes that are binary incompatible, or because
the code changes are too large and hence too risky to incorporate.

We have only limited volunteer labour, and the maintenance burden is
getting increasingly complex. Hence this will be the last significant
release of the 5.8.x series. Any future releases of 5.8.x will likely
only be to deal with security issues, and platform build
failures. Hence you should look to migrating to 5.10.x, if you have
not started already. Alternatively, if business requirements constrain
you to continue to use 5.8.x, you may wish to consider commercial
support from firms such as ActiveState.

Platform Specific Notes

Win32

<TT>"readdir()"</TT>, <TT>"cwd()"</TT>, <TT>$^X</TT> and <TT>@INC</TT> now use the alternate (short)
filename if the long name is outside the current codepage (Jan Dubois).

Updated Modules

*

<TT>"Win32"</TT> upgraded to version 0.38. Now has a documented 'WinVista' response
from <TT>"GetOSName"</TT> and support for Vista's privilege elevation in <TT>"IsAdminUser"</TT>.
Support for Unicode characters in path names. Improved cygwin and Win64
compatibility.

*

<TT>"Win32API"</TT> updated to 0.1001_01

*

<TT>"killpg()"</TT> support added to <TT>"MSWin32"</TT> (Jan Dubois).

*

<TT>"File::Spec::Win32"</TT> upgraded to version 3.2701

OS/2

Updated Modules

*

<TT>"OS2::Process"</TT> upgraded to 1.03

Ilya Zakharevich has added and documented several <TT>"Window*"</TT> and <TT>"Clipbrd*"</TT>
functions.

*

<TT>"OS2::REXX::DLL"</TT>, <TT>"OS2::REXX"</TT> updated to version 1.03

VMS

Updated Modules

*

<TT>"DCLsym"</TT> upgraded to version 1.03

*

<TT>"Stdio"</TT> upgraded to version 2.4

*

<TT>"VMS::XSSymSet"</TT> upgraded to 1.1.

Obituary

Nick Ing-Simmons, long time Perl hacker, author of the <TT>"Tk"</TT> and <TT>"Encode"</TT>
modules, perlio.c in the core, and 5.003_02 pumpking, died of a heart
attack on 25th September 2006. He will be missed.

Acknowledgements

Some of the work in this release was funded by a TPF grant.

Steve Hay worked behind the scenes working out the causes of the differences
between core modules, their CPAN releases, and previous core releases, and
the best way to rectify them. He doesn't want to do it again. I know this
feeling, and I'm very glad he did it this time, instead of me.

Paul Fenwick assembled a team of 18 volunteers, who broke the back of writing
this document. In particular, Bradley Dean, Eddy Tan, and Vincent Pit
provided half the team's contribution.

Schwern verified the list of updated module versions, correcting quite a few
errors that I (and everyone else) had missed, both wrongly stated module
versions, and changed modules that had not been listed.

The crack Berlin-based QA team of Andreas Ko.nig and Slaven Rezic
tirelessly re-built snapshots, tested most everything CPAN against
them, and then identified the changes responsible for any module regressions,
ensuring that several show-stopper bugs were stomped before the first release
candidate was cut.

The other core committers contributed most of the changes, and applied most
of the patches sent in by the hundreds of contributors listed in AUTHORS.

And obviously, Larry Wall, without whom we wouldn't have Perl.

Reporting Bugs

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 http://bugs.perl.org.  There may also be
information at http://www.perl.org, the Perl Home Page.

If you believe you have an unreported bug, please run the perlbug
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 <TT>"perl -V"</TT>, will be sent off to perlbug@perl.org to be
analysed by the Perl porting team.  You can browse and search
the Perl 5 bugs at http://bugs.perl.org/

If the bug you are reporting has security implications, which make it
inappropriate to send to a publicly archived mailing list, then please send
it to perl5-security-report@perl.org. This points to a closed subscription
unarchived mailing list, which includes all the core committers, who be able
to help assess the impact of issues, figure out a resolution, and help
co-ordinate the release of patches to mitigate or fix the problem across all
platforms on which Perl is supported. Please only use this address for security
issues in the Perl core, not for modules independently distributed on CPAN.

SEE ALSO

The Changes file for exhaustive details on what changed.

The INSTALL file for how to build Perl.

The README file for general stuff.

The Artistic and Copying files for copyright information.

Index

NAME

DESCRIPTION

Notice

Incompatible Changes

Core Enhancements

Unicode Character Database 5.1.0.

stat and -X on directory handles

Source filters in @INC

Exceptions in constant folding

no VERSION

Improved internal UTF-8 caching code

Runtime relocatable installations

New internal variables

readpipe is now overridable

simple exception handling macros

-D option enhancements

XS-assisted SWASHGET

Constant subroutines

New Platforms

Modules and Pragmata

New Modules

Updated Modules

Utility Changes

debugger upgraded to version 1.31

perlthanks

perlbug

h2xs

h2ph

New Documentation

Changes to Existing Documentation

Performance Enhancements

Installation and Configuration Improvements

Relocatable installations

Configuration improvements

Compilation improvements

Installation improvements.

Platform Specific Changes

Selected Bug Fixes

Unicode

PerlIO

Magic

Reblessing overloaded objects now works

strict now propagates correctly into string evals

Other fixes

Platform Specific Fixes

Smaller fixes

New or Changed Diagnostics

panic: sv_chop %s

Maximal count of pending signals (%s) exceeded

panic: attempt to call %s in %s

FETCHSIZE returned a negative value

Can't upgrade %s (%d) to %d

%s argument is not a HASH or ARRAY element or a subroutine

Cannot make the non-overridable builtin %s fatal

Unrecognized character '%s' in column %d

Offset outside string

Invalid escape in the specified encoding in regexp; marked by <-- HERE in m/%s/

Your machine doesn't support dump/undump.

Changed Internals

Macro cleanups

New Tests

Known Problems

Platform Specific Notes

Win32

OS/2

VMS

Obituary

Acknowledgements

Reporting Bugs

SEE ALSO

This document was created by
man2html,
using the manual pages.

Time: 05:29:07 GMT, December 24, 2015


text:
package org.apache.log4j.spi;

import java.io.IOException;
import java.io.LineNumberReader;
import java.io.PrintWriter;
import java.io.StringReader;
import java.io.StringWriter;
import java.util.ArrayList;

/**
  * ThrowableInformation is log4j's internal representation of
  * throwables. It essentially consists of a string array, called
  * 'rep', where the first element, that is rep[0], represents the
  * string representation of the throwable (i.e. the value you get
  * when you do throwable.toString()) and subsequent elements
  * correspond the stack trace with the top most entry of the stack
  * corresponding to the second entry of the 'rep' array that is
  * rep[1].
  *
  * @author Ceki Gülcü
  *
  * */
public class ThrowableInformation implements java.io.Serializable {

  static final long serialVersionUID = -4748765566864322735L;

  private transient Throwable throwable;
  private String[] rep;

  public
  ThrowableInformation(Throwable throwable) {
    this.throwable = throwable;
  }

    /**
     * Create new instance.
     * @since 1.2.15
     * @param r String representation of throwable.
     */
  public ThrowableInformation(final String[] r) {
      if (r != null) {
        rep = (String[]) r.clone();
      }
  }

  public
  Throwable getThrowable() {
    return throwable;
  }

  public
  String[] getThrowableStrRep() {
    if(rep != null) {
      return (String[]) rep.clone();
    } else {
      StringWriter sw = new StringWriter();
      PrintWriter pw = new PrintWriter(sw);
      throwable.printStackTrace(pw);
      pw.flush();
      LineNumberReader reader = new LineNumberReader(
              new StringReader(sw.toString()));
      ArrayList lines = new ArrayList();
      try {
        String line = reader.readLine();
        while(line != null) {
          lines.add(line);
          line = reader.readLine();
        }
      } catch(IOException ex) {
          lines.add(ex.toString());
      }
      rep = new String[lines.size()];
      lines.toArray(rep);
    }
    return rep;
  }
}

redpajama_set_name: RedPajamaGithub


text:
#include "hmm_type.h"

static PINLINE void matrix_fixed_multiply_frame(imeldata *outvec, imeldata **matrix,
    imeldata *vector, int dimr, int dimc);

static PINLINE void matrix_fixed_multiply_frame(imeldata *outvec, imeldata **matrix,
    imeldata *vector, int dimr, int dimc)
{
  int ii, jj;
  imeldata sum;

  ASSERT(matrix);
  ASSERT(vector);
  ASSERT(outvec);
  ASSERT(outvec != vector);
  for (ii = 0; ii < dimr; ii++)
  {
    sum = 0;
    for (jj = 0; jj < dimc; jj++)
      sum += matrix[ii][jj] * vector[jj];
    outvec[ii] = sum;
  }
  return;
}


text:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <parent>
        <artifactId>nd4j-shade</artifactId>
        <groupId>org.nd4j</groupId>
        <version>0.9.2-SNAPSHOT</version>
    </parent>
    <modelVersion>4.0.0</modelVersion>

    <artifactId>jackson</artifactId>

    <profiles>
      <profile>
        <id>custom-lifecycle</id>

        <activation>
          <property><name>!skip.custom.lifecycle</name></property>
        </activation>
        <build>
          <plugins>

            <plugin>
              <groupId>org.apache.portals.jetspeed-2</groupId>
              <artifactId>jetspeed-mvn-maven-plugin</artifactId>
              <version>2.3.1</version>
              <executions>
                <execution>
                  <id>compile-and-pack</id>
                  <phase>compile</phase>
                  <goals>
                    <goal>mvn</goal>
                  </goals>
                </execution>
              </executions>
              <dependencies>
                <dependency>
                  <groupId>org.apache.maven.shared</groupId>
                  <artifactId>maven-invoker</artifactId>
                  <version>2.2</version>
                </dependency>
              </dependencies>
              <configuration>
                <targets combine.children="merge">

                  <target>
                    <id>create-shaded-jars</id>
                    <dir>@rootdir@/nd4j-shade/jackson/</dir>
                    <goals>clean,compile,package</goals>
                    <properties>
                      <skip.custom.lifecycle>true</skip.custom.lifecycle>
                    </properties>
                  </target>

                </targets>
                <defaultTarget>create-shaded-jars</defaultTarget>
              </configuration>
            </plugin>

          </plugins>
        </build>
      </profile>
    </profiles>

    <build>
        <plugins>

            <!--
            Use Maven Shade plugin to add a shaded version of the Jackson dependencies, that can be imported by
            including this module (org.nd4j.jackson) as a dependency.
            The standard com.fasterxml.jackson dependencies will be provided, though are prefixed by org.nd4j.shade.jackson
            -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-shade-plugin</artifactId>
                <version>${maven-shade-plugin.version}</version>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>shade</goal>
                        </goals>
                        <configuration>
                            <transformers>
                                <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
                                    <resource>reference.conf</resource>
                                </transformer>
                                <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
                                <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
                                </transformer>
                            </transformers>
                        </configuration>
                    </execution>
                </executions>

                <configuration>
                    <!--
                    Important configuration options here:
                    createDependencyReducedPom: remove the shaded artifacts from the module dependencies. Without this, the
                                                original dependencies will be shaded, AND still included as transitive deps
                                                in the final POM. This is not what we want.
                    shadedArtifactAttached:     If true, the shaded artifact will be a separate JAR file for install, with
                                                the original un-shaded JAR being separate. With this being set to false,
                                                the original JAR will be modified, and no extra jar will be produced.
                    promoteTransitiveDependencies:  This will promote the transitive dependencies of the shaded dependencies
                                                to direct dependencies. Without this, we need to manually manage the transitive
                                                dependencies of the shaded artifacts.

                    Note that using <optional>true</optional> in the dependencies also allows the deps to be shaded (and
                    original dependencies to not be included), but does NOT work with promoteTransitiveDependencies
                    -->
                    <shadedArtifactAttached>false</shadedArtifactAttached>
                    <createDependencyReducedPom>true</createDependencyReducedPom>
                    <promoteTransitiveDependencies>true</promoteTransitiveDependencies>

                    <artifactSet>
                        <includes>
                            <include>com.fasterxml.jackson:*</include>
                            <include>com.fasterxml.jackson.*:*</include>
                        </includes>
                    </artifactSet>

                    <relocations>
                        <!-- Jackson dependencies -->
                        <relocation>
                            <pattern>com.fasterxml.jackson</pattern>
                            <shadedPattern>org.nd4j.shade.jackson</shadedPattern>
                        </relocation>
                    </relocations>

                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
                <executions>
                    <execution>
                        <id>empty-javadoc-jar</id>
                        <phase>package</phase>
                        <goals>
                            <goal>jar</goal>
                        </goals>
                        <configuration>
                            <skip>false</skip>
                            <classifier>javadoc</classifier>
                            <classesDirectory>${basedir}/javadoc</classesDirectory>
                        </configuration>
                    </execution>
                    <execution>
                        <id>empty-sources-jar</id>
                        <phase>package</phase>
                        <goals>
                            <goal>jar</goal>
                        </goals>
                        <configuration>
                            <classifier>sources</classifier>
                            <classesDirectory>${basedir}/src</classesDirectory>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

            <plugin>
              <groupId>org.apache.maven.plugins</groupId>
              <artifactId>maven-dependency-plugin</artifactId>
              <version>3.0.0</version>
              <executions>
                <execution>
                  <id>unpack</id>
                  <phase>package</phase>
                  <goals>
                    <goal>unpack</goal>
                  </goals>
                  <configuration>
                    <artifactItems>
                      <artifactItem>
                        <groupId>org.nd4j</groupId>
                        <artifactId>jackson</artifactId>
                        <version>${project.version}</version>
                        <type>jar</type>
                        <overWrite>false</overWrite>
                        <outputDirectory>${project.build.directory}/classes/</outputDirectory>
                        <includes>**/*.class,**/*.xml</includes>
                      </artifactItem>
                    </artifactItems>
                  </configuration>
                </execution>
              </executions>
            </plugin>
        </plugins>
    </build>

    <dependencies>
        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-core</artifactId>
            <version>${jackson.version}</version>
        </dependency>
        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-databind</artifactId>
            <version>${jackson.version}</version>
        </dependency>
        <dependency>
            <groupId>com.fasterxml.jackson.dataformat</groupId>
            <artifactId>jackson-dataformat-yaml</artifactId>
            <version>${jackson.version}</version>
        </dependency>
        <dependency>
            <groupId>com.fasterxml.jackson.dataformat</groupId>
            <artifactId>jackson-dataformat-xml</artifactId>
            <version>${jackson.version}</version>

            <!-- Exclude Jaxb annotation module to avoid issues with Spring framework tools.
                See DL4J Issue: https://github.com/deeplearning4j/deeplearning4j/issues/2459 -->
            <exclusions>
                <exclusion>
                    <artifactId>jackson-module-jaxb-annotations</artifactId>
                    <groupId>com.fasterxml.jackson.module</groupId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>com.fasterxml.jackson.datatype</groupId>
            <artifactId>jackson-datatype-joda</artifactId>
            <version>${jackson.version}</version>
        </dependency>

    </dependencies>

</project>


text:
{% extends "base.html" %}

{% load i18n %}

{% block title %}
  Reverie - {% trans "Password changed" %}
{% endblock %}

{% block content %}
  <div class="notification is-success">
    {% trans "Password successfully changed!" %}
  </div>
{% endblock %}


text:
const assign = require('../util/assign');

module.exports = request => {

	const Customer = {
		name: 'Customer',
		path: 'customers',
		addCoupon: function() {
			return request(assign(Customer._addCoupon(), { args: Array.prototype.slice.call(arguments) }));
		},
		authenticate: function() {
			return request(assign(Customer._authenticate(), { args: Array.prototype.slice.call(arguments) }));
		},
		authenticateBy3rdParty: function() {
			return request(assign(Customer._authenticateBy3rdParty(), { args: Array.prototype.slice.call(arguments) }));
		},
		count: function() {
			return request(assign(Customer._count(), { args: Array.prototype.slice.call(arguments) }));
		},
		countCoupons: function() {
			return request(assign(Customer._countCoupons(), { args: Array.prototype.slice.call(arguments) }));
		},
		countCouponsForMe: function() {
			return request(assign(Customer._countCouponsForMe(), { args: Array.prototype.slice.call(arguments) }));
		},
		create: function() {
			return request(assign(Customer._create(), { args: Array.prototype.slice.call(arguments) }));
		},
		createMe: function() {
			return request(assign(Customer._createMe(), { args: Array.prototype.slice.call(arguments) }));
		},
		createVerification: function() {
			return request(assign(Customer._createVerification(), { args: Array.prototype.slice.call(arguments) }));
		},
		delete: function() {
			return request(assign(Customer._delete(), { args: Array.prototype.slice.call(arguments) }));
		},
		deleteCoupon: function() {
			return request(assign(Customer._deleteCoupon(), { args: Array.prototype.slice.call(arguments) }));
		},
		deleteCouponForMe: function() {
			return request(assign(Customer._deleteCouponForMe(), { args: Array.prototype.slice.call(arguments) }));
		},
		deleteMe: function() {
			return request(assign(Customer._deleteMe(), { args: Array.prototype.slice.call(arguments) }));
		},
		deleteMetafield: function() {
			return request(assign(Customer._deleteMetafield(), { args: Array.prototype.slice.call(arguments) }));
		},
		get: function() {
			return request(assign(Customer._get(), { args: Array.prototype.slice.call(arguments) }));
		},
		getMe: function() {
			return request(assign(Customer._getMe(), { args: Array.prototype.slice.call(arguments) }));
		},
		increaseMetafield: function() {
			return request(assign(Customer._increaseMetafield(), { args: Array.prototype.slice.call(arguments) }));
		},
		isAuthenticated: function() {
			return request(assign(Customer._isAuthenticated(), { args: Array.prototype.slice.call(arguments) }));
		},
		list: function() {
			return request(assign(Customer._list(), { args: Array.prototype.slice.call(arguments) }));
		},
		listByFlagVotes: function() {
			return request(assign(Customer._listByFlagVotes(), { args: Array.prototype.slice.call(arguments) }));
		},
		listByFlagVotes: function() {
			return request(assign(Customer._listByFlagVotes(), { args: Array.prototype.slice.call(arguments) }));
		},
		listByHelpVotes: function() {
			return request(assign(Customer._listByHelpVotes(), { args: Array.prototype.slice.call(arguments) }));
		},
		listByHelpVotes: function() {
			return request(assign(Customer._listByHelpVotes(), { args: Array.prototype.slice.call(arguments) }));
		},
		listCoupons: function() {
			return request(assign(Customer._listCoupons(), { args: Array.prototype.slice.call(arguments) }));
		},
		listCouponsForMe: function() {
			return request(assign(Customer._listCouponsForMe(), { args: Array.prototype.slice.call(arguments) }));
		},
		pullFromMetafield: function() {
			return request(assign(Customer._pullFromMetafield(), { args: Array.prototype.slice.call(arguments) }));
		},
		pushToMetafield: function() {
			return request(assign(Customer._pushToMetafield(), { args: Array.prototype.slice.call(arguments) }));
		},
		recoverCredential: function() {
			return request(assign(Customer._recoverCredential(), { args: Array.prototype.slice.call(arguments) }));
		},
		requestVerification: function() {
			return request(assign(Customer._requestVerification(), { args: Array.prototype.slice.call(arguments) }));
		},
		requestVerificationEmail: function() {
			return request(assign(Customer._requestVerificationEmail(), { args: Array.prototype.slice.call(arguments) }));
		},
		resetPassword: function() {
			return request(assign(Customer._resetPassword(), { args: Array.prototype.slice.call(arguments) }));
		},
		update: function() {
			return request(assign(Customer._update(), { args: Array.prototype.slice.call(arguments) }));
		},
		updateCredentials: function() {
			return request(assign(Customer._updateCredentials(), { args: Array.prototype.slice.call(arguments) }));
		},
		updateCredentialsForMe: function() {
			return request(assign(Customer._updateCredentialsForMe(), { args: Array.prototype.slice.call(arguments) }));
		},
		updateMe: function() {
			return request(assign(Customer._updateMe(), { args: Array.prototype.slice.call(arguments) }));
		},
		verify: function() {
			return request(assign(Customer._verify(), { args: Array.prototype.slice.call(arguments) }));
		},
	};

	Customer._addCoupon = function() {

		return {
			modelName:      Customer.name,
			methodName:     'addCoupon',
			httpMethod:     'POST',
			path:           '/v1/customers/{customerId}/coupons',
			params:         ['customerId', ],
		};

	};

	Customer._authenticate = function() {

		return {
			modelName:      Customer.name,
			methodName:     'authenticate',
			httpMethod:     'POST',
			path:           '/v1/customers/auth',
			params:         [],
		};

	};

	Customer._authenticateBy3rdParty = function() {

		return {
			modelName:      Customer.name,
			methodName:     'authenticateBy3rdParty',
			httpMethod:     'POST',
			path:           '/v1/customers/auth/{vendor}',
			params:         ['vendor', ],
		};

	};

	Customer._count = function() {

		return {
			modelName:      Customer.name,
			methodName:     'count',
			httpMethod:     'GET',
			path:           '/v1/customers/count',
			params:         [],
		};

	};

	Customer._countCoupons = function() {

		return {
			modelName:      Customer.name,
			methodName:     'countCoupons',
			httpMethod:     'GET',
			path:           '/v1/customers/{customerId}/coupons/count',
			params:         ['customerId', ],
		};

	};

	Customer._countCouponsForMe = function() {

		return {
			modelName:      Customer.name,
			methodName:     'countCouponsForMe',
			httpMethod:     'GET',
			path:           '/v1/me/coupons/count',
			params:         [],
		};

	};

	Customer._create = function() {

		return {
			modelName:      Customer.name,
			methodName:     'create',
			httpMethod:     'POST',
			path:           '/v1/customers',
			params:         [],
		};

	};

	Customer._createMe = function() {

		return {
			modelName:      Customer.name,
			methodName:     'createMe',
			httpMethod:     'POST',
			path:           '/v1/me',
			params:         [],
		};

	};

	Customer._createVerification = function() {

		return {
			modelName:      Customer.name,
			methodName:     'createVerification',
			httpMethod:     'POST',
			path:           '/v1/customers/verifications',
			params:         [],
		};

	};

	Customer._delete = function() {

		return {
			modelName:      Customer.name,
			methodName:     'delete',
			httpMethod:     'DELETE',
			path:           '/v1/customers/{customerId}',
			params:         ['customerId', ],
		};

	};

	Customer._deleteCoupon = function() {

		return {
			modelName:      Customer.name,
			methodName:     'deleteCoupon',
			httpMethod:     'DELETE',
			path:           '/v1/customers/{customerId}/coupons/{couponId}',
			params:         ['customerId', 'couponId', ],
		};

	};

	Customer._deleteCouponForMe = function() {

		return {
			modelName:      Customer.name,
			methodName:     'deleteCouponForMe',
			httpMethod:     'DELETE',
			path:           '/v1/me/coupons/{couponId}',
			params:         ['couponId', ],
		};

	};

	Customer._deleteMe = function() {

		return {
			modelName:      Customer.name,
			methodName:     'deleteMe',
			httpMethod:     'DELETE',
			path:           '/v1/me',
			params:         [],
		};

	};

	Customer._deleteMetafield = function() {

		return {
			modelName:      Customer.name,
			methodName:     'deleteMetafield',
			httpMethod:     'DELETE',
			path:           '/v1/customers/{customerId}/meta/{field}',
			params:         ['customerId', 'field', ],
		};

	};

	Customer._get = function() {

		return {
			modelName:      Customer.name,
			methodName:     'get',
			httpMethod:     'GET',
			path:           '/v1/customers/{customerId}',
			params:         ['customerId', ],
		};

	};

	Customer._getMe = function() {

		return {
			modelName:      Customer.name,
			methodName:     'getMe',
			httpMethod:     'GET',
			path:           '/v1/me',
			params:         [],
		};

	};

	Customer._increaseMetafield = function() {

		return {
			modelName:      Customer.name,
			methodName:     'increaseMetafield',
			httpMethod:     'POST',
			path:           '/v1/customers/{customerId}/meta/{field}/inc',
			params:         ['customerId', 'field', ],
		};

	};

	Customer._isAuthenticated = function() {

		return {
			modelName:      Customer.name,
			methodName:     'isAuthenticated',
			httpMethod:     'GET',
			path:           '/v1/customers/auth',
			params:         [],
		};

	};

	Customer._list = function() {

		return {
			modelName:      Customer.name,
			methodName:     'list',
			httpMethod:     'GET',
			path:           '/v1/customers',
			params:         [],
		};

	};

	Customer._listByFlagVotes = function() {

		return {
			modelName:      Customer.name,
			methodName:     'listByFlagVotes',
			httpMethod:     'GET',
			path:           '/v1/{voteModel}/{voteModelId}/flags/customers',
			params:         ['voteModel', 'voteModelId', ],
		};

	};

	Customer._listByFlagVotes = function() {

		return {
			modelName:      Customer.name,
			methodName:     'listByFlagVotes',
			httpMethod:     'GET',
			path:           '/v1/{voteModel}/{voteModelId}/flags/customers',
			params:         ['voteModel', 'voteModelId', ],
		};

	};

	Customer._listByHelpVotes = function() {

		return {
			modelName:      Customer.name,
			methodName:     'listByHelpVotes',
			httpMethod:     'GET',
			path:           '/v1/{voteModel}/{voteModelId}/helped/{upDown}/customers',
			params:         ['voteModel', 'voteModelId', 'upDown', ],
		};

	};

	Customer._listByHelpVotes = function() {

		return {
			modelName:      Customer.name,
			methodName:     'listByHelpVotes',
			httpMethod:     'GET',
			path:           '/v1/{voteModel}/{voteModelId}/helped/{upDown}/customers',
			params:         ['voteModel', 'voteModelId', 'upDown', ],
		};

	};

	Customer._listCoupons = function() {

		return {
			modelName:      Customer.name,
			methodName:     'listCoupons',
			httpMethod:     'GET',
			path:           '/v1/customers/{customerId}/coupons',
			params:         ['customerId', ],
		};

	};

	Customer._listCouponsForMe = function() {

		return {
			modelName:      Customer.name,
			methodName:     'listCouponsForMe',
			httpMethod:     'GET',
			path:           '/v1/me/coupons',
			params:         [],
		};

	};

	Customer._pullFromMetafield = function() {

		return {
			modelName:      Customer.name,
			methodName:     'pullFromMetafield',
			httpMethod:     'POST',
			path:           '/v1/customers/{customerId}/meta/{field}/pull',
			params:         ['customerId', 'field', ],
		};

	};

	Customer._pushToMetafield = function() {

		return {
			modelName:      Customer.name,
			methodName:     'pushToMetafield',
			httpMethod:     'POST',
			path:           '/v1/customers/{customerId}/meta/{field}/push',
			params:         ['customerId', 'field', ],
		};

	};

	Customer._recoverCredential = function() {

		return {
			modelName:      Customer.name,
			methodName:     'recoverCredential',
			httpMethod:     'POST',
			path:           '/v1/customers/credentials/{credentialField}/recoveries/{recoveryMethod}',
			params:         ['credentialField', 'recoveryMethod', ],
		};

	};

	Customer._requestVerification = function() {

		return {
			modelName:      Customer.name,
			methodName:     'requestVerification',
			httpMethod:     'POST',
			path:           '/v1/customers/verifications/{channelSlug}',
			params:         ['channelSlug', ],
		};

	};

	Customer._requestVerificationEmail = function() {

		return {
			modelName:      Customer.name,
			methodName:     'requestVerificationEmail',
			httpMethod:     'POST',
			path:           '/v1/customers/verifications/emails',
			params:         [],
		};

	};

	Customer._resetPassword = function() {

		return {
			modelName:      Customer.name,
			methodName:     'resetPassword',
			httpMethod:     'PUT',
			path:           '/v1/customers/{customerId}/password',
			params:         ['customerId', ],
		};

	};

	Customer._update = function() {

		return {
			modelName:      Customer.name,
			methodName:     'update',
			httpMethod:     'PUT',
			path:           '/v1/customers/{customerId}',
			params:         ['customerId', ],
		};

	};

	Customer._updateCredentials = function() {

		return {
			modelName:      Customer.name,
			methodName:     'updateCredentials',
			httpMethod:     'PUT',
			path:           '/v1/customers/{customerId}/credentials',
			params:         ['customerId', ],
		};

	};

	Customer._updateCredentialsForMe = function() {

		return {
			modelName:      Customer.name,
			methodName:     'updateCredentialsForMe',
			httpMethod:     'PUT',
			path:           '/v1/me/credentials',
			params:         [],
		};

	};

	Customer._updateMe = function() {

		return {
			modelName:      Customer.name,
			methodName:     'updateMe',
			httpMethod:     'PUT',
			path:           '/v1/me',
			params:         [],
		};

	};

	Customer._verify = function() {

		return {
			modelName:      Customer.name,
			methodName:     'verify',
			httpMethod:     'POST',
			path:           '/v1/customers/{customerId}/verified',
			params:         ['customerId', ],
		};

	};

	return Customer;

};


text:
<meta name='viewport' content='width=device-width, initial-scale=1.0, user-scalable=yes, maximum-scale=5.0'>
<meta name="theme-color" content="#FFEB3B">
<meta name="apple-mobile-web-app-status-bar-style" content="#FFEB3B">
<meta name="msapplication-TileColor" content="#FFEB3B">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta content='text/html; charset=utf-8' http-equiv='content-type' />
<meta name="msapplication-TileImage" content="/assets/img/touch/app_icon_144.png">
<meta content="http://yehuang.me/assets/img/home-screenshot.png" property="og:image" />
{% if page.date %}
  <meta content='{{ site.url }}{{ page.url }}' property='og:url' />
  <meta content="{{ page.content | strip_html | strip_newlines | truncate: 120 }}" property='og:description' />
  <meta content="article" property="og:type" />
  <meta content='{{ page.title }} - {{ site.title }}' property='og:title' />
  <meta name="apple-mobile-web-app-title" content='{{ page.title }} - {{ site.title }}'>
  <title>{{ page.title }} | {{ site.title }}</title>
{% else %}
  <title>{{ site.title }}</title>
  <meta content='{{ site.title }}' property='og:title' />
  <meta name="apple-mobile-web-app-title" content='{{ site.title }}'>
  <meta content='{{ site.url }}' property='og:url' />
  <meta content="{{ site.description }}" property='og:description' />
  <meta content="blog" property="og:type" />
{% endif %}

<link rel="shortcut icon" href="/assets/img/favicon.ico" type="image/x-icon">
<link rel="icon" href="/assets/img/favicon.ico" type="image/x-icon">
<link rel="apple-touch-icon" href="/assets/img/touch/app_icon_144.png">
<link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Cutive+Mono' type='text/css'>
<link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Economica&text=Crab%20Canon%20!!' type='text/css'>
<link rel='stylesheet' href="https://fonts.googleapis.com/icon?family=Material+Icons" type='text/css'>
<link rel='stylesheet' href="/assets/css/material.min.css" type='text/css'>
<link rel='stylesheet' href='/assets/css/syntax.css' type='text/css'>
<link rel='stylesheet' href='/assets/css/main.css' type='text/css'>
<link rel="manifest" href="/manifest.json">

<script src="/assets/js/search.min.js" type="text/javascript" charset="utf-8"></script>
<script src='/assets/js/stuff.js' type='text/javascript'></script>
<script src="/assets/js/material.min.js"> type='text/javascript'</script>

{% seo %}
{% include ga.html %}


text:
DIR="$(dirname "$0")"
cd $DIR/..

bash tools/clean.sh && \
npm i && \
node tools/generate-env.js && \
cp -r src/favicon.ico dist/ && \
cp -r src/images dist/ && \
cp -r src/styles dist/ && \
cp -r node_modules/normalize.css/normalize.css dist/styles && \
cp src/index.html dist


text:
using namespace std;

#ifndef TYPEDECLARATIONPARSER_H
#include "TypeDeclarationParser.h"
#endif

#ifndef TYPENODE_H
#include "TypeNode.h"
#endif

#ifndef TYPETABLE_H
	#include "TypeTable.h"
#endif

#ifndef OBJECTFACTORY_H
	#include "ObjectFactory.h"
#endif

extern string g_TypeInfoPath;
extern string g_TypeLexerFilePath;
extern string g_TypeNamesFilePath;
extern string g_SerializationTag;

enum HeaderAttribute
{
    HATTR_Class,
    HATTR_Type,
    HATTR_Parent,
    HATTR_Alias
};

typedef map<HeaderAttribute, string> Attributes;

class ObjectFormatter
{
    LexicalAnalyzer*                m_lexer;
    TypeDeclarationParser*          m_parser;
    CharacterBuffer*                m_buffer;
    vector<string>                  m_sourceFiles;
    vector<string>                  m_typeNames;
    map<string, HeaderAttribute>    m_headerNameMap;

    void ReadTypeNames();
    void WriteTypeNames();
    void ReadSourceFiles(const string& p_sourceCodeDir);
    void InitializeParsing();
    void ParseFormat(string& p_formatLine, TypeTable& p_typeTable, TypeNode*& p_lastTypeRoot);
    void Split(string& p_str, char p_delim, vector<string>& p_tokens);
    void ExtractTypes(string& p_sourceFileName, TypeTable& p_typeTable);
    void GetAttributes(string& p_line, Attributes& p_attributes);
    void GetMemberNode(Attributes& p_attributes, TypeTable& p_typeTable, TypeNode*& p_lastTypeRoot);
    void GetNewTypeNode(Attributes& p_attributes, TypeTable& p_typeTable, TypeNode*& p_lastTypeRoot);
    void GetParentNode(Attributes& p_attributes,  TypeTable& p_typeTable, TypeNode*& p_lastTypeRoot);
    void GetAliasNode(Attributes& p_attributes, TypeTable& p_typeTable, TypeNode*& p_lastTypeRoot);
    bool IsFormatLine(string& p_line, string& p_format);
    void CollectTemplateSpecialization(TypeTable& p_typeTable, ObjectTable& p_objectTable);

public:
    ~ObjectFormatter();
    ObjectFormatter();

    void WriteTypeTable(const string& p_sourceCodeDir);
    void FinalizeTypeTable(TypeTable& p_typeTable, ObjectTable& p_objectTable);
    void ReadTypeTable(TypeTable& p_typeTable);
    static ObjectFormatter& Instance() { static ObjectFormatter instance; return instance; }

#define  g_ObjectFormatter ObjectFormatter::Instance()
};

#endif // OBJECTFORMATTER_H


text:
<!DOCTYPE html>

	<meta charset="utf-8">

	<title>TWTRTweet Class Reference</title>

	<link rel="stylesheet" href="../css/style.css">
	<meta name="viewport" content="initial-scale=1, maximum-scale=1.4">
	<meta name="generator" content="appledoc 2.2.1 (build 1333)">

				TwitterKit

				Twitter Inc.

Index

Hierarchy

							On This Page

							<select id="jump-to">
	<option value="top">Jump To…</option>

	<option value="overview">Overview</option>

	<option value="tasks">Tasks</option>

	<optgroup label="Properties">

		<option value="//api/name/author">author</option>

		<option value="//api/name/createdAt">createdAt</option>

		<option value="//api/name/inReplyToScreenName">inReplyToScreenName</option>

		<option value="//api/name/inReplyToTweetID">inReplyToTweetID</option>

		<option value="//api/name/inReplyToUserID">inReplyToUserID</option>

		<option value="//api/name/isLiked">isLiked</option>

		<option value="//api/name/isQuoteTweet">isQuoteTweet</option>

		<option value="//api/name/isRetweet">isRetweet</option>

		<option value="//api/name/isRetweeted">isRetweeted</option>

		<option value="//api/name/languageCode">languageCode</option>

		<option value="//api/name/likeCount">likeCount</option>

		<option value="//api/name/permalink">permalink</option>

		<option value="//api/name/perspectivalUserID">perspectivalUserID</option>

		<option value="//api/name/quotedTweet">quotedTweet</option>

		<option value="//api/name/retweetCount">retweetCount</option>

		<option value="//api/name/retweetID">retweetID</option>

		<option value="//api/name/retweetedTweet">retweetedTweet</option>

		<option value="//api/name/text">text</option>

		<option value="//api/name/tweetID">tweetID</option>

	</optgroup>

	<optgroup label="Class Methods">

		<option value="//api/name/tweetsWithJSONArray:">+ tweetsWithJSONArray:</option>

	</optgroup>

	<optgroup label="Instance Methods">

		<option value="//api/name/init">- init</option>

		<option value="//api/name/tweetWithLikeToggled">- tweetWithLikeToggled</option>

	</optgroup>

</select>

TWTRTweet Class Reference

	Inherits from
	NSObject

	Conforms to
	NSCoding
TWTRJSONConvertible

	Declared in
	TWTRTweet.h

Overview

TWTRTweet is an immutable representation of a Tweet.

  tweetID

The ID of the Twitter Tweet.

@property (nonatomic, copy, readonly) NSString *tweetID

Discussion

Warning: This represents the id_str field, which could differ from the value of the id field.

Declared In

TWTRTweet.h

  createdAt

The date when this Tweet was created.

@property (nonatomic, copy, readonly) NSDate *createdAt

Declared In

TWTRTweet.h

  text

The text of the Tweet.

@property (nonatomic, copy, readonly) NSString *text

Declared In

TWTRTweet.h

  author

The Author of the Tweet.

@property (nonatomic, readonly) TWTRUser *author

Declared In

TWTRTweet.h

  perspectivalUserID

ID of the authenticated Twitter user this Tweet was loaded for. Some Tweet properties e.g. isLiked
can vary depending on the authenticated user. Nil means the Tweet was loaded from the perspective
of a logged-out user or the authenticated user could not be determined.

@property (nonatomic, readonly, nullable) NSString *perspectivalUserID

Declared In

TWTRTweet.h

  likeCount

The number of times this Tweet was liked.

@property (nonatomic, readonly) long long likeCount

Declared In

TWTRTweet.h

  retweetCount

The number of times this Tweet was retweeted.

@property (nonatomic, readonly) long long retweetCount

Declared In

TWTRTweet.h

  languageCode

The language of the Tweet.

@property (nonatomic, copy, readonly) NSString *languageCode

Declared In

TWTRTweet.h

  inReplyToTweetID

The Tweet this Tweet was a reply to.

@property (nonatomic, copy, readonly, nullable) NSString *inReplyToTweetID

Declared In

TWTRTweet.h

  inReplyToUserID

The User ID this Tweet was a reply to.

@property (nonatomic, copy, readonly, nullable) NSString *inReplyToUserID

Declared In

TWTRTweet.h

  inReplyToScreenName

The screen name of the user this Tweet was a reply to.

@property (nonatomic, copy, readonly, nullable) NSString *inReplyToScreenName

Discussion

Note: This doesn’t contain the @ sign before the screen name.

Declared In

TWTRTweet.h

  permalink

The permalink URL for this Tweet.

@property (nonatomic, copy, readonly) NSURL *permalink

Discussion

Suitable for loading in a UIWebView, WKWebView or passing to Safari:

[[UIApplication sharedApplication] openURL:tweet.permalink];

Declared In

TWTRTweet.h

  isLiked

Whether this Tweet was liked by the authenticated user.

@property (nonatomic, readonly) BOOL isLiked

Discussion

Warning: The value of this property depends on the authenticated user.

Declared In

TWTRTweet.h

  isRetweeted

Whether this Tweet was retweeted by the authenticated user.

@property (nonatomic, readonly) BOOL isRetweeted

Discussion

Warning: The value of this property depends on the authenticated user.

Declared In

TWTRTweet.h

  retweetID

The Tweet ID of the authenticated user’s retweet of this Tweet. This will be nil if there is no
authenticated user or the user has not retweeted this Tweet.

@property (nonatomic, copy, readonly, nullable) NSString *retweetID

Discussion

Warning: The value of this property depends on the authenticated user.

Declared In

TWTRTweet.h

  retweetedTweet

The original, fully-hydrated Tweet that was retweeted. This corresponds to the retweeted_status API field.
This is nil unless self.isRetweet == YES.

@property (nonatomic, readonly, nullable) TWTRTweet *retweetedTweet

Declared In

TWTRTweet.h

  isRetweet

Indicates whether this Tweet is a retweet of another Tweet.

@property (nonatomic, readonly) BOOL isRetweet

Declared In

TWTRTweet.h

  isQuoteTweet

Indicates whether this Tweet is a Quote Tweet.

@property (nonatomic, readonly) BOOL isQuoteTweet

Declared In

TWTRTweet.h

  quotedTweet

The original, fully-hydrated Tweet that was quoted.
This is nil unless self.isRetweet == YES.

@property (nonatomic, readonly, nullable) TWTRTweet *quotedTweet

Declared In

TWTRTweet.h

+ tweetsWithJSONArray:

Creates an array of TWTRTweet instances from the array of Twitter API JSON response.

+ (NSArray *)tweetsWithJSONArray:(nullable NSArray *)array

Parameters

						array

A parsed array of Tweet API JSON responses.

Return Value

An array of TWTRTweet instances.

Declared In

TWTRTweet.h

– tweetWithLikeToggled

Creates a new Tweet instance with a new value for the isLiked boolean
value which is the opposite of the current value.

- (TWTRTweet *)tweetWithLikeToggled

Declared In

TWTRTweet.h

– init

Tweet objects should be hyrdrated from a valid JSON object. See TWTRJSONConvertible for more information.

- (instancetype)init

Declared In

TWTRTweet.h

Copyright © 2017 Twitter Inc. All rights reserved. Updated: 2017-12-13

Generated by appledoc 2.2.1 (build 1333).


text:
"""
Test checking masternode ping thread
Does not use functions of PivxTier2TestFramework as we don't want to send
pings on demand. Here, instead, mocktime is disabled, and we just wait with
time.sleep to verify that masternodes send pings correctly.
"""

import os
import time

from test_framework.test_framework import PivxTestFramework
from test_framework.util import (
    assert_equal,
    assert_greater_than,
    Decimal,
    p2p_port,
)

class MasternodePingTest(PivxTestFramework):

    def set_test_params(self):
        self.setup_clean_chain = True
        # 0=miner 1=mn_owner 2=mn_remote
        self.num_nodes = 3

    def run_test(self):
        miner = self.nodes[0]
        owner = self.nodes[1]
        remote = self.nodes[2]
        mnPrivkey = "9247iC59poZmqBYt9iDh9wDam6v9S1rW5XekjLGyPnDhrDkP4AK"

        self.log.info("generating 141 blocks...")
        miner.generate(141)
        self.sync_blocks()

        # Create collateral
        self.log.info("funding masternode controller...")
        masternodeAlias = "mnode"
        mnAddress = owner.getnewaddress(masternodeAlias)
        collateralTxId = miner.sendtoaddress(mnAddress, Decimal('100'))
        miner.generate(2)
        self.sync_blocks()
        time.sleep(1)
        collateral_rawTx = owner.getrawtransaction(collateralTxId, 1)
        assert_equal(owner.getbalance(), Decimal('100'))
        assert_greater_than(collateral_rawTx["confirmations"], 0)

        # Block time can be up to median time past +1. We might need to wait...
        wait_time = collateral_rawTx["time"] - int(time.time())
        if wait_time > 0:
            self.log.info("Sleep %d seconds to catch up with the chain..." % wait_time)
            time.sleep(wait_time)

        # Setup controller
        self.log.info("controller setup...")
        o = owner.getmasternodeoutputs()
        assert_equal(len(o), 1)
        assert_equal(o[0]["txhash"], collateralTxId)
        vout = o[0]["outputidx"]
        self.log.info("collateral accepted for "+ masternodeAlias +". Updating masternode.conf...")
        confData = masternodeAlias + " 127.0.0.1:" + str(p2p_port(2)) + " " + \
                   str(mnPrivkey) +  " " + str(collateralTxId) + " " + str(vout)
        destPath = os.path.join(self.options.tmpdir, "node1", "regtest", "masternode.conf")
        with open(destPath, "a+", encoding="utf8") as file_object:
            file_object.write("\n")
            file_object.write(confData)

        # Init remote
        self.log.info("initializing remote masternode...")
        remote.initmasternode(mnPrivkey, "127.0.0.1:" + str(p2p_port(2)))

        # sanity check, verify that we are not in IBD
        for i in range(0, len(self.nodes)):
            node = self.nodes[i]
            if (node.getblockchaininfo()['initial_block_downloading']):
                raise AssertionError("Error, node(%s) shouldn't be in IBD." % str(i))

        # Wait until mnsync is complete (max 120 seconds)
        self.log.info("waiting to complete mnsync...")
        start_time = time.time()
        self.wait_until_mnsync_finished()
        self.log.info("MnSync completed in %d seconds" % (time.time() - start_time))
        miner.generate(1)
        self.sync_blocks()
        time.sleep(1)

        # Send Start message
        self.log.info("sending masternode broadcast...")
        self.controller_start_masternode(owner, masternodeAlias)
        miner.generate(1)
        self.sync_blocks()
        time.sleep(1)

        # Wait until masternode is enabled everywhere (max 180 secs)
        self.log.info("waiting till masternode gets enabled...")
        start_time = time.time()
        time.sleep(5)
        self.wait_until_mn_enabled(collateralTxId, 180)
        self.log.info("Masternode enabled in %d seconds" % (time.time() - start_time))
        self.log.info("Good. Masternode enabled")
        miner.generate(1)
        self.sync_blocks()
        time.sleep(1)

        last_seen = [self.get_mn_lastseen(node, collateralTxId) for node in self.nodes]
        self.log.info("Current lastseen: %s" % str(last_seen))
        self.log.info("Waiting 2 * 25 seconds and check new lastseen...")
        time.sleep(50)
        new_last_seen = [self.get_mn_lastseen(node, collateralTxId) for node in self.nodes]
        self.log.info("New lastseen: %s" % str(new_last_seen))
        for i in range(self.num_nodes):
            assert_greater_than(new_last_seen[i], last_seen[i])
        self.log.info("All good.")

if __name__ == '__main__':
    MasternodePingTest().main()