1--TEST--
2Test base64_decode() function : basic functionality - ensure all base64 alphabet is supported.
3--FILE--
4<?php
5echo "Decode an input string containing the whole base64 alphabet:\n";
6$allbase64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/VV==";
7var_dump(bin2hex(base64_decode($allbase64)));
8var_dump(bin2hex(base64_decode($allbase64, false)));
9var_dump(bin2hex(base64_decode($allbase64, true)));
10
11echo "Done";
12?>
13--EXPECT--
14Decode an input string containing the whole base64 alphabet:
15string(98) "00108310518720928b30d38f41149351559761969b71d79f8218a39259a7a29aabb2dbafc31cb3d35db7e39ebbf3dfbf55"
16string(98) "00108310518720928b30d38f41149351559761969b71d79f8218a39259a7a29aabb2dbafc31cb3d35db7e39ebbf3dfbf55"
17string(98) "00108310518720928b30d38f41149351559761969b71d79f8218a39259a7a29aabb2dbafc31cb3d35db7e39ebbf3dfbf55"
18Done
19