Home
last modified time | relevance | path

Searched refs:enc (Results 1 – 25 of 96) sorted by path

1234

/php-src/ext/fileinfo/tests/
H A Dmagic951 # ?/enc-isoff-generic
5097 >12 belong 23 8-bit ISDN mu-law compressed (CCITT G.721 ADPCM voice enc.),
5135 >12 lelong 23 8-bit ISDN mu-law compressed (CCITT G.721 ADPCM voice enc.),
36300 # OpenSSL enc file (recognized by a magic string preceding the password's salt)
36301 0 string Salted__ openssl enc'd data with salted password
36303 0 string U2FsdGVkX1 openssl enc'd data with salted password, base64 encoded
H A Dmagic私はガラスを食べられます951 # ?/enc-isoff-generic
5097 >12 belong 23 8-bit ISDN mu-law compressed (CCITT G.721 ADPCM voice enc.),
5135 >12 lelong 23 8-bit ISDN mu-law compressed (CCITT G.721 ADPCM voice enc.),
36300 # OpenSSL enc file (recognized by a magic string preceding the password's salt)
36301 0 string Salted__ openssl enc'd data with salted password
36303 0 string U2FsdGVkX1 openssl enc'd data with salted password, base64 encoded
/php-src/ext/filter/
H A Dsanitizing_filters.c171 unsigned char enc[256] = {0}; in php_filter_string() local
181 enc['\''] = enc['"'] = 1; in php_filter_string()
184 enc['&'] = 1; in php_filter_string()
187 memset(enc, 1, 32); in php_filter_string()
190 memset(enc + 127, 1, sizeof(enc) - 127); in php_filter_string()
229 enc['\''] = enc['"'] = enc['<'] = enc['>'] = enc['&'] = enc[0] = 1; in php_filter_special_chars()
232 memset(enc, 1, 32); in php_filter_special_chars()
235 memset(enc + 127, 1, sizeof(enc) - 127); in php_filter_special_chars()
271 enc['&'] = 1; in php_filter_unsafe_raw()
274 memset(enc, 1, 32); in php_filter_unsafe_raw()
[all …]
/php-src/ext/iconv/
H A Diconv.c567 cd = iconv_open(GENERIC_SUPERSET_NAME, enc); in _php_iconv_strlen()
642 err = _php_iconv_strlen(&total_len, str, nbytes, enc); in _php_iconv_substr()
674 cd1 = iconv_open(GENERIC_SUPERSET_NAME, enc); in _php_iconv_substr()
701 cd2 = iconv_open(enc, GENERIC_SUPERSET_NAME); in _php_iconv_substr()
757 size_t offset, const char *enc, bool reverse) in _php_iconv_strpos() argument
783 err = php_iconv_string(ndl, ndl_nbytes, &ndl_buf, GENERIC_SUPERSET_NAME, enc); in _php_iconv_strpos()
792 cd = iconv_open(GENERIC_SUPERSET_NAME, enc); in _php_iconv_strpos()
946 cd_pl = iconv_open(ICONV_ASCII_ENCODING, enc); in _php_iconv_mime_encode()
956 cd = iconv_open(out_charset, enc); in _php_iconv_mime_encode()
1216 cd_pl = iconv_open(enc, ICONV_ASCII_ENCODING); in _php_iconv_mime_decode()
[all …]
/php-src/ext/intl/converter/
H A Dconverter.c367 const char *enc, size_t enc_len) { in php_converter_set_encoding() argument
369 UConverter *cnv = ucnv_open(enc, &error); in php_converter_set_encoding()
403 char *enc; in php_converter_do_set_encoding() local
406 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s", &enc, &enc_len) == FAILURE) { in php_converter_do_set_encoding()
411 RETURN_BOOL(php_converter_set_encoding(objval, pcnv, enc, enc_len)); in php_converter_do_set_encoding()
/php-src/ext/libxml/
H A Dlibxml.c486 php_libxml_input_buffer_create_filename(const char *URI, xmlCharEncoding enc) in php_libxml_input_buffer_create_filename() argument
505 if (enc == XML_CHAR_ENCODING_NONE) { in php_libxml_input_buffer_create_filename()
509 enc = xmlParseCharEncoding(ZSTR_VAL(charset)); in php_libxml_input_buffer_create_filename()
510 if (enc <= XML_CHAR_ENCODING_NONE) { in php_libxml_input_buffer_create_filename()
511 enc = XML_CHAR_ENCODING_NONE; in php_libxml_input_buffer_create_filename()
518 ret = xmlAllocParserInputBuffer(enc); in php_libxml_input_buffer_create_filename()
751 xmlCharEncoding enc = XML_CHAR_ENCODING_NONE; in _php_libxml_external_entity_loader() local
752 xmlParserInputBufferPtr pib = xmlAllocParserInputBuffer(enc); in _php_libxml_external_entity_loader()
763 ret = xmlNewIOInputStream(context, pib, enc); in _php_libxml_external_entity_loader()
/php-src/ext/mbstring/libmbfl/mbfl/
H A Dmbfl_encoding.h261 static inline zend_string* mb_convert_buf_result(mb_convert_buf *buf, const mbfl_encoding *enc) in mb_convert_buf_result() argument
264 if (enc == &mbfl_encoding_utf8 && buf->error_mode != MBFL_OUTPUTFILTER_ILLEGAL_MODE_BADUTF8) { in mb_convert_buf_result()
/php-src/ext/mbstring/
H A Dmbstring.c1649 if (!enc) { in PHP_FUNCTION()
1850 if (!enc) { in PHP_FUNCTION()
1981 if (!enc) { in PHP_FUNCTION()
2010 if (!enc) { in PHP_FUNCTION()
2040 if (!enc) { in PHP_FUNCTION()
2071 if (!enc) { in PHP_FUNCTION()
2165 if (!enc) { in php_mb_strstr_variants()
3231 array[j].enc = enc; in init_candidate_array()
3263 const mbfl_encoding *enc = array[i].enc; in start_string() local
3304 const mbfl_encoding *enc = array[i].enc; in count_demerits() local
[all …]
H A Dmbstring.h56 … char *php_mb_safe_strrchr(const char *s, unsigned int c, size_t nbytes, const mbfl_encoding *enc);
65 MBSTRING_API size_t php_mb_mbchar_bytes(const char *s, const mbfl_encoding *enc);
67 …bool mode, zend_string *haystack, zend_string *needle, zend_long offset, const mbfl_encoding *enc);
H A Dphp_mbregex.c461 OnigEncoding enc = MBREX(current_mbctype); in php_mbregex_compile_pattern() local
465 "Pattern is not valid under %s encoding", _php_mb_regex_mbctype2name(enc)); in php_mbregex_compile_pattern()
714 const mbfl_encoding *enc in mb_regex_substitute() argument
724 clen = (int) php_mb_mbchar_bytes(p, enc); in mb_regex_substitute()
732 clen = (int) php_mb_mbchar_bytes(++p, enc); in mb_regex_substitute()
762 clen = (int) php_mb_mbchar_bytes(++p, enc); in mb_regex_substitute()
775 clen = (int) php_mb_mbchar_bytes(name_end, enc); in mb_regex_substitute()
1007 const mbfl_encoding *enc = php_mb_regex_get_mbctype_encoding(); in _php_mb_regex_ereg_replace_exec() local
1008 ZEND_ASSERT(enc != NULL); in _php_mb_regex_ereg_replace_exec()
1032 if (!php_mb_check_encoding(string, string_len, enc)) { in _php_mb_regex_ereg_replace_exec()
[all …]
H A Dphp_mbregex.h39 int php_mb_regex_set_mbctype(const char *enc);
H A Dphp_unicode.c130 if (UNEXPECTED(enc == &mbfl_encoding_8859_9 && code == 0x69)) { in php_unicode_toupper_raw()
152 if (UNEXPECTED(enc == &mbfl_encoding_8859_9 && code == 0x0049L)) { in php_unicode_tolower_raw()
161 if (UNEXPECTED(enc == &mbfl_encoding_8859_9 && code == 0x130)) { in php_unicode_tolower_raw()
178 return php_unicode_toupper_raw(code, enc); in php_unicode_totitle_raw()
181 static unsigned php_unicode_tofold_raw(unsigned code, const mbfl_encoding *enc) in php_unicode_tofold_raw() argument
186 if (UNEXPECTED(enc == &mbfl_encoding_8859_9 && code == 0x49)) { in php_unicode_tofold_raw()
195 if (UNEXPECTED(enc == &mbfl_encoding_8859_9 && code == 0x130)) { in php_unicode_tofold_raw()
205 code = php_unicode_tolower_raw(code, enc); in php_unicode_tolower_simple()
212 code = php_unicode_toupper_raw(code, enc); in php_unicode_toupper_simple()
219 code = php_unicode_totitle_raw(code, enc); in php_unicode_totitle_simple()
[all …]
/php-src/ext/mbstring/tests/
H A Dbug30549.phpt11 function test($enc, $map) {
12 print "$enc\n";
15 $ustr = mb_convert_encoding(pack('C', $fromc), 'UCS-4BE', $enc);
H A Dbug77454.phpt8 function test($str, $enc) {
9 echo str_replace("\0", '\0', mb_scrub($str, $enc)), "\n";
H A Dillformed_utf_sequences.phpt7 function chk_enc($str, $n, $enc = "UTF-8") {
8 $src = bin2hex(mb_convert_encoding($str, "UCS-4BE", $enc));
H A Dmb_ereg.phpt23 function do_tests( $enc ) {
24 test_ereg( $enc, 'abc ([a-z]+) ([a-z]+) ([a-z]+)$', "abc def ghi jkl" );
26 test_ereg( $enc, $pat, '���� ������ ������ ����' );
27 test_ereg( $enc, $pat, '�������� ������ ���� ���' );
30 foreach( $encs as $enc ) {
31 do_tests( $enc );
H A Dmb_ereg_search_xxx.phpt28 function do_tests( $enc, $opt ) {
29 test_search( $enc, "�ϡ� ����\n", ' (��?�ϡ�?)[[:space:]]', $opt );
30 test_search( $enc, 'abcde abdeabcf anvfabc odu abcd ', '(ab[a-z]+)', $opt );
33 foreach( $encs as $enc ) {
34 do_tests( $enc, '' );
35 do_tests( $enc, 'x' );
H A Dmb_http_output.phpt14 $enc = mb_http_output();
15 print "$enc\n";
20 $enc = mb_http_output();
21 print "$enc\n";
26 $enc = mb_http_output();
27 print "$enc\n";
32 $enc = mb_http_output();
33 print "$enc\n";
38 $enc = mb_http_output();
39 print "$enc\n";
[all …]
H A Dmb_internal_encoding.phpt14 $enc = mb_internal_encoding();
15 print "$enc\n";
20 $enc = mb_internal_encoding();
21 print "$enc\n";
26 $enc = mb_internal_encoding();
27 print "$enc\n";
40 $enc = mb_internal_encoding();
41 print "$enc\n";
H A Dmb_internal_encoding_variation2.phpt69 foreach($encoding as $enc) {
72 var_dump(mb_internal_encoding($enc));
H A Dmb_regex_encoding_variation2.phpt77 foreach($encoding as $enc) {
81 var_dump(mb_regex_encoding($enc));
H A Dmb_str_split_jp.phpt35 $enc = mb_convert_encoding($string, $cs, "UTF-8");
36 $split = mb_str_split($enc, 1, $cs);
41 $cnt = count(mb_str_split($enc,$i,$cs));
58 $enc = mb_convert_encoding($long, "ISO-2022-JP", "UTF-8");
59 $array = mb_str_split($enc, $len, "ISO-2022-JP");
66 $enc = mb_convert_encoding($string, "ISO-2022-JP", "UTF-8");
67 if(end($array) !== $enc){
69 last array element: %s expected: %s\n", unpack("H*", end($array))[1],unpack("H*", $enc)[1]);
H A Dmb_str_split_ru.phpt27 $enc = mb_convert_encoding($string, $cs, "UTF-8");
28 $split = mb_str_split($enc, 1, $cs);
34 $cnt = count(mb_str_split($enc,$i,$cs));
51 $enc = mb_convert_encoding($long, "EUC-JP", "UTF-8");
52 $array = mb_str_split($enc, $len, "EUC-JP");
59 $enc = mb_convert_encoding($string, "EUC-JP", "UTF-8");
60 if(end($array) !== $enc){
62 last array element: %s expected: %s\n", unpack("H*", end($array))[1],unpack("H*", $enc)[1]);
H A Dmb_strlen_variation3.phpt78 foreach($encoding as $enc) {
79 echo "\n-- Iteration $iterator: $enc --\n";
82 if(mb_strlen($string_ascii, $enc)) {
83 echo "Encoding $enc recognised\n";
85 echo "Encoding $enc not recognised\n";
89 if(mb_strlen($string_mb, $enc)){
90 echo "Encoding $enc recognised\n";
92 echo "Encoding $enc not recognised\n";
/php-src/ext/openssl/
H A Dopenssl.c7540 const char *tag, int tag_len, zend_long options, int enc) /* {{{ */ in php_openssl_cipher_init() argument
7549 if (enc && *piv_len == 0 && max_iv_len > 0 && !mode->is_aead) { in php_openssl_cipher_init()
7554 if (!EVP_CipherInit_ex(cipher_ctx, cipher_type, NULL, NULL, NULL, enc)) { in php_openssl_cipher_init()
7561 if (mode->set_tag_length_always || (enc && mode->set_tag_length_when_encrypting)) { in php_openssl_cipher_init()
7567 if (!enc && tag && tag_len > 0) { in php_openssl_cipher_init()
7597 if (!EVP_CipherInit_ex(cipher_ctx, NULL, NULL, key, (unsigned char *)*piv, enc)) { in php_openssl_cipher_init()
7612 const char *aad, size_t aad_len, int enc) /* {{{ */ in php_openssl_cipher_update() argument

Completed in 236 milliseconds

1234