/php-src/ext/filter/ |
H A D | sanitizing_filters.c | 173 unsigned char enc[256] = {0}; in php_filter_string() local 183 enc['\''] = enc['"'] = 1; in php_filter_string() 186 enc['&'] = 1; in php_filter_string() 189 memset(enc, 1, 32); in php_filter_string() 192 memset(enc + 127, 1, sizeof(enc) - 127); in php_filter_string() 231 enc['\''] = enc['"'] = enc['<'] = enc['>'] = enc['&'] = enc[0] = 1; in php_filter_special_chars() 234 memset(enc, 1, 32); in php_filter_special_chars() 237 memset(enc + 127, 1, sizeof(enc) - 127); in php_filter_special_chars() 273 enc['&'] = 1; in php_filter_unsafe_raw() 276 memset(enc, 1, 32); in php_filter_unsafe_raw() [all …]
|
/php-src/ext/mbstring/tests/ |
H A D | mb_http_output.phpt | 14 $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 D | mb_internal_encoding.phpt | 14 $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 D | mb_ereg.phpt | 23 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 D | mb_str_split_ru.phpt | 27 $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 D | mb_ereg_search_xxx.phpt | 28 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 D | bug30549.phpt | 11 function test($enc, $map) { 12 print "$enc\n"; 15 $ustr = mb_convert_encoding(pack('C', $fromc), 'UCS-4BE', $enc);
|
H A D | bug77454.phpt | 8 function test($str, $enc) { 9 echo str_replace("\0", '\0', mb_scrub($str, $enc)), "\n";
|
/php-src/ext/standard/tests/strings/ |
H A D | uuencode.phpt | 6 var_dump($enc = convert_uuencode("")); 7 var_dump(convert_uudecode($enc)); 8 var_dump($enc = convert_uuencode("~!@#$%^&*()_}{POIUYTREWQQSDFGHJKL:<MNBVCXZ")); 10 var_dump(convert_uudecode($enc)); 11 var_dump($enc = convert_uuencode("not very sophisticated")); 12 var_dump(convert_uudecode($enc)); 14 var_dump(convert_uudecode(substr($enc, 0, -10)));
|
/php-src/ext/mbstring/ |
H A D | php_unicode.c | 130 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 …]
|
H A D | mbstring.c | 1654 if (!enc) { in PHP_FUNCTION() 1855 if (!enc) { in PHP_FUNCTION() 1986 if (!enc) { in PHP_FUNCTION() 2015 if (!enc) { in PHP_FUNCTION() 2045 if (!enc) { in PHP_FUNCTION() 2076 if (!enc) { in PHP_FUNCTION() 2170 if (!enc) { in php_mb_strstr_variants() 3246 array[j].enc = enc; in init_candidate_array() 3278 const mbfl_encoding *enc = array[i].enc; in start_string() local 3319 const mbfl_encoding *enc = array[i].enc; in count_demerits() local [all …]
|
/php-src/ext/soap/tests/bugs/ |
H A D | bug41566.phpt | 50 xmlns:enc="http://www.w3.org/2003/05/soap-encoding"> 65 …enc="http://www.w3.org/2003/05/soap-encoding" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/enco…
|
/php-src/ext/soap/ |
H A D | php_encoding.c | 581 if (enc != NULL && enc != encode) { in master_to_zval() 1446 while (enc && enc->details.sdl_type && in to_zval_object_ex() 1450 enc = enc->details.sdl_type->encode; in to_zval_object_ex() 1452 if (enc) { in to_zval_object_ex() 1865 while (enc && enc->details.sdl_type && in to_xml_object() 1869 enc = enc->details.sdl_type->encode; in to_xml_object() 1871 if (enc) { in to_xml_object() 2037 if (!enc) { in guess_array_map() 2853 if (enc && type == &enc->details) { in guess_zval_convert() 3051 if (enc->sdl_type && enc->sdl_type->kind == XSD_TYPEKIND_LIST && enc->sdl_type->elements) { in to_xml_list() [all …]
|
/php-src/win32/ |
H A D | codepage.c | 311 char *enc = NULL; in php_win32_cp_get_enc() local 315 enc = PG(internal_encoding); in php_win32_cp_get_enc() 317 enc = SG(default_charset); in php_win32_cp_get_enc() 325 return enc; in php_win32_cp_get_enc() 368 if (!enc || !enc[0]) { in php_win32_cp_get_by_enc() 372 enc_len = strlen(enc); in php_win32_cp_get_by_enc() 385 if (cp->enc) { in php_win32_cp_get_by_enc() 386 char *start = cp->enc, *idx; in php_win32_cp_get_by_enc() 499 if (!enc) { in php_win32_cp_do_setup() 500 enc = php_win32_cp_get_enc(); in php_win32_cp_do_setup() [all …]
|
H A D | cp_enc_map_gen.c | 8 char *enc; member 229 if (!cur->enc[0]) { in main() 239 …,\n", info.CodePage, to_w_fl, from_w_fl, info.MaxCharSize, cur->name, cur->enc, info.CodePageName); in main()
|
/php-src/ext/soap/tests/soap12/ |
H A D | T47.phpt | 17 <inputFloatArray enc:itemType="xsd:float" enc:arraySize="2" 18 xmlns:enc="http://www.w3.org/2003/05/soap-encoding"> 30 …enc="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance…
|
H A D | T48.phpt | 15 <inputStringArray enc:itemType="xsd:string" enc:arraySize="2" 16 xmlns:enc="http://www.w3.org/2003/05/soap-encoding"> 28 …enc="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance…
|
H A D | T50.phpt | 15 <inputIntegerArray enc:itemType="xsd:int" enc:arraySize="2" 16 xmlns:enc="http://www.w3.org/2003/05/soap-encoding"> 28 …enc="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance…
|
H A D | T49.phpt | 15 <inputStringArray enc:arraySize="2" 16 xmlns:enc="http://www.w3.org/2003/05/soap-encoding"> 28 …enc="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance…
|
H A D | T59.phpt | 15 <inputStringArray enc:itemType="xsd:string" 16 xmlns:enc="http://www.w3.org/2003/05/soap-encoding"> 17 <item enc:id="data" xsi:type="xsd:string" enc:ref="#data">hello</item>
|
H A D | T42.phpt | 17 <inputStructArray enc:itemType="ns1:SOAPStruct" 18 enc:arraySize="2" 20 xmlns:enc="http://www.w3.org/2003/05/soap-encoding"> 40 …enc="http://www.w3.org/2003/05/soap-encoding" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:x…
|
H A D | T46.phpt | 20 <varArray enc:itemType="xsd:string" enc:arraySize="3" 21 xmlns:enc="http://www.w3.org/2003/05/soap-encoding"> 35 …enc="http://www.w3.org/2003/05/soap-encoding" xmlns:ns2="http://example.org/ts-tests/xsd"><env:Bod…
|
H A D | T60.phpt | 14 xmlns:enc="http://www.w3.org/2003/05/soap-encoding" 16 <inputStringArray enc:itemType="xsd:string" enc:arraySize="*"> 28 …001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:enc="http://www.w3.org/…
|
H A D | T57.phpt | 12 xmlns:enc="http://www.w3.org/2003/05/soap-encoding"> 16 <test:Data enc:id="data" xsi:type="xsd:string">hello world</test:Data> 22 <test:inputString enc:ref="#data" xsi:type="xsd:string" /> 31 …001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:enc="http://www.w3.org/…
|
H A D | T76_2.phpt | 12 xmlns:enc="http://www.w3.org/2003/05/soap-encoding"> 16 <test:Data enc:id="data" xsi:type="xsd:string">hello world</test:Data> 22 <inputString enc:ref="data" xsi:type="xsd:string" /> 31 …001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:enc="http://www.w3.org/…
|