Home
last modified time | relevance | path

Searched refs:mb_check_encoding (Results 1 – 20 of 20) sorted by relevance

/php-src/ext/mbstring/tests/
H A Dmb_check_encoding_invalid_encodings.phpt2 mb_check_encoding() with invalid encodings
13 var_dump(mb_check_encoding($str, 'BAD'));
18 var_dump(mb_check_encoding($arr, 'BAD'));
25 var_dump(mb_check_encoding($str, 'pass'));
30 var_dump(mb_check_encoding($arr, 'pass'));
38 mb_check_encoding(): Argument #2 ($encoding) must be a valid encoding, "BAD" given
39 mb_check_encoding(): Argument #2 ($encoding) must be a valid encoding, "BAD" given
41 mb_check_encoding(): Argument #2 ($encoding) must be a valid encoding, "pass" given
42 mb_check_encoding(): Argument #2 ($encoding) must be a valid encoding, "pass" given
H A Dmb_check_encoding.phpt2 mb_check_encoding()
11 var_dump(mb_check_encoding($str), mb_check_encoding($arr));
17 var_dump(mb_check_encoding($str), mb_check_encoding($arr1), mb_check_encoding($arr2));
H A Dmb_check_encoding_array.phpt2 mb_check_encoding() - Circular references
13 var_dump(mb_check_encoding($str), mb_check_encoding($arr));
23 var_dump(mb_check_encoding($str), mb_check_encoding($arr1), mb_check_encoding($arr2));
26 Warning: mb_check_encoding(): Cannot not handle circular references in %s on line %d
H A Dmb_check_encoding_without_arg.phpt2 Calling mb_check_encoding() without argument is deprecated
8 var_dump(mb_check_encoding());
12 Deprecated: mb_check_encoding(): Calling mb_check_encoding() without argument is deprecated in %s o…
H A Dbug45722.phpt2 Bug #45722 (mb_check_encoding() crashes)
7 var_dump(mb_check_encoding("&\xc2\xb7 TEST TEST TEST TEST TEST TEST", "HTML-ENTITIES"));
10 Deprecated: mb_check_encoding(): Handling HTML entities via mbstring is deprecated; use htmlspecial…
H A Dbug81693.phpt2 Bug #81693 (mb_check_encoding(7bit) segfaults)
7 var_dump(mb_check_encoding('Hello world', '7bit'));
H A Dbug77165.phpt2 Bug #77165: mb_check_encoding crashes when argument given an empty array
7 var_dump(mb_check_encoding(array()));
H A Dbug78609.phpt2 Bug #78609 (mb_check_encoding() no longer supports stringable objects)
15 var_dump(mb_check_encoding(new Foo, 'UTF-8'));
H A Dmb_scrub.phpt15 if (!mb_check_encoding($utf8str, 'UTF-8'))
H A Dgh10648.phpt2 GH-10648 (mb_check_encoding() returns true for incorrect but interpretable ISO-2022-JP byte sequenc…
26 var_dump(mb_check_encoding(hex2bin($case), 'JIS'));
30 var_dump(mb_check_encoding(hex2bin($case), 'ISO-2022-JP'));
H A Dmb_strlen.phpt84 mb_check_encoding($utf8);
85 mb_check_encoding($long_utf8);
90 mb_check_encoding($str, 'UTF-8');
H A Dother_encodings.phpt17 var_dump(mb_check_encoding(chr(255), '7bit'));
H A Dencoding_tests.inc71 if (mb_check_encoding($str, 'ASCII'))
77 $result = mb_check_encoding($goodString, $encoding);
79 … echo "mb_check_encoding failed on good $encoding string: " . dbgPrint($goodString) . PHP_EOL;
85 $result = mb_check_encoding($badString, $encoding);
87 echo "mb_check_encoding passed on bad $encoding string: " . dbgPrint($badString) . PHP_EOL;
H A Dgh10192_utf7imap.phpt57 var_dump(mb_check_encoding($case, 'UTF7-IMAP'));
H A Dgh10192_utf7.phpt69 var_dump(mb_check_encoding($case, 'UTF-7'));
H A Dmb_detect_encoding.phpt156 if (mb_check_encoding($str, $encoding))
H A Dutf_encodings.phpt826 if (mb_check_encoding($trunc, 'UTF-8'))
/php-src/ext/mbstring/
H A Dmbstring_arginfo.h341 ZEND_FUNCTION(mb_check_encoding);
410 ZEND_FE(mb_check_encoding, arginfo_mb_check_encoding)
H A Dmbstring.stub.php188 function mb_check_encoding(array|string|null $value = null, ?string $encoding = null): bool {} function
H A Dmbstring.c5623 PHP_FUNCTION(mb_check_encoding) in PHP_FUNCTION() argument

Completed in 40 milliseconds