Home
last modified time | relevance | path

Searched refs:intval (Results 1 – 25 of 44) sorted by relevance

12

/PHP-5.5/ext/standard/tests/general_functions/
H A Dintval_variation2.phpt2 Test intval() function : usage variation
5 /* Prototype : int intval(mixed var [, int base])
11 echo "*** Testing intval() : usage variation ***\n";
101 var_dump( intval($var, $value) );
107 *** Testing intval() : usage variation ***
125 Error: 2 - intval() expects parameter 2 to be long, array given, %s(%d)
129 Error: 2 - intval() expects parameter 2 to be long, array given, %s(%d)
133 Error: 2 - intval() expects parameter 2 to be long, array given, %s(%d)
137 Error: 2 - intval() expects parameter 2 to be long, array given, %s(%d)
159 Error: 2 - intval() expects parameter 2 to be long, string given, %s(%d)
[all …]
H A Dintval.phpt2 Test intval() function
9 /* Prototype: int intval( mixed $var [.int $base] );
36 /* loop to check that intval() recognizes different
41 var_dump( intval($value) );
47 var_dump( intval($value, 10) );
53 var_dump( intval($value, 16) );
58 var_dump( intval($value, 8) );
146 var_dump( intval($type) );
151 var_dump( intval() );
154 var_dump( intval(TRUE, FALSE, TRUE) );
[all …]
H A Dintval_variation1.phpt2 Test intval() function : usage variation
5 /* Prototype : int intval(mixed var [, int base])
11 echo "*** Testing intval() : usage variation ***\n";
107 var_dump( intval($value, $base) );
113 *** Testing intval() : usage variation ***
/PHP-5.5/ext/standard/tests/math/
H A Dmt_rand_basic.phpt43 if (!is_int($res) || $res < intval($min[$x]) || $res > intval($max[$x])) {
44 echo "FAILED: res = ", $res, " min = ", intval($min[$x]), " max = ", intval($max[$x]), "\n";
50 echo "PASSED: range min = ", intval($min[$x]), " max = ", intval($max[$x]), "\n";
73 if (!is_int($res) || $res < intval($minval[$x]) || $res > 100) {
74 echo "FAILED: res = ", $res, " min = ", intval($min[$x]), " max = ", intval($max[$x]), "\n";
80 echo "PASSED range min = ", intval($min[$x]), " max = 100\n";
H A Drand_basic.phpt43 if (!is_int($res) || $res < intval($min[$x]) || $res > intval($max[$x])) {
44 echo "FAILED: res = ", $res, " min = ", intval($min[$x]), " max = ", intval($max[$x]), "\n";
50 echo "PASSED: range min = ", intval($min[$x]), " max = ", intval($max[$x]), "\n";
73 if (!is_int($res) || $res < intval($minval[$x]) || $res > 100) {
74 echo "FAILED: res = ", $res, " min = ", intval($min[$x]), " max = ", intval($max[$x]), "\n";
80 echo "PASSED range min = ", intval($min[$x]), " max = 100\n";
/PHP-5.5/ext/standard/tests/array/
H A Dsizeof_basic1.phpt18 $intval = 10;
24 var_dump( sizeof($intval) );
27 var_dump( sizeof($intval, COUNT_NORMAL) );
30 var_dump( sizeof($intval, COUNT_RECURSIVE) );
/PHP-5.5/ext/filter/tests/
H A Dbug47745.phpt8 var_dump(intval($s));
/PHP-5.5/ext/standard/
H A Dphp_type.h24 PHP_FUNCTION(intval);
/PHP-5.5/ext/standard/tests/streams/
H A Dbug60106.phpt16 $socket_file = substr($socket_file, 0, intval($matches[1]) - 1);
/PHP-5.5/sapi/cli/tests/
H A Dbug65066_100.phpt15 $port = intval($port)?:80;
H A Dbug66830.phpt16 $port = intval($port)?:80;
H A Dphp_cli_server_018.phpt16 $port = intval($port)?:80;
H A Dbug65066_422.phpt15 $port = intval($port)?:80;
H A Dbug65066_511.phpt15 $port = intval($port)?:80;
H A Dbug68745.phpt13 $port = intval($port)?:80;
H A Dphp_cli_server_006.phpt13 $port = intval($port)?:80;
H A Dbug65633.phpt16 $port = intval($port)?:80;
H A Dphp_cli_server_017.phpt16 $port = intval($port)?:80;
H A Dbug61679.phpt16 $port = intval($port)?:80;
H A Dbug67429.phpt18 $port = intval($port)?:80;
H A Dphp_cli_server_007.phpt13 $port = intval($port)?:80;
H A Dphp_cli_server_004.phpt15 $port = intval($port)?:80;
H A Dphp_cli_server_016.phpt23 $port = intval($port)?:80;
H A Dphp_cli_server_008.phpt13 $port = intval($port)?:80;
H A Dphp_cli_server_012.phpt15 $port = intval($port)?:80;

Completed in 26 milliseconds

12