????JFIF??x?x????'403WebShell
403Webshell
Server IP : 79.136.114.73  /  Your IP : 3.145.163.51
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/standard/tests/math/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/self/root/home/b8009/php-5.6.22/ext/standard/tests/math/pow.phpt
--TEST--
Various pow() tests
--FILE--
<?php // $Id$

define('LONG_MAX', is_int(5000000000)? 9223372036854775807 : 0x7FFFFFFF);
define('LONG_MIN', -LONG_MAX - 1);
printf("%d,%d,%d,%d\n",is_int(LONG_MIN  ),is_int(LONG_MAX  ),
					   is_int(LONG_MIN-1),is_int(LONG_MAX+1));

$tests = <<<TESTS
 0.25 === pow(-2,-2)
-0.5  === pow(-2,-1)
 1    === pow(-2, 0)
-2    === pow(-2, 1)
 4    === pow(-2, 2)
 1.0  === pow(-1,-2)
-1.0  === pow(-1,-1)
 1    === pow(-1, 0)
-1    === pow(-1, 1)
 1    === pow(-1, 2)
 TRUE === is_infinite(pow(0,-2))
 TRUE === is_infinite(pow(0,-1))
 1    === pow( 0, 0)
 0    === pow( 0, 1)
 0    === pow( 0, 2)
 1.0  === pow( 1,-2)
 1.0  === pow( 1,-1)
 1    === pow( 1, 0)
 1    === pow( 1, 1)
 1    === pow( 1, 2)
 0.25 === pow( 2,-2)
 0.5  === pow( 2,-1)
 1    === pow( 2, 0)
 2    === pow( 2, 1)
 4    === pow( 2, 2)
 0.25 === pow(-2,-2.0)
-0.5  === pow(-2,-1.0)
 1.0  === pow(-2, 0.0)
-2.0  === pow(-2, 1.0)
 4.0  === pow(-2, 2.0)
 1.0  === pow(-1,-2.0)
-1.0  === pow(-1,-1.0)
 1.0  === pow(-1, 0.0)
-1.0  === pow(-1, 1.0)
 1.0  === pow(-1, 2.0)
 TRUE === is_infinite(pow(0,-2.0))
 TRUE === is_infinite(pow(0,-1.0))
 1.0  === pow( 0, 0.0)
 0.0  === pow( 0, 1.0)
 0.0  === pow( 0, 2.0)
 1.0  === pow( 1,-2.0)
 1.0  === pow( 1,-1.0)
 1.0  === pow( 1, 0.0)
 1.0  === pow( 1, 1.0)
 1.0  === pow( 1, 2.0)
 0.25 === pow( 2,-2.0)
 0.5  === pow( 2,-1.0)
 1.0  === pow( 2, 0.0)
 2.0  === pow( 2, 1.0)
 4.0  === pow( 2, 2.0)
 2147483648 === pow(2,31)
-2147483648 ~== pow(-2,31)
 1000000000 === pow(10,9)
 100000000  === pow(-10,8)
 1    === pow(-1,1443279822)
-1    === pow(-1,1443279821)
sqrt(2) ~== pow(2,1/2)
 0.25 === pow(-2.0,-2.0)
-0.5  === pow(-2.0,-1.0)
 1.0  === pow(-2.0, 0.0)
-2.0  === pow(-2.0, 1.0)
 4.0  === pow(-2.0, 2.0)
 1.0  === pow(-1.0,-2.0)
-1.0  === pow(-1.0,-1.0)
 1.0  === pow(-1.0, 0.0)
-1.0  === pow(-1.0, 1.0)
 1.0  === pow(-1.0, 2.0)
 TRUE === is_infinite(pow(0.0,-2.0))
 TRUE === is_infinite(pow(0.0,-1.0))
 1.0  === pow( 0.0, 0.0)
 0.0  === pow( 0.0, 1.0)
 0.0  === pow( 0.0, 2.0)
 1.0  === pow( 1.0,-2.0)
 1.0  === pow( 1.0,-1.0)
 1.0  === pow( 1.0, 0.0)
 1.0  === pow( 1.0, 1.0)
 1.0  === pow( 1.0, 2.0)
 0.25 === pow( 2.0,-2.0)
 0.5  === pow( 2.0,-1.0)
 1.0  === pow( 2.0, 0.0)
 2.0  === pow( 2.0, 1.0)
 4.0  === pow( 2.0, 2.0)
 0.25 === pow(-2.0,-2)
-0.5  === pow(-2.0,-1)
 1.0  === pow(-2.0, 0)
-2.0  === pow(-2.0, 1)
 4.0  === pow(-2.0, 2)
 1.0  === pow(-1.0,-2)
-1.0  === pow(-1.0,-1)
 1.0  === pow(-1.0, 0)
-1.0  === pow(-1.0, 1)
 1.0  === pow(-1.0, 2)
 TRUE === is_infinite(pow( 0.0,-2))
 TRUE === is_infinite(pow( 0.0,-1))
 1.0  === pow( 0.0, 0)
 0.0  === pow( 0.0, 1)
 0.0  === pow( 0.0, 2)
 1.0  === pow( 1.0,-2)
 1.0  === pow( 1.0,-1)
 1.0  === pow( 1.0, 0)
 1.0  === pow( 1.0, 1)
 1.0  === pow( 1.0, 2)
 0.25 === pow( 2.0,-2)
 0.5  === pow( 2.0,-1)
 1.0  === pow( 2.0, 0)
 2.0  === pow( 2.0, 1)
 4.0  === pow( 2.0, 2)
 2.0  === pow(   4, 0.5)
 2.0  === pow( 4.0, 0.5)
 3.0  === pow(  27, 1/3)
 3.0  === pow(27.0, 1/3)
 0.5  === pow(   4, -0.5)
 0.5  === pow( 4.0, -0.5)
LONG_MAX-1 === pow(LONG_MAX-1,1)
LONG_MIN+1 === pow(LONG_MIN+1,1)
(LONG_MAX-1)*(LONG_MAX-1) ~== pow(LONG_MAX-1,2)
(LONG_MIN+1)*(LONG_MIN+1) ~== pow(LONG_MIN+1,2)
(float)(LONG_MAX-1) === pow(LONG_MAX-1,1.0)
(float)(LONG_MIN+1) === pow(LONG_MIN+1,1.0)
(LONG_MAX-1)*(LONG_MAX-1) ~== pow(LONG_MAX-1,2.0)
(LONG_MIN+1)*(LONG_MIN+1) ~== pow(LONG_MIN+1,2.0)
LONG_MAX === pow(LONG_MAX,1)
LONG_MIN === pow(LONG_MIN,1)
LONG_MAX*LONG_MAX ~== pow(LONG_MAX,2)
LONG_MIN*LONG_MIN ~== pow(LONG_MIN,2)
(float)LONG_MAX === pow(LONG_MAX,1.0)
(float)LONG_MIN === pow(LONG_MIN,1.0)
LONG_MAX*LONG_MAX ~== pow(LONG_MAX,2.0)
LONG_MIN*LONG_MIN ~== pow(LONG_MIN,2.0)
TESTS;

 echo "On failure, please mail result to php-dev@lists.php.net\n";
 include(dirname(__FILE__) . '/../../../../tests/quicktester.inc');

--EXPECT--
1,1,0,0
On failure, please mail result to php-dev@lists.php.net
OK

Youez - 2016 - github.com/yon3zu
LinuXploit