Home
last modified time | relevance | path

Searched refs:encoding (Results 26 – 50 of 1096) sorted by relevance

12345678910>>...44

/php-src/ext/iconv/tests/
H A Diconv_strrpos_error2.phpt2 Test iconv_strrpos() function : error conditions - pass an unknown encoding
8 * Pass iconv_strrpos() an encoding that doesn't exist
16 $encoding = 'unknown-encoding';
18 var_dump(iconv_strrpos($haystack, $needle , $encoding));
25 Warning: iconv_strrpos(): Wrong encoding, conversion from "unknown-encoding" to "UCS-4LE" is not al…
H A Diconv_substr_error2.phpt2 Test iconv_substr() function : error conditions - Pass an unknown encoding
8 * Pass an unknown encoding to iconv_substr() to test behaviour
16 $encoding = 'unknown-encoding';
18 var_dump( iconv_substr($str, $start, $length, $encoding));
25 Warning: iconv_substr(): Wrong encoding, conversion from "unknown-encoding" to "UCS-4LE" is not all…
/php-src/ext/mbstring/tests/
H A Dmb_internal_encoding_error2.phpt2 Test mb_internal_encoding() function : error conditions - pass an unknown encoding
8 * Pass mb_internal_encoding an unknown encoding
14 var_dump(mb_internal_encoding('unknown-encoding'));
22 mb_internal_encoding(): Argument #1 ($encoding) must be a valid encoding, "unknown-encoding" given
H A Dmb_detect_order_empty_encoding_list.phpt2 Test mb_detect_order() function : empty encoding list
21 mb_detect_order(): Argument #1 ($encoding) must specify at least one encoding
22 mb_detect_order(): Argument #1 ($encoding) must specify at least one encoding
H A Dmb_chr.phpt54 mb_chr(): Argument #2 ($encoding) must be a valid encoding, "typo" given
55 mb_chr(): Argument #2 ($encoding) must be a valid encoding, "pass" given
56 mb_chr() does not support the "JIS" encoding
57 mb_chr() does not support the "CP50222" encoding
58 mb_chr() does not support the "UTF-7" encoding
59 mb_chr() does not support the "UTF-7" encoding
H A Dmb_convert_variables.phpt26 print("$encoding\n"); // SJIS
31 print("$encoding\n"); // JIS
36 print("$encoding\n"); // EUC-JP
41 print("$encoding\n"); // EUC-JP
49 print("$encoding\n"); // EUC-JP
57 print("$encoding\n"); // EUC-JP
63 print("$encoding\n"); // EUC-JP
103 print("$encoding\n"); // EUC-JP
109 print("$encoding\n"); // EUC-JP
123 print("$encoding\n"); // EUC-JP
[all …]
H A Dmb_ord.phpt60 mb_ord(): Argument #2 ($encoding) must be a valid encoding, "typo" given
61 mb_ord(): Argument #2 ($encoding) must be a valid encoding, "pass" given
62 mb_ord() does not support the "JIS" encoding
63 mb_ord() does not support the "CP50222" encoding
64 mb_ord() does not support the "UTF-7" encoding
65 mb_ord() does not support the "UTF-7" encoding
H A Dmb_http_output.phpt7 //TODO: Add more encoding. Wrong parameter type test.
11 // Set HTTP output encoding to ASCII
17 // Set HTTP output encoding to SJIS
23 // Set HTTP output encoding to JIS
29 // Set HTTP output encoding to UTF8
35 // Set HTTP output encoding to EUC-JP
67 mb_http_output(): Argument #1 ($encoding) must be a valid encoding, "BAD_NAME" given
H A Dbug76704.phpt19 mb_detect_order(): Argument #1 ($encoding) contains invalid encoding "Foo"
20 mb_detect_order(): Argument #1 ($encoding) contains invalid encoding "Foo"
/php-src/Zend/tests/
H A Ddeclare_001.phpt10 declare(encoding = 1);
11 declare(encoding = 112313123213131232100);
12 declare(encoding = 'utf-8');
13 declare(encoding = M_PI);
19 Warning: Unsupported encoding [1] in %sdeclare_001.php on line %d
21 Warning: Unsupported encoding [1.1231312321313E+20] in %sdeclare_001.php on line %d
H A Ddeclare_002.phpt10 declare(encoding = 1);
11 declare(encoding = 1123131232131312321);
12 declare(encoding = 'utf-8');
13 declare(encoding = M_PI);
19 Warning: Unsupported encoding [%d] in %sdeclare_002.php on line 3
21 Warning: Unsupported encoding [%f] in %sdeclare_002.php on line 4
H A Ddeclare_004.phpt8 declare(encoding = 1);
9 declare(encoding = 1123131232131312321);
10 declare(encoding = M_PI);
16 Warning: Unsupported encoding [%d] in %sdeclare_004.php on line 3
18 Warning: Unsupported encoding [%f] in %sdeclare_004.php on line 4
H A Ddeclare_003.phpt9 declare(encoding = 1);
10 declare(encoding = 11111111111111);
11 declare(encoding = M_PI);
17 Warning: Unsupported encoding [1] in %sdeclare_003.php on line %d
19 Warning: Unsupported encoding [11111111111111] in %sdeclare_003.php on line %d
/php-src/ext/iconv/
H A Diconv.stub.php26 function iconv_strlen(string $string, ?string $encoding = null): int|false {} argument
29 function iconv_substr(string $string, int $offset, ?int $length = null, ?string $encoding = null): … argument
31 function iconv_strpos(string $haystack, string $needle, int $offset = 0, ?string $encoding = null):… argument
33 function iconv_strrpos(string $haystack, string $needle, ?string $encoding = null): int|false {} argument
39 function iconv_mime_decode(string $string, int $mode = 0, ?string $encoding = null): string|false {} argument
45 function iconv_mime_decode_headers(string $headers, int $mode = 0, ?string $encoding = null): array… argument
50 function iconv_set_encoding(string $type, string $encoding): bool {} argument
/php-src/ext/soap/tests/
H A Dsetheaders.phpt27 <?xml version="1.0" encoding="UTF-8"?>
28 …P-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.o…
29 <?xml version="1.0" encoding="UTF-8"?>
30 …P-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.o…
31 <?xml version="1.0" encoding="UTF-8"?>
32 …P-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.o…
33 <?xml version="1.0" encoding="UTF-8"?>
34 …P-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.o…
35 <?xml version="1.0" encoding="UTF-8"?>
36 …P-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.o…
[all …]
/php-src/ext/dom/
H A Dxml_document.c93 const char *encoding = "UTF-8"; in PHP_METHOD() local
95 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "|sp", &version, &version_len, &encoding, &encoding_len… in PHP_METHOD()
99 xmlCharEncodingHandlerPtr handler = xmlFindCharEncodingHandler(encoding); in PHP_METHOD()
113 lxml_doc->encoding = xmlStrdup((const xmlChar *) encoding); in PHP_METHOD()
167 xmlCharEncodingHandlerPtr encoding = NULL; in load_from_helper() local
169 encoding = xmlFindCharEncodingHandler(override_encoding); in load_from_helper()
170 if (!encoding) { in load_from_helper()
177 xmlDocPtr lxml_doc = dom_document_parser(NULL, mode, source, source_len, options, encoding); in load_from_helper()
192 if (lxml_doc->encoding == NULL) { in load_from_helper()
194 lxml_doc->encoding = xmlStrdup((const xmlChar *) override_encoding); in load_from_helper()
[all …]
/php-src/ext/dom/tests/modern/spec/
H A Dxml_serialize_formatting.phpt34 <?xml version="1.0" encoding="UTF-8"?>
37 <?xml version="1.0" encoding="UTF-8"?>
40 <?xml version="1.0" encoding="UTF-8"?>
46 <?xml version="1.0" encoding="UTF-8"?>
53 <?xml version="1.0" encoding="UTF-8"?>
56 <?xml version="1.0" encoding="UTF-8"?>
67 <?xml version="1.0" encoding="UTF-8"?>
/php-src/ext/soap/tests/bugs/
H A Dbug36908.phpt15 '<?xml version="1.0" encoding="UTF-8"?>
21 …xmlns:ns1="urn:PublisherService" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
24 <multiRef xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
26 soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
31 xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" id="id5"
33 soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
43 <?xml version="1.0" encoding="UTF-8"?>
44 …P-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.o…
H A Dbug47273.phpt8 <?xml version="1.0" encoding="UTF-8"?>
9 …P-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.o…
12 <?xml version="1.0" encoding="UTF-8"?>
13 …P-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.o…
31 'encoding' => 'ISO-8859-1'));
46 <?xml version="1.0" encoding="UTF-8"?>
47 …P-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.o…
48 <?xml version="1.0" encoding="UTF-8"?>
/php-src/Zend/
H A Dzend_multibyte.c31 static const char *dummy_encoding_name_getter(const zend_encoding *encoding) in dummy_encoding_name_getter() argument
33 return (const char*)encoding; in dummy_encoding_name_getter()
36 static bool dummy_encoding_lexer_compatibility_checker(const zend_encoding *encoding) in dummy_encoding_lexer_compatibility_checker() argument
63 static zend_result dummy_internal_encoding_setter(const zend_encoding *encoding) in dummy_internal_encoding_setter() argument
138 ZEND_API const char *zend_multibyte_get_encoding_name(const zend_encoding *encoding) in zend_multibyte_get_encoding_name() argument
140 return multibyte_functions.encoding_name_getter(encoding); in zend_multibyte_get_encoding_name()
143 ZEND_API int zend_multibyte_check_lexer_compatibility(const zend_encoding *encoding) in zend_multibyte_check_lexer_compatibility() argument
145 return multibyte_functions.lexer_compatibility_checker(encoding); in zend_multibyte_check_lexer_compatibility()
183 ZEND_API zend_result zend_multibyte_set_internal_encoding(const zend_encoding *encoding) in zend_multibyte_set_internal_encoding() argument
185 return multibyte_functions.internal_encoding_setter(encoding); in zend_multibyte_set_internal_encoding()
/php-src/ext/dom/tests/
H A DDOMEntity_fields.phpt38 echo "encoding: ";
39 var_dump($entity->encoding);
51 encoding: NULL
59 encoding: NULL
67 encoding: NULL
75 encoding: NULL
83 encoding: NULL
91 encoding: NULL
99 encoding: NULL
/php-src/ext/dom/tests/modern/html/encoding/
H A DHTMLDocument_createFromFile_override_encoding.phpt14 // The override encoding matches with the document encoding attribute
19 // The override encoding mismatches with the document encoding attribute
26 …M\HTMLDocument::createFromFile(): Argument #3 ($overrideEncoding) must be a valid document encoding
H A DHTMLDocument_createFromString_override_encoding.phpt14 // The override encoding matches with the document encoding attribute
19 // The override encoding mismatches with the document encoding attribute
26 …HTMLDocument::createFromString(): Argument #3 ($overrideEncoding) must be a valid document encoding
/php-src/ext/dom/tests/modern/xml/
H A DXMLDocument_createFromFile_override_encoding.phpt14 // The override encoding matches with the document encoding attribute
19 // The override encoding mismatches with the document encoding attribute
26 DOM\XMLDocument::createFromFile(): Argument #3 ($overrideEncoding) must be a valid document encoding
H A DXMLDocument_createFromString_override_encoding.phpt14 // The override encoding matches with the document encoding attribute
19 // The override encoding mismatches with the document encoding attribute
26 …\XMLDocument::createFromString(): Argument #3 ($overrideEncoding) must be a valid document encoding

Completed in 39 milliseconds

12345678910>>...44