Home
last modified time | relevance | path

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

123

/php-src/ext/standard/tests/url/
H A Dbase64_decode_basic_003.phpt35 base64 "" non-strict "" strict ""
36 base64 "=" non-strict "" strict false
37 base64 "==" non-strict "" strict false
38 base64 "===" non-strict "" strict false
39 base64 "====" non-strict "" strict false
40 base64 "V" non-strict "" strict false
41 base64 "V=" non-strict "" strict false
45 base64 "VV" non-strict "U" strict "U"
47 base64 "VV==" non-strict "U" strict "U"
50 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.
5 echo "Decode an input string containing the whole base64 alphabet:\n";
14 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.
18 echo "\nOther chars outside the base64 alphabet are ignored when \$strict===false, but cause failur…
52 Other chars outside the base64 alphabet are ignored when $strict===false, but cause failure with $s…
/php-src/ext/mbstring/tests/
H A Dgh10192_utf7imap.phpt27 'valid base64 character between & and non-base64 character' => 'A &ZeVnLIqe B',
28 'invalid base64 character between & and non-base64 character' => 'A &ZeVnLIq B',
29 'valid base64 character between & and base64 character' => 'A &ZeVnLIqe1 B',
30 'invalid base64 character between & and base64 character' => 'A &ZeVnLIq1 B',
101 base64 character after &
110 base64 character after -
227 valid base64 character between & and non-base64 character
236 invalid base64 character between & and non-base64 character
245 valid base64 character between & and base64 character
254 invalid base64 character between & and base64 character
[all …]
H A Dgh10192_utf7.phpt31 'valid base64 character between + and non-base64 character' => 'A +ZeVnLIqe B',
33 'valid base64 character between + and base64 character' => 'A +ZeVnLIqe1 B',
34 'invalid base64 character between + and base64 character' => 'A +ZeVnLIq1 B',
112 base64 character after +
274 valid base64 character between + and non-base64 character
283 invalid base64 character between + and non-base64 character
292 valid base64 character between + and base64 character
301 invalid base64 character between + and base64 character
364 valid base64 character consisting only of + between + and base64 character
373 invalid base64 character consisting only of + between + and base64 character
[all …]
H A Dmb_convert_encoding_basic.phpt20 echo "JIS encoded string in base64:\n";
28 echo "EUC-JP encoded string in base64:\n";
36 echo "SJIS encoded string in base64:\n";
44 echo "UTF-8 encoded string in base64:\n";
57 JIS encoded string in base64:
65 EUC-JP encoded string in base64:
73 SJIS encoded string in base64:
81 UTF-8 encoded string in base64:
H A Dmb_convert_encoding_array.phpt32 echo "JIS encoded string in base64:\n";
40 echo "EUC-JP encoded string in base64:\n";
48 echo "SJIS encoded string in base64:\n";
56 echo "UTF-8 encoded string in base64:\n";
69 JIS encoded string in base64:
97 EUC-JP encoded string in base64:
125 SJIS encoded string in base64:
153 UTF-8 encoded string in base64:
H A Dbase64_encoding.phpt11 function testConversion($raw, $base64) {
13 if ($converted !== $base64)
14 …die('Expected ' . bin2hex($raw) . ' to convert to "' . $base64 . '"; actually got "' . $converted …
15 $converted = mb_convert_encoding($base64, '8bit', 'Base64');
17 …die('Expected "' . $base64 . '" to convert to ' . bin2hex($raw) . '; actually got ' . bin2hex($con…
H A Dmb_convert_encoding_array2.phpt44 echo "JIS encoded string in base64:\n";
52 echo "EUC-JP encoded string in base64:\n";
60 echo "SJIS encoded string in base64:\n";
68 echo "UTF-8 encoded string in base64:\n";
81 JIS encoded string in base64:
115 EUC-JP encoded string in base64:
149 SJIS encoded string in base64:
183 UTF-8 encoded string in base64:
/php-src/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=',
29 Warning: file_get_contents(data:;base64,#Zm9vYmFyIGZvb2Jhcg==): Failed to open stream: rfc2397: una…
32 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"]=>
56 ["base64"]=>
69 string(15) "data://;base64,"
81 ["base64"]=>
104 ["base64"]=>
127 ["base64"]=>
140 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-src/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-src/ext/mbstring/libmbfl/filters/
H A Dmbfilter_utf7imap.c506 *base64 = false; in handle_base64_end()
527 if (base64) { in mb_utf7imap_to_wchar()
607 base64 = true; in mb_utf7imap_to_wchar()
652 bool base64; in mb_wchar_to_utf7imap() local
658 if (base64) { in mb_wchar_to_utf7imap()
664 base64 = false; in mb_wchar_to_utf7imap()
716 base64 = true; in mb_wchar_to_utf7imap()
726 if (base64) { in mb_wchar_to_utf7imap()
757 if (base64) { in mb_check_utf7imap()
764 base64 = false; in mb_check_utf7imap()
[all …]
H A Dmbfilter_utf7.c491 *base64 = false; in handle_base64_end()
513 if (base64) { in mb_utf7_to_wchar()
641 bool base64; in mb_wchar_to_utf7() local
647 if (base64) { in mb_wchar_to_utf7()
650 base64 = false; in mb_wchar_to_utf7()
701 base64 = true; in mb_wchar_to_utf7()
711 if (base64) { in mb_wchar_to_utf7()
744 if (base64) { in mb_check_utf7()
750 base64 = false; in mb_check_utf7()
779 base64 = false; in mb_check_utf7()
[all …]
/php-src/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');
125 string(25) "base64("O1R") case passed"
126 string(24) "base64("O1") case passed"
127 string(23) "base64("O") case passed"
/php-src/ext/iconv/tests/
H A Diconv_basic.phpt19 echo "Expected EUC-JP encoded string in base64:\n";
26 echo "Expected SJIS encoded string in base64:\n";
33 echo "Expected UTF-8 encoded string in base64:\n";
45 Expected EUC-JP encoded string in base64:
52 Expected SJIS encoded string in base64:
59 Expected UTF-8 encoded string in base64:
/php-src/ext/gd/tests/
H A Dbug79945.phpt15 imagecreatefrompng('php://filter/read=convert.base64-encode/resource=' . __DIR__ . '/test.png');
20 imagecreatefrompng('php://filter/read=convert.base64-encode/resource=' . __DIR__ . '/test.png');
25 Warning: imagecreatefrompng(): "php://filter/read=convert.base64-encode/resource=%s" is not a valid…
H A Dbug72913.phpt13 $base64 = 'iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAIAAACRXR/mAAAABnRSTlMAAAAAAABu'
17 $src = imagecreatefromstring(base64_decode($base64));
/php-src/ext/zlib/tests/
H A Dzlib_filter_inflate.phpt2 zlib.inflate (with convert.base64-decode)
10 stream_filter_append($fp, 'convert.base64-decode', STREAM_FILTER_WRITE);
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 Dbug48725_2.phpt7 $stream = fopen('data://text/plain;base64,' . base64_encode('Foo bar baz'),
/php-src/ext/bz2/tests/
H A Dbz2_filter_compress.phpt2 bzip2.compress (with convert.base64-encode)
11 stream_filter_append($fp, 'convert.base64-encode', STREAM_FILTER_WRITE);
H A Dbz2_filter_decompress.phpt2 bzip2.decompress (with convert.base64-decode)
10 stream_filter_append($fp, 'convert.base64-decode', STREAM_FILTER_WRITE);

Completed in 56 milliseconds

123