????JFIF??x?x????'
Server IP : 79.136.114.73 / Your IP : 3.137.222.228 Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64 User : www-data ( 33) PHP Version : 5.5.9-1ubuntu4.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/self/root/home/b8009/php-5.6.22/ext/mbstring/tests/ |
Upload File : |
--TEST-- mb_detect_order() --SKIPIF-- <?php extension_loaded('mbstring') or die('skip mbstring not available'); ?> --INI-- mbstring.language=Japanese --FILE-- <?php //$debug = true; ini_set('include_path', dirname(__FILE__)); include_once('common.inc'); // Set order to "auto" $r = mb_detect_order('auto'); ($r === TRUE) ? print "OK_AUTO\n" : print "NG_AUTO\n"; print implode(', ', mb_detect_order()) . "\n"; // Set order by string $r = mb_detect_order('SJIS,EUC-JP,JIS,UTF-8'); ($r === TRUE) ? print "OK_STR\n" : print "NG_STR\n"; print implode(', ', mb_detect_order()) . "\n"; // Set order by array $a[] = 'ASCII'; $a[] = 'JIS'; $a[] = 'EUC-JP'; $a[] = 'UTF-8'; $r = mb_detect_order($a); ($r === TRUE) ? print "OK_ARRAY\n" : print "NG_ARRAY\n"; print implode(', ', mb_detect_order()) . "\n"; // Set invalid encoding. Should fail. print "== INVALID PARAMETER ==\n"; $r = mb_detect_order('BAD_NAME'); ($r === FALSE) ? print "OK_BAD_STR\n" : print "NG_BAD_STR\n"; print implode(', ', mb_detect_order()) . "\n"; $a[] = 'BAD_NAME'; $r = mb_detect_order($a); ($r === FALSE) ? print "OK_BAD_ARRAY\n" : print "NG_BAD_ARRAY\n"; print implode(', ', mb_detect_order()) . "\n"; ?> --EXPECT-- OK_AUTO ASCII, JIS, UTF-8, EUC-JP, SJIS OK_STR SJIS, EUC-JP, JIS, UTF-8 OK_ARRAY ASCII, JIS, EUC-JP, UTF-8 == INVALID PARAMETER == OK_BAD_STR ASCII, JIS, EUC-JP, UTF-8 OK_BAD_ARRAY ASCII, JIS, EUC-JP, UTF-8