Annotation of embedaddon/php/ext/standard/tests/url/bug55273.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #55273 (base64_decode() with strict rejects whitespace after pad)
! 3: --FILE--
! 4: <?php
! 5: function test($s) {
! 6: $v = chunk_split(base64_encode($s));
! 7: $r = base64_decode($v, True);
! 8: var_dump($v, $r);
! 9: }
! 10:
! 11: test('PHP');
! 12: test('PH');
! 13: test('P');
! 14:
! 15: ?>
! 16: --EXPECT--
! 17: string(6) "UEhQ
! 18: "
! 19: string(3) "PHP"
! 20: string(6) "UEg=
! 21: "
! 22: string(2) "PH"
! 23: string(6) "UA==
! 24: "
! 25: string(1) "P"
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>