????JFIF??x?x????'
Server IP : 79.136.114.73 / Your IP : 3.145.15.34 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/date/tests/ |
Upload File : |
--TEST-- Test wrong number of arguments for microtime() --FILE-- <?php /* * proto mixed microtime([bool get_as_float]) * Function is implemented in ext/standard/microtime.c */ $opt_arg_0 = true; $extra_arg = 1; echo "\n-- Too many arguments --\n"; var_dump(microtime($opt_arg_0, $extra_arg)); echo "\n-- Bad Arg types --\n"; $bad_args = array(null, 1.5, "hello", array('k'=>'v', array(0)), new stdClass, 1); foreach ($bad_args as $bad_arg) { echo "\n--> bad arg: "; var_dump($bad_arg); var_dump(microtime($bad_arg)); } ?> ===DONE=== --EXPECTF-- -- Too many arguments -- Warning: microtime() expects at most 1 parameter, 2 given in %s on line 11 NULL -- Bad Arg types -- --> bad arg: NULL string(%d) "%s %s" --> bad arg: float(1.5) float(%s) --> bad arg: string(5) "hello" float(%s) --> bad arg: array(2) { ["k"]=> string(1) "v" [0]=> array(1) { [0]=> int(0) } } Warning: microtime() expects parameter 1 to be boolean, array given in %s on line 25 NULL --> bad arg: object(stdClass)#%d (0) { } Warning: microtime() expects parameter 1 to be boolean, object given in %s on line 25 NULL --> bad arg: int(1) float(%s) ===DONE===