Revision history for XML-Simple
+2.23 2017-04-17 15:49:14+12:00 Pacific/Auckland
+ - another fix to the logic for detecting circular references (RT#114120 from
+ Matthias Pitzl, also report from Erland Sommarskog)
+
2.22 2015-12-05 11:08:20+13:00 Pacific/Auckland
- POD fix in link to package XML::SAX::ParseFactory (from Mohammad S Anwar)
- allow subclass to override attribute escaping (from Christopher Masto)
Version 1, February 1989
Copyright (C) 1989 Free Software Foundation, Inc.
- 51 Franklin St, Suite 500, Boston, MA 02110-1335 USA
+ 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
-# This file was automatically generated by Dist::Zilla::Plugin::Manifest v5.022.
+# This file was automatically generated by Dist::Zilla::Plugin::Manifest v5.043.
Changes
LICENSE
MANIFEST
t/9_Strict.t
t/A_XMLParser.t
t/B_Hooks.t
+t/author-pod-syntax.t
t/desertnet.src
t/lib/TagsToUpper.pm
-t/release-pod-syntax.t
t/srt.xml
t/subdir/test2.xml
t/test1.xml
"Grant McLean <grantm@cpan.org>"
],
"dynamic_config" : 0,
- "generated_by" : "Dist::Zilla version 5.022, CPAN::Meta::Converter version 2.142690",
+ "generated_by" : "Dist::Zilla version 5.043, CPAN::Meta::Converter version 2.150005",
"license" : [
"perl_5"
],
"web" : "https://github.com/grantm/xml-simple"
}
},
- "version" : "2.22"
+ "version" : "2.23"
}
author:
- 'Grant McLean <grantm@cpan.org>'
build_requires:
- Test::More: 0.88
+ Test::More: '0.88'
configure_requires:
- ExtUtils::MakeMaker: 0
+ ExtUtils::MakeMaker: '0'
dynamic_config: 0
-generated_by: 'Dist::Zilla version 5.022, CPAN::Meta::Converter version 2.142690'
+generated_by: 'Dist::Zilla version 5.043, CPAN::Meta::Converter version 2.150005'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
- version: 1.4
+ version: '1.4'
name: XML-Simple
requires:
- XML::NamespaceSupport: 1.04
- XML::SAX: 0.15
- XML::SAX::Expat: 0
- perl: 5.008
+ XML::NamespaceSupport: '1.04'
+ XML::SAX: '0.15'
+ XML::SAX::Expat: '0'
+ perl: '5.008'
resources:
repository: git://github.com/grantm/xml-simple.git
-version: 2.22
+version: '2.23'
-
-# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v5.022.
+# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v5.043.
use strict;
use warnings;
use ExtUtils::MakeMaker;
-
-
my %WriteMakefileArgs = (
"ABSTRACT" => "An API for simple XML files",
"AUTHOR" => "Grant McLean <grantm\@cpan.org>",
"ExtUtils::MakeMaker" => 0
},
"DISTNAME" => "XML-Simple",
- "EXE_FILES" => [],
"LICENSE" => "perl",
"MIN_PERL_VERSION" => "5.008",
"NAME" => "XML::Simple",
"TEST_REQUIRES" => {
"Test::More" => "0.88"
},
- "VERSION" => "2.22",
+ "VERSION" => "2.23",
"test" => {
"TESTS" => "t/*.t"
}
my %FallbackPrereqs = (
- "ExtUtils::MakeMaker" => 0,
"Test::More" => "0.88",
"XML::NamespaceSupport" => "1.04",
"XML::SAX" => "0.15",
unless eval { ExtUtils::MakeMaker->VERSION(6.52) };
WriteMakefile(%WriteMakefileArgs);
-
-
-
This archive contains the distribution XML-Simple,
-version 2.22:
+version 2.23:
An API for simple XML files
the same terms as the Perl 5 programming language system itself.
-This README file was generated by Dist::Zilla::Plugin::Readme v5.022.
+This README file was generated by Dist::Zilla::Plugin::Readme v5.043.
name = XML-Simple
author = Grant McLean <grantm@cpan.org>
-version = 2.22
+version = 2.23
license = Perl_5
copyright_holder = Grant McLean
copyright_year = 2015
package XML::Simple;
-$XML::Simple::VERSION = '2.22';
+$XML::Simple::VERSION = '2.23';
=head1 NAME
XML::Simple - An API for simple XML files
# Convert to XML
- if(my $refaddr = Scalar::Util::refaddr($ref)) {
+ my $refaddr = Scalar::Util::refaddr($ref);
+ if($refaddr) {
croak "circular data structures not supported"
- if $self->{_ancestors}->{$refaddr};
- $self->{_ancestors}->{$refaddr} = 1;
+ if $self->{ancestors}->{$refaddr};
+ $self->{ancestors}->{$refaddr} = $ref; # keep ref alive until we delete it
}
else {
if($named) {
}
- if(my $refaddr = Scalar::Util::refaddr($ref)) {
- delete $self->{_ancestors}->{$refaddr};
- }
+ delete $self->{ancestors}->{$refaddr};
return(join('', @result));
}
--- /dev/null
+#!perl
+
+BEGIN {
+ unless ($ENV{AUTHOR_TESTING}) {
+ require Test::More;
+ Test::More::plan(skip_all => 'these tests are for testing by the author');
+ }
+}
+
+# This file was automatically generated by Dist::Zilla::Plugin::PodSyntaxTests.
+use strict; use warnings;
+use Test::More;
+use Test::Pod 1.41;
+
+all_pod_files_ok();
+++ /dev/null
-#!perl
-
-BEGIN {
- unless ($ENV{RELEASE_TESTING}) {
- require Test::More;
- Test::More::plan(skip_all => 'these tests are for release candidate testing');
- }
-}
-
-# This file was automatically generated by Dist::Zilla::Plugin::PodSyntaxTests.
-use Test::More;
-use Test::Pod 1.41;
-
-all_pod_files_ok();