????JFIF??x?x????'
Server IP : 79.136.114.73 / Your IP : 3.133.113.101 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_strcut() missing boundary check. --SKIPIF-- <?php extension_loaded('mbstring') or die('skip'); function_exists('mb_convert_encoding') or die("skip mb_convert_encoding() is not available in this build"); ?> --FILE-- <?php mb_internal_encoding("UCS-4LE"); var_dump(bin2hex(mb_strcut("\x61\x00\x00\x00\x62\x00\x00\x00\x63\x00\x00\x00", 0, 32))); mb_internal_encoding("UCS-4BE"); var_dump(bin2hex(mb_strcut("\x00\x00\x00\x61\x00\x00\x00\x62\x00\x00\x00\x63", 0, 32))); mb_internal_encoding("UCS-2LE"); var_dump(bin2hex(mb_strcut("\x61\x00\x62\x00\x63\x00", 0, 32))); mb_internal_encoding("UCS-2BE"); var_dump(bin2hex(mb_strcut("\x00\x61\x00\x62\x00\x63", 0, 32))); mb_internal_encoding("UTF-16"); var_dump(bin2hex(mb_strcut("\x00\x61\x00\x62\x00\x63", 0, 32))); mb_internal_encoding("UTF-8"); var_dump(bin2hex(mb_strcut("abc", 0, 32))); mb_internal_encoding("ISO-8859-1"); var_dump(bin2hex(mb_strcut("abc", 0, 32))); --EXPECT-- string(24) "610000006200000063000000" string(24) "000000610000006200000063" string(12) "610062006300" string(12) "006100620063" string(12) "006100620063" string(6) "616263" string(6) "616263"