Home
last modified time | relevance | path

Searched refs:base64 (Results 1 – 25 of 55) sorted by relevance

123

/PHP-7.2/ext/standard/tests/url/
H A Dbase64_decode_basic_003.phpt8 * Description: Decodes string using MIME base64 algorithm
9 * Source code: ext/standard/base64.c
43 base64 "" non-strict "" strict ""
44 base64 "=" non-strict "" strict false
45 base64 "==" non-strict "" strict false
46 base64 "===" non-strict "" strict false
47 base64 "====" non-strict "" strict false
53 base64 "VV" non-strict "U" strict "U"
55 base64 "VV==" non-strict "U" strict "U"
58 base64 "VVV" non-strict "UU" strict "UU"
[all …]
H A Dbase64_decode_basic_001.phpt2 Test base64_decode() function : basic functionality - ensure all base64 alphabet is supported.
6 * Description: Decodes string using MIME base64 algorithm
7 * Source code: ext/standard/base64.c
11 echo "Decode an input string containing the whole base64 alphabet:\n";
20 Decode an input string containing the whole base64 alphabet:
H A Dbase64_decode_basic_002.phpt2 Test base64_decode() function : basic functionality - strict vs non-strict with non-base64 chars.
6 * Description: Decodes string using MIME base64 algorithm
7 * Source code: ext/standard/base64.c
24 echo "\nOther chars outside the base64 alphabet are ignored when \$strict===false, but cause failur…
43 Other chars outside the base64 alphabet are ignored when $strict===false, but cause failure with $s…
H A Dbase64_encode_basic_002.phpt6 * Description: Encodes string using MIME base64 algorithm
7 * Source code: ext/standard/base64.c
/PHP-7.2/ext/xmlrpc/tests/
H A Dbug74975.phpt22 $foo->xmlrpc_type = 'base64';
26 $bar->xmlrpc_type = 'base64';
44 <base64>Zm9vYmFy&#10;</base64>
50 <base64>Zm9vYmFy&#10;</base64>
H A Dbug70728.phpt11 $obj->xmlrpc_type = 'base64';
21 <base64>NzM1ODgyMjkyMDU=&#10;</base64>
28 string(6) "base64"
H A Dbug70728_64bit.phpt11 $obj->xmlrpc_type = 'base64';
21 <base64>NzM1ODgyMjkyMDU=&#10;</base64>
28 string(6) "base64"
H A Dbug77380.phpt2 Bug #77380 (Global out of bounds read in xmlrpc base64 code)
16 string(6) "base64"
/PHP-7.2/ext/imap/tests/
H A Dimap_binary_basic.phpt10 * Description: Convert an 8bit string to a base64 string.
18 $base64 = imap_binary($str);
19 var_dump(bin2hex($base64));
23 $base64 = imap_binary($str);
24 var_dump(bin2hex($base64));
28 $base64 = imap_binary($str);
29 var_dump(bin2hex($base64));
33 $base64 = imap_binary($hex);
34 var_dump(bin2hex($base64));
H A Dimap_base64_basic.phpt17 $base64 = base64_encode($str);
18 if (imap_base64($base64) == $str) {
25 $base64 = base64_encode($str);
26 if (imap_base64($base64) == $str) {
33 $base64 = base64_encode($hex);
34 if (imap_base64($base64) == $hex) {
/PHP-7.2/ext/standard/tests/filters/
H A Dfilter_errors_convert_base64_decode.phpt2 Filter errors: convert.base64-decode
4 <?php require 'filter_errors.inc'; filter_errors_skipif('convert.base64-decode'); ?>
8 filter_errors_test('convert.base64-decode', '===');
13 Warning: stream_filter_append(): stream filter (convert.base64-decode): invalid byte sequence in %s
18 Warning: stream_get_contents(): stream filter (convert.base64-decode): invalid byte sequence in %s
/PHP-7.2/ext/standard/tests/file/
H A Dstream_rfc2397_006.phpt9 "data:;base64,\0Zm9vYmFyIGZvb2Jhcg==",
10 "data:;base64,Zm9vYmFy\0IGZvb2Jhcg==",
11 'data:;base64,#Zm9vYmFyIGZvb2Jhcg==',
12 'data:;base64,#Zm9vYmFyIGZvb2Jhc=',
30 Warning: file_get_contents(data:;base64,#Zm9vYmFyIGZvb2Jhcg==): failed to open stream: rfc2397: una…
33 Warning: file_get_contents(data:;base64,#Zm9vYmFyIGZvb2Jhc=): failed to open stream: rfc2397: unabl…
H A Dstream_rfc2397_002.phpt11 'data://;base64,',
12 'data://;base64',
19 'data://text/plain;foo=bar;base64,',
37 ["base64"]=>
58 ["base64"]=>
71 string(15) "data://;base64,"
89 ["base64"]=>
114 ["base64"]=>
139 ["base64"]=>
152 string(33) "data://text/plain;foo=bar;base64,"
[all …]
H A Dbug68532.phpt2 Bug #68532: convert.base64-encode omits padding bytes
9 $filter = stream_filter_append($stream, 'convert.base64-encode');
16 $filter = stream_filter_append($fileStream , 'convert.base64-encode');
H A Dstream_rfc2397_003.phpt11 'data://;base64,Zm9vYmFyIGZvb2Jhcg==',
12 'stream_rfc2397_003.gif' => 'data://image/gif;base64,R0lGODdhMAAwAPAAAAAAAP///ywAAAAAMAAw
/PHP-7.2/ext/sodium/tests/
H A Dutils.phpt77 var_dump('base64("O1R") case passed');
82 var_dump('base64("O1") case passed');
87 var_dump('base64("O") case passed');
91 var_dump('base64("O1R") case passed');
92 var_dump('base64("O1") case passed');
93 var_dump('base64("O") case passed');
113 string(25) "base64("O1R") case passed"
114 string(24) "base64("O1") case passed"
115 string(23) "base64("O") case passed"
/PHP-7.2/ext/mbstring/tests/
H A Dmb_convert_encoding_basic.phpt28 echo "JIS encoded string in base64:\n";
36 echo "EUC-JP encoded string in base64:\n";
44 echo "SJIS encoded string in base64:\n";
52 echo "UTF-8 encoded string in base64:\n";
65 JIS encoded string in base64:
73 EUC-JP encoded string in base64:
81 SJIS encoded string in base64:
89 UTF-8 encoded string in base64:
H A Dmb_convert_encoding_array.phpt40 echo "JIS encoded string in base64:\n";
48 echo "EUC-JP encoded string in base64:\n";
56 echo "SJIS encoded string in base64:\n";
64 echo "UTF-8 encoded string in base64:\n";
77 JIS encoded string in base64:
105 EUC-JP encoded string in base64:
133 SJIS encoded string in base64:
161 UTF-8 encoded string in base64:
H A Dmb_convert_encoding_array2.phpt52 echo "JIS encoded string in base64:\n";
60 echo "EUC-JP encoded string in base64:\n";
68 echo "SJIS encoded string in base64:\n";
76 echo "UTF-8 encoded string in base64:\n";
89 JIS encoded string in base64:
123 EUC-JP encoded string in base64:
157 SJIS encoded string in base64:
191 UTF-8 encoded string in base64:
/PHP-7.2/ext/iconv/tests/
H A Diconv_basic.phpt27 echo "Expected EUC-JP encoded string in base64:\n";
34 echo "Expected SJIS encoded string in base64:\n";
41 echo "Expected UTF-8 encoded string in base64:\n";
53 Expected EUC-JP encoded string in base64:
60 Expected SJIS encoded string in base64:
67 Expected UTF-8 encoded string in base64:
/PHP-7.2/ext/bz2/tests/
H A Dbz2_filter_decompress.phpt2 bzip2.decompress (with convert.base64-decode)
10 stream_filter_append($fp, 'convert.base64-decode', STREAM_FILTER_WRITE);
H A Dbz2_filter_compress.phpt2 bzip2.compress (with convert.base64-encode)
11 stream_filter_append($fp, 'convert.base64-encode', STREAM_FILTER_WRITE);
/PHP-7.2/ext/zlib/tests/
H A Dzlib_filter_deflate.phpt2 zlib.deflate (with convert.base64-encode)
11 stream_filter_append($fp, 'convert.base64-encode', STREAM_FILTER_WRITE);
H A Dzlib_filter_inflate.phpt2 zlib.inflate (with convert.base64-decode)
10 stream_filter_append($fp, 'convert.base64-decode', STREAM_FILTER_WRITE);
/PHP-7.2/ext/gd/tests/
H A Dbug72913.phpt9 $base64 = 'iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAIAAACRXR/mAAAABnRSTlMAAAAAAABu'
13 $src = imagecreatefromstring(base64_decode($base64));

Completed in 44 milliseconds

123