Home
last modified time | relevance | path

Searched refs:base64_encode (Results 1 – 25 of 45) sorted by relevance

12

/PHP-7.1/ext/standard/tests/url/
H A Dbase64_encode_error_001.phpt2 Test base64_encode() function : error conditions - wrong number of args
5 /* Prototype : proto string base64_encode(string str)
11 echo "*** Testing base64_encode() : error conditions - wrong number of args ***\n";
14 echo "\n-- Testing base64_encode() function with Zero arguments --\n";
15 var_dump( base64_encode() );
17 //Test base64_encode with one more than the expected number of arguments
21 var_dump( base64_encode($str, $extra_arg) );
26 *** Testing base64_encode() : error conditions - wrong number of args ***
28 -- Testing base64_encode() function with Zero arguments --
30 Warning: base64_encode() expects exactly 1 parameter, 0 given in %s on line 12
[all …]
H A Dbase64_encode_basic_002.phpt2 Test base64_encode() function : basic functionality - check algorithm round trips
5 /* Prototype : proto string base64_encode(string str)
12 * Test base64_encode with single byte values.
15 echo "*** Testing base64_encode() : basic functionality ***\n";
25 echo "\n--- Testing base64_encode() with binary string input ---\n";
31 $enc = base64_encode($str);
46 *** Testing base64_encode() : basic functionality ***
48 --- Testing base64_encode() with binary string input ---
H A Dbase64_encode_variation_001.phpt2 Test base64_encode() function : usage variations - unexpected types for argument 1
5 /* Prototype : proto string base64_encode(string str)
11 echo "*** Testing base64_encode() : usage variations ***\n";
76 var_dump( base64_encode($value) );
82 *** Testing base64_encode() : usage variations ***
115 Error: 2 - base64_encode() expects parameter 1 to be string, array given, %s(73)
120 Error: 2 - base64_encode() expects parameter 1 to be string, array given, %s(73)
125 Error: 2 - base64_encode() expects parameter 1 to be string, array given, %s(73)
130 Error: 2 - base64_encode() expects parameter 1 to be string, array given, %s(73)
135 Error: 2 - base64_encode() expects parameter 1 to be string, array given, %s(73)
[all …]
H A Dbug47174.phpt11 $in = base64_encode(b"foo") . b'==' . base64_encode(b"bar");
H A Dbase64_encode_basic_001.phpt2 Test base64_encode() function : basic functionality
5 /* Prototype : proto string base64_encode(string str)
12 * Test base64_encode with single byte values.
15 echo "*** Testing base64_encode() : basic functionality ***\n";
19 $enc = base64_encode($str);
26 *** Testing base64_encode() : basic functionality ***
H A Dbug55273.phpt6 $v = chunk_split(base64_encode($s));
/PHP-7.1/ext/mbstring/tests/
H A Dmb_convert_encoding_basic.phpt29 var_dump(base64_encode($jis_string));
31 var_dump(base64_encode(mb_convert_encoding($sjis_string, 'JIS', 'SJIS')));
33 var_dump(base64_encode(mb_convert_encoding($utf8_string, 'JIS', 'UTF-8')));
37 var_dump(base64_encode($euc_jp_string));
39 var_dump(base64_encode(mb_convert_encoding($sjis_string, 'EUC-JP', 'SJIS')));
40 var_dump(base64_encode(mb_convert_encoding($jis_string, 'EUC-JP', 'JIS')));
45 var_dump(base64_encode($sjis_string));
47 var_dump(base64_encode(mb_convert_encoding($jis_string, 'SJIS', 'JIS')));
49 var_dump(base64_encode(mb_convert_encoding($utf8_string, 'SJIS', 'UTF-8')));
53 var_dump(base64_encode($utf8_string));
[all …]
H A Dmb_convert_encoding.phpt35 print("SJIS: ".base64_encode($s)."\n"); // SJIS
39 print("JIS: ".base64_encode($s)."\n"); // JIS
52 print("SJIS: ".base64_encode($s)."\n"); // SJIS
56 print("JIS: ".base64_encode($s)."\n"); // JIS
69 print("SJIS: ".base64_encode($s)."\n"); // SJIS
73 print("JIS: ".base64_encode($s)."\n"); // JIS
85 print("SJIS: ".base64_encode($s)."\n"); // SJIS
89 print("JIS: ".base64_encode($s)."\n"); // JIS
H A Dmb_strtoupper_basic.phpt29 var_dump(base64_encode($ascii));
39 var_dump(base64_encode($mb));
H A Dmb_substr_basic.phpt35 var_dump(base64_encode($result_1));
39 var_dump(base64_encode($result_2));
H A Dmb_strtolower_variation3.phpt28 var_dump(base64_encode($a));
37 var_dump(base64_encode($b));
H A Dmb_strtoupper_variation3.phpt29 var_dump(base64_encode($a));
38 var_dump(base64_encode($b));
H A Dmb_substr_variation4.phpt39 var_dump(base64_encode($a));
43 var_dump(base64_encode($b));
H A Dmb_substr_variation5.phpt40 var_dump(base64_encode($a));
44 var_dump(base64_encode($b));
/PHP-7.1/ext/imap/tests/
H A Dimap_base64_basic.phpt17 $base64 = base64_encode($str);
25 $base64 = base64_encode($str);
33 $base64 = base64_encode($hex);
H A Dbug77153.phpt12 $payloadb64 = base64_encode($payload);
/PHP-7.1/ext/openssl/tests/
H A Dbug73478.phpt16 printf("Private key:\n%s\n", base64_encode($data['dh']['priv_key']));
17 printf("Public key:\n%s\n", base64_encode($data['dh']['pub_key']));
H A Dbug41033.phpt16 echo "Signature: ".base64_encode($signature) . "\n";
/PHP-7.1/ext/standard/
H A Dbase64.h25 PHP_FUNCTION(base64_encode);
/PHP-7.1/ext/standard/tests/general_functions/
H A D007.phpt6 $res = md5(base64_decode(base64_encode($str)))."\n";
/PHP-7.1/ext/standard/tests/strings/
H A Dbug24312.phpt7 $enc = chunk_split(base64_encode($data), 10, chr($i));
/PHP-7.1/ext/session/tests/
H A Dsession_encode_variation7.phpt23 var_dump(base64_encode($encoded));
H A Dsession_encode_variation8.phpt23 var_dump(base64_encode($encoded));
/PHP-7.1/ext/pdo_firebird/tests/
H A Dbug_73087.phpt15 'content' => base64_encode(random_bytes(10))
/PHP-7.1/Zend/tests/
H A Drequire_parse_exception.phpt10 require 'data://text/plain;base64,' . base64_encode($code);

Completed in 30 milliseconds

12