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