Linux cpanel2.daytoncreative.net 2.6.32-754.29.2.el6.x86_64 #1 SMP Tue May 12 17:39:04 UTC 2020 x86_64
Apache/2.4.43 (cPanel) OpenSSL/1.1.1g mod_bwlimited/1.4
Server IP : 70.62.220.67 & Your IP : 216.73.216.193
Domains :
Cant Read [ /etc/named.conf ]
User : michaelgreg
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
log /
perl-5.20.2 /
dist /
Data-Dumper /
t /
Delete
Unzip
Name
Size
Permission
Date
Action
lib
[ DIR ]
drwxr-xr-x
2015-02-14 16:56
bless.t
1.33
KB
-r--r--r--
2014-12-27 11:48
bless_var_method.t
2.31
KB
-r--r--r--
2014-12-27 11:48
bugs.t
3.61
KB
-r--r--r--
2014-12-27 11:48
deparse.t
2.44
KB
-r--r--r--
2014-12-27 11:48
dumper.t
38.19
KB
-r--r--r--
2014-12-27 11:49
dumpperl.t
3.7
KB
-r--r--r--
2014-12-27 11:48
freezer.t
3.14
KB
-r--r--r--
2014-12-27 11:48
freezer_useperl.t
2.72
KB
-r--r--r--
2014-12-27 11:48
indent.t
3
KB
-r--r--r--
2014-12-27 11:48
misc.t
5.95
KB
-r--r--r--
2014-12-27 11:48
names.t
2.1
KB
-r--r--r--
2014-12-27 11:48
overload.t
610
B
-r--r--r--
2014-12-27 11:48
pair.t
1.87
KB
-r--r--r--
2014-12-27 11:48
perl-74170.t
5.33
KB
-r--r--r--
2014-12-27 11:48
purity_deepcopy_maxdepth.t
10.76
KB
-r--r--r--
2014-12-27 11:48
qr.t
515
B
-r--r--r--
2014-12-27 11:48
quotekeys.t
4.08
KB
-r--r--r--
2014-12-27 11:48
recurse.t
1.64
KB
-r--r--r--
2015-01-10 12:06
seen.t
2.56
KB
-r--r--r--
2014-12-27 11:48
sortkeys.t
5.85
KB
-r--r--r--
2014-12-27 11:48
sparseseen.t
2.46
KB
-r--r--r--
2014-12-27 11:48
terse.t
1.33
KB
-r--r--r--
2014-12-27 11:48
toaster.t
2.43
KB
-r--r--r--
2014-12-27 11:48
values.t
1.06
KB
-r--r--r--
2014-12-27 11:48
Save
Rename
#!perl # # regression tests for old bugs that do not fit other categories BEGIN { require Config; import Config; no warnings 'once'; if ($Config{'extensions'} !~ /\bData\/Dumper\b/) { print "1..0 # Skip: Data::Dumper was not built\n"; exit 0; } } use strict; use Test::More tests => 15; use Data::Dumper; { sub iterate_hash { my ($h) = @_; my $count = 0; $count++ while each %$h; return $count; } my $dumper = Data::Dumper->new( [\%ENV], ['ENV'] )->Sortkeys(1); my $orig_count = iterate_hash(\%ENV); $dumper->Dump; my $new_count = iterate_hash(\%ENV); is($new_count, $orig_count, 'correctly resets hash iterators'); } # [perl #38612] Data::Dumper core dump in 5.8.6, fixed by 5.8.7 sub foo { my $s = shift; local $Data::Dumper::Terse = 1; my $c = eval Dumper($s); sub bar::quote { } bless $c, 'bar'; my $d = Data::Dumper->new([$c]); $d->Freezer('quote'); return $d->Dump; } foo({}); ok(1, "[perl #38612]"); # Still no core dump? We are fine. { my %h = (1,2,3,4); each %h; my $d = Data::Dumper->new([\%h]); $d->Useqq(1); my $txt = $d->Dump(); my $VAR1; eval $txt; is_deeply($VAR1, \%h, '[perl #40668] Reset hash iterator'); } # [perl #64744] Data::Dumper each() bad interaction { local $Data::Dumper::Useqq = 1; my $a = {foo => 1, bar => 1}; each %$a; $a = {x => $a}; my $d = Data::Dumper->new([$a]); $d->Useqq(1); my $txt = $d->Dump(); my $VAR1; eval $txt; is_deeply($VAR1, $a, '[perl #64744] Reset hash iterator'); } # [perl #56766] Segfaults on bad syntax - fixed with version 2.121_17 sub doh { # 2nd arg is supposed to be an arrayref my $doh = Data::Dumper->Dump([\@_],'@_'); } doh('fixed'); ok(1, "[perl #56766]"); # Still no core dump? We are fine. SKIP: { skip "perl 5.10.1 crashes and DD cannot help it", 1 if $] < 5.0119999; # [perl #72332] Segfault on empty-string glob Data::Dumper->Dump([*{*STDERR{IO}}]); ok("ok", #ok "empty-string glob [perl #72332]"); } # writing out of bounds with malformed utf8 SKIP: { eval { require Encode }; skip("Encode not available", 1) if $@; local $^W=1; local $SIG{__WARN__} = sub {}; my $a="\x{fc}'" x 50; Encode::_utf8_on($a); Dumper $a; ok("ok", "no crash dumping malformed utf8 with the utf8 flag on"); } { # We have to test reference equivalence, rather than actual output, as # Perl itself is buggy prior to 5.15.6. Output from DD should at least # evaluate to the same typeglob, regardless of perl bugs. my $tests = sub { my $VAR1; no strict 'refs'; is eval(Dumper \*{"foo::b\0ar"}), \*{"foo::b\0ar"}, 'GVs with nulls'; # There is a strange 5.6 bug that causes the eval to fail a supposed # strict vars test (involving $VAR1). Mentioning the glob beforehand # somehow makes it go away. () = \*{chr 256}; is eval Dumper(\*{chr 256})||die ($@), \*{chr 256}, 'GVs with UTF8 names (or not, depending on perl version)'; () = \*{"\0".chr 256}; # same bug is eval Dumper(\*{"\0".chr 256}), \*{"\0".chr 256}, 'GVs with UTF8 and nulls'; }; SKIP: { skip "no XS", 3 if not defined &Data::Dumper::Dumpxs; local $Data::Dumper::Useperl = 0; &$tests; } local $Data::Dumper::Useperl = 1; &$tests; } { # Test reference equivalence of dumping *{""}. my $tests = sub { my $VAR1; no strict 'refs'; is eval(Dumper \*{""}), \*{""}, 'dumping \*{""}'; }; SKIP: { skip "no XS", 1 if not defined &Data::Dumper::Dumpxs; local $Data::Dumper::Useperl = 0; &$tests; } local $Data::Dumper::Useperl = 1; &$tests; } # EOF