3 # Copyright 2002, Larry Wall.
5 # You may redistribute only under the same terms as Perl 5, as specified
6 # in the README file that comes with the distribution.
9 # I ought to keep this test easily backwards compatible to 5.004, so no
12 # This test checks downgrade behaviour on pre-5.8 perls when new 5.8 features
18 @INC = ('.', '../lib');
22 require Config; import Config;
23 if ($ENV{PERL_CORE} and $Config{'extensions'} !~ /\bStorable\b/) {
24 print "1..0 # Skip: Storable was not built\n";
33 use vars qw(@RESTRICT_TESTS %R_HASH %U_HASH $UTF8_CROAK $RESTRICTED_CROAK);
35 @RESTRICT_TESTS = ('Locked hash', 'Locked hash placeholder',
36 'Locked keys', 'Locked keys placeholder',
38 %R_HASH = (perl => 'rules');
41 # This is cheating. "\xdf" in Latin 1 is beta S, so will match \w if it
42 # is stored in utf8, not bytes.
43 # "\xdf" is y diaresis in EBCDIC (except for cp875, but so far no-one seems
44 # to use that) which has exactly the same properties for \w
45 # So the tests happen to pass.
46 my $utf8 = "Schlo\xdf" . chr 256;
49 # \xe5 is V in EBCDIC. That doesn't have the same properties w.r.t. \w as
50 # an a circumflex, so we need to be explicit.
52 # and its these very properties we're trying to test - an edge case
53 # involving whether scalars are being stored in bytes or in utf8.
54 my $a_circumflex = (ord ('A') == 193 ? "\x47" : "\xe5");
55 %U_HASH = (map {$_, $_} 'castle', "ch${a_circumflex}teau", $utf8, chr 0x57CE);
57 } elsif ($] >= 5.006) {
63 $UTF8_CROAK = "/^Cannot retrieve UTF8 data in non-UTF8 perl/";
64 $RESTRICTED_CROAK = "/^Cannot retrieve restricted hash/";
68 local $/ = "\n\nend\n";
71 unless (/begin ([0-7]{3}) ([^\n]*)\n(.*)$/s) {
73 warn "Dodgy data in section starting '$_'";
76 next unless oct $1 == ord 'A'; # Skip ASCII on EBCDIC, and vice versa
77 my $data = unpack 'u', $3;
82 # use Data::Dumper; $Data::Dumper::Useqq = 1; print Dumper \%tests;
84 my ($name, $expected) = @_;
85 my $hash = eval {thaw $tests{$name}};
86 is ($@, '', "Thawed $name without error?");
87 isa_ok ($hash, 'HASH');
88 ok (defined $hash && eq_hash($hash, $expected),
89 "And it is the hash we expected?");
94 my ($name, $expected, $bug) = @_;
95 my $scalar = eval {thaw $tests{$name}};
96 is ($@, '', "Thawed $name without error?");
97 isa_ok ($scalar, 'SCALAR', "Thawed $name?");
98 if ($bug and $] == 5.006) {
99 # Aargh. <expletive> <expletive> 5.6.0's harness doesn't even honour
101 warn "# Test skipped because eq is buggy for certain Unicode cases in 5.6.0";
102 warn "# Please upgrade to 5.6.1\n";
103 ok ("I'd really like to fail this test on 5.6.0 but I'm told that CPAN auto-dependancies mess up, and certain vendors only ship 5.6.0. Get your vendor to ugrade. Else upgrade your vendor.");
104 # One such vendor being the folks who brought you LONG_MIN as a positive
107 is ($$scalar, $expected, "And it is the data we expected?");
113 my ($name, $expected) = @_;
114 my $thing = eval {thaw $tests{$name}};
115 is ($thing, undef, "Thawed $name failed as expected?");
116 like ($@, $expected, "Error as predicted?");
119 sub test_locked_hash {
121 my @keys = keys %$hash;
122 my ($key, $value) = each %$hash;
123 eval {$hash->{$key} = reverse $value};
124 like( $@, "/^Modification of a read-only value attempted/",
125 'trying to change a locked key' );
126 is ($hash->{$key}, $value, "hash should not change?");
127 eval {$hash->{use} = 'perl'};
128 like( $@, "/^Attempt to access disallowed key 'use' in a restricted hash/",
129 'trying to add another key' );
130 ok (eq_array([keys %$hash], \@keys), "Still the same keys?");
133 sub test_restricted_hash {
135 my @keys = keys %$hash;
136 my ($key, $value) = each %$hash;
137 eval {$hash->{$key} = reverse $value};
139 'trying to change a restricted key' );
140 is ($hash->{$key}, reverse ($value), "hash should change");
141 eval {$hash->{use} = 'perl'};
142 like( $@, "/^Attempt to access disallowed key 'use' in a restricted hash/",
143 'trying to add another key' );
144 ok (eq_array([keys %$hash], \@keys), "Still the same keys?");
147 sub test_placeholder {
149 eval {$hash->{rules} = 42};
150 is ($@, '', 'No errors');
151 is ($hash->{rules}, 42, "New value added");
156 eval {$hash->{nms} = "http://nms-cgi.sourceforge.net/"};
157 is ($@, '', 'No errors');
158 is ($hash->{nms}, "http://nms-cgi.sourceforge.net/", "New value added");
161 # $Storable::DEBUGME = 1;
162 thaw_hash ('Hash with utf8 flag but no utf8 keys', \%R_HASH);
164 if (eval "use Hash::Util; 1") {
165 print "# We have Hash::Util, so test that the restricted hashes in <DATA> are valid\n";
166 for $Storable::downgrade_restricted (0, 1, undef, "cheese") {
167 my $hash = thaw_hash ('Locked hash', \%R_HASH);
168 test_locked_hash ($hash);
169 $hash = thaw_hash ('Locked hash placeholder', \%R_HASH);
170 test_locked_hash ($hash);
171 test_placeholder ($hash);
173 $hash = thaw_hash ('Locked keys', \%R_HASH);
174 test_restricted_hash ($hash);
175 $hash = thaw_hash ('Locked keys placeholder', \%R_HASH);
176 test_restricted_hash ($hash);
177 test_placeholder ($hash);
180 print "# We don't have Hash::Util, so test that the restricted hashes downgrade\n";
181 my $hash = thaw_hash ('Locked hash', \%R_HASH);
183 $hash = thaw_hash ('Locked hash placeholder', \%R_HASH);
185 $hash = thaw_hash ('Locked keys', \%R_HASH);
187 $hash = thaw_hash ('Locked keys placeholder', \%R_HASH);
189 local $Storable::downgrade_restricted = 0;
190 thaw_fail ('Locked hash', $RESTRICTED_CROAK);
191 thaw_fail ('Locked hash placeholder', $RESTRICTED_CROAK);
192 thaw_fail ('Locked keys', $RESTRICTED_CROAK);
193 thaw_fail ('Locked keys placeholder', $RESTRICTED_CROAK);
197 print "# We have utf8 scalars, so test that the utf8 scalars in <DATA> are valid\n";
198 thaw_scalar ('Short 8 bit utf8 data', "\xDF", 1);
199 thaw_scalar ('Long 8 bit utf8 data', "\xDF" x 256, 1);
200 thaw_scalar ('Short 24 bit utf8 data', chr 0xC0FFEE);
201 thaw_scalar ('Long 24 bit utf8 data', chr (0xC0FFEE) x 256);
203 print "# We don't have utf8 scalars, so test that the utf8 scalars downgrade\n";
204 thaw_fail ('Short 8 bit utf8 data', $UTF8_CROAK);
205 thaw_fail ('Long 8 bit utf8 data', $UTF8_CROAK);
206 thaw_fail ('Short 24 bit utf8 data', $UTF8_CROAK);
207 thaw_fail ('Long 24 bit utf8 data', $UTF8_CROAK);
208 local $Storable::drop_utf8 = 1;
209 my $bytes = thaw $tests{'Short 8 bit utf8 data as bytes'};
210 thaw_scalar ('Short 8 bit utf8 data', $$bytes);
211 thaw_scalar ('Long 8 bit utf8 data', $$bytes x 256);
212 $bytes = thaw $tests{'Short 24 bit utf8 data as bytes'};
213 thaw_scalar ('Short 24 bit utf8 data', $$bytes);
214 thaw_scalar ('Long 24 bit utf8 data', $$bytes x 256);
218 print "# We have utf8 hashes, so test that the utf8 hashes in <DATA> are valid\n";
219 my $hash = thaw_hash ('Hash with utf8 keys', \%U_HASH);
220 my $a_circumflex = (ord ('A') == 193 ? "\x47" : "\xe5");
223 my $r = 0 + $hash->{$_} =~ /^\w+$/;
224 cmp_ok ($l, '==', $r, sprintf "key length %d", length $_);
225 cmp_ok ($l, '==', $_ eq "ch${a_circumflex}teau" ? 0 : 1);
227 if (eval "use Hash::Util; 1") {
228 print "# We have Hash::Util, so test that the restricted utf8 hash is valid\n";
229 my $hash = thaw_hash ('Locked hash with utf8 keys', \%U_HASH);
232 my $r = 0 + $hash->{$_} =~ /^\w+$/;
233 cmp_ok ($l, '==', $r, sprintf "key length %d", length $_);
234 cmp_ok ($l, '==', $_ eq "ch${a_circumflex}teau" ? 0 : 1);
236 test_locked_hash ($hash);
238 print "# We don't have Hash::Util, so test that the utf8 hash downgrades\n";
239 fail ("You can't get here [perl version $]]. This is a bug in the test.
240 # Please send the output of perl -V to perlbug\@perl.org");
243 print "# We don't have utf8 hashes, so test that the utf8 hashes downgrade\n";
244 thaw_fail ('Hash with utf8 keys', $UTF8_CROAK);
245 thaw_fail ('Locked hash with utf8 keys', $UTF8_CROAK);
246 local $Storable::drop_utf8 = 1;
247 my $what = $] < 5.006 ? 'pre 5.6' : '5.6';
248 my $expect = thaw $tests{"Hash with utf8 keys for $what"};
249 thaw_hash ('Hash with utf8 keys', $expect);
250 #foreach (keys %$expect) { print "'$_':\t'$expect->{$_}'\n"; }
251 #foreach (keys %$got) { print "'$_':\t'$got->{$_}'\n"; }
252 if (eval "use Hash::Util; 1") {
253 print "# We have Hash::Util, so test that the restricted hashes in <DATA> are valid\n";
254 fail ("You can't get here [perl version $]]. This is a bug in the test.
255 # Please send the output of perl -V to perlbug\@perl.org");
257 print "# We don't have Hash::Util, so test that the restricted hashes downgrade\n";
258 my $hash = thaw_hash ('Locked hash with utf8 keys', $expect);
260 local $Storable::downgrade_restricted = 0;
261 thaw_fail ('Locked hash with utf8 keys', $RESTRICTED_CROAK);
262 # Which croak comes first is a bit of an implementation issue :-)
263 local $Storable::drop_utf8 = 0;
264 thaw_fail ('Locked hash with utf8 keys', $RESTRICTED_CROAK);
268 # A whole run of 2.x nfreeze data, uuencoded. The "mode bits" are the octal
269 # value of 'A', the "file name" is the test name. Use make_downgrade.pl to
271 begin 101 Locked hash
272 8!049`0````$*!7)U;&5S!`````1P97)L
276 begin 101 Locked hash placeholder
277 C!049`0````(*!7)U;&5S!`````1P97)L#A0````%<G5L97,`
281 begin 101 Locked keys
282 8!049`0````$*!7)U;&5S``````1P97)L
286 begin 101 Locked keys placeholder
287 C!049`0````(*!7)U;&5S``````1P97)L#A0````%<G5L97,`
291 begin 101 Short 8 bit utf8 data
296 begin 101 Short 8 bit utf8 data as bytes
301 begin 101 Long 8 bit utf8 data
302 M!048```"`,.?PY_#G\.?PY_#G\.?PY_#G\.?PY_#G\.?PY_#G\.?PY_#G\.?
303 MPY_#G\.?PY_#G\.?PY_#G\.?PY_#G\.?PY_#G\.?PY_#G\.?PY_#G\.?PY_#
304 MG\.?PY_#G\.?PY_#G\.?PY_#G\.?PY_#G\.?PY_#G\.?PY_#G\.?PY_#G\.?
305 MPY_#G\.?PY_#G\.?PY_#G\.?PY_#G\.?PY_#G\.?PY_#G\.?PY_#G\.?PY_#
306 MG\.?PY_#G\.?PY_#G\.?PY_#G\.?PY_#G\.?PY_#G\.?PY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OBPC[^N^+"/OZ[XL(^_KOBPC[^N^+"/OZ[XL(^_KOBPC[^N^+"/
352 MOZ[XL(^_KOBPC[^N^+"/OZ[XL(^_KOBPC[^N^+"/OZ[XL(^_KOBPC[^N^+"/
353 MOZ[XL(^_KOBPC[^N^+"/OZ[XL(^_KOBPC[^N^+"/OZ[XL(^_KOBPC[^N^+"/
354 MOZ[XL(^_KOBPC[^N^+"/OZ[XL(^_KOBPC[^N^+"/OZ[XL(^_KOBPC[^N^+"/
355 MOZ[XL(^_KOBPC[^N^+"/OZ[XL(^_KOBPC[^N^+"/OZ[XL(^_KOBPC[^N^+"/
356 ;OZ[XL(^_KOBPC[^N^+"/OZ[XL(^_KOBPC[^N
360 begin 101 Hash with utf8 flag but no utf8 keys
361 8!049``````$*!7)U;&5S``````1P97)L
365 begin 101 Hash with utf8 keys
366 M!049``````0*!F-A<W1L90`````&8V%S=&QE"@=C:.5T96%U``````=C:.5T
367 D96%U%P/EGXX!`````^6?CA<'4V-H;&_#GP(````&4V-H;&_?
371 begin 101 Locked hash with utf8 keys
372 M!049`0````0*!F-A<W1L900````&8V%S=&QE"@=C:.5T96%U!`````=C:.5T
373 D96%U%P/EGXX%`````^6?CA<'4V-H;&_#GP8````&4V-H;&_?
377 begin 101 Hash with utf8 keys for pre 5.6
378 M!049``````0*!F-A<W1L90`````&8V%S=&QE"@=C:.5T96%U``````=C:.5T
379 D96%U"@/EGXX``````^6?C@H'4V-H;&_#GP(````&4V-H;&_?
383 begin 101 Hash with utf8 keys for 5.6
384 M!049``````0*!F-A<W1L90`````&8V%S=&QE"@=C:.5T96%U``````=C:.5T
385 D96%U%P/EGXX``````^6?CA<'4V-H;&_#GP(````&4V-H;&_?
389 begin 301 Locked hash
390 8!049`0````$*!9FDDX6B!`````27A9F3
394 begin 301 Locked hash placeholder
395 C!049`0````(.%`````69I).%H@H%F:23A:($````!)>%F9,`
399 begin 301 Locked keys
400 8!049`0````$*!9FDDX6B``````27A9F3
404 begin 301 Locked keys placeholder
405 C!049`0````(.%`````69I).%H@H%F:23A:(`````!)>%F9,`
409 begin 301 Short 8 bit utf8 data
414 begin 301 Short 8 bit utf8 data as bytes
419 begin 301 Long 8 bit utf8 data
420 M!048```"`(MSBW.+<XMSBW.+<XMSBW.+<XMSBW.+<XMSBW.+<XMSBW.+<XMS
421 MBW.+<XMSBW.+<XMSBW.+<XMSBW.+<XMSBW.+<XMSBW.+<XMSBW.+<XMSBW.+
422 M<XMSBW.+<XMSBW.+<XMSBW.+<XMSBW.+<XMSBW.+<XMSBW.+<XMSBW.+<XMS
423 MBW.+<XMSBW.+<XMSBW.+<XMSBW.+<XMSBW.+<XMSBW.+<XMSBW.+<XMSBW.+
424 M<XMSBW.+<XMSBW.+<XMSBW.+<XMSBW.+<XMSBW.+<XMSBW.+<XMSBW.+<XMS
425 MBW.+<XMSBW.+<XMSBW.+<XMSBW.+<XMSBW.+<XMSBW.+<XMSBW.+<XMSBW.+
426 M<XMSBW.+<XMSBW.+<XMSBW.+<XMSBW.+<XMSBW.+<XMSBW.+<XMSBW.+<XMS
427 MBW.+<XMSBW.+<XMSBW.+<XMSBW.+<XMSBW.+<XMSBW.+<XMSBW.+<XMSBW.+
428 M<XMSBW.+<XMSBW.+<XMSBW.+<XMSBW.+<XMSBW.+<XMSBW.+<XMSBW.+<XMS
429 MBW.+<XMSBW.+<XMSBW.+<XMSBW.+<XMSBW.+<XMSBW.+<XMSBW.+<XMSBW.+
430 M<XMSBW.+<XMSBW.+<XMSBW.+<XMSBW.+<XMSBW.+<XMSBW.+<XMSBW.+<XMS
431 8BW.+<XMSBW.+<XMSBW.+<XMSBW.+<XMS
435 begin 301 Short 24 bit utf8 data
440 begin 301 Short 24 bit utf8 data as bytes
445 begin 301 Long 24 bit utf8 data
446 M!048```&`/M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M3
447 M0G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S
448 M5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M3
449 M0G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S
450 M5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M3
451 M0G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S
452 M5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M3
453 M0G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S
454 M5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M3
455 M0G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S
456 M5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M3
457 M0G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S
458 M5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M3
459 M0G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S
460 M5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M3
461 M0G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S
462 M5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M3
463 M0G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S
464 M5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M3
465 M0G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S
466 M5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M3
467 M0G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S
468 M5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M3
469 M0G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S
470 M5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M3
471 M0G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S
472 M5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M3
473 M0G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S
474 M5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M3
475 M0G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S
476 M5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M3
477 M0G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S
478 M5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M3
479 M0G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S5?M30G-S
480 -5?M30G-S5?M30G-S50``
484 begin 301 Hash with utf8 flag but no utf8 keys
485 8!049``````$*!9FDDX6B``````27A9F3
489 begin 301 Hash with utf8 keys
490 M!049``````0*!X.(1Z.%@:0`````!X.(1Z.%@:0*!H.!HJ.3A0`````&@X&B
491 FHY.%%P3<9')5`0````3<9')5%P?B@XB3EHMS`@````;B@XB3EM\`
495 begin 301 Locked hash with utf8 keys
496 M!049`0````0*!X.(1Z.%@:0$````!X.(1Z.%@:0*!H.!HJ.3A00````&@X&B
497 FHY.%%P3<9')5!0````3<9')5%P?B@XB3EHMS!@````;B@XB3EM\`
501 begin 301 Hash with utf8 keys for pre 5.6
502 M!049``````0*!H.!HJ.3A0`````&@X&BHY.%"@B#B(M&HX6!I``````'@XA'
503 GHX6!I`H'XH.(DY:+<P(````&XH.(DY;?"@3<9')5``````3<9')5
507 begin 301 Hash with utf8 keys for 5.6
508 M!049``````0*!H.!HJ.3A0`````&@X&BHY.%"@>#B$>CA8&D``````>#B$>C
509 FA8&D%P?B@XB3EHMS`@````;B@XB3EM\7!-QD<E4`````!-QD<E4`