Home
last modified time | relevance | path

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

/PHP-5.3/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.3/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.3/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.3/ext/filter/tests/
H A Dbug47745.phpt8 var_dump(intval($s));
/PHP-5.3/ext/standard/
H A Dphp_type.h24 PHP_FUNCTION(intval);
H A Dtype.c134 PHP_FUNCTION(intval) in PHP_FUNCTION() argument
H A Dbasic_functions.c3032 PHP_FE(intval, arginfo_intval)
/PHP-5.3/ext/standard/tests/streams/
H A Dbug60106.phpt16 $socket_file = substr($socket_file, 0, intval($matches[1]) - 1);
/PHP-5.3/ext/pdo_pgsql/
H A Dphp_pdo_pgsql_int.h59 long intval; member
H A Dpgsql_statement.c513 S->cols[colno].intval = atol(*ptr); in pgsql_stmt_get_col()
514 *ptr = (char *) &(S->cols[colno].intval); in pgsql_stmt_get_col()
/PHP-5.3/ext/sqlite3/tests/
H A Dsqlite3_25_create_aggregate.phpt15 $context['total'] += intval($string);
/PHP-5.3/ext/date/tests/
H A Ddate_create-relative.phpt9 define('PHP_INT_MIN', intval(-PHP_INT_MAX - 1));
/PHP-5.3/scripts/dev/
H A Dcheck_parameters.php87 $mid = intval(($left + $right)/2);
/PHP-5.3/ext/mysqli/tests/
H A Dmysqli_stmt_get_result_types.phpt198 $tmp = intval(@date('Y'));
H A Dmysqli_stmt_bind_result.phpt240 $tmp = intval(@date('Y'));

Completed in 72 milliseconds