Home
last modified time | relevance | path

Searched refs:base_convert (Results 1 – 8 of 8) sorted by relevance

/PHP-5.4/ext/standard/tests/math/
H A Dbase_convert_error.phpt2 Test base_convert() function : error conditions - incorrect input
10 echo "*** Testing base_convert() : error conditions ***\n";
18 base_convert();
19 base_convert(35);
20 base_convert(35,2);
21 base_convert(1234, 1, 10);
22 base_convert(1234, 10, 37);
25 base_convert(new classA(), 8, 10);
29 *** Testing base_convert() : error conditions ***
38 Warning: base_convert(): Invalid `from base' (1) in %s on line %d
[all …]
H A Dbase_convert_variation2.phpt10 echo "*** Testing base_convert() : usage variations ***\n";
68 var_dump(base_convert(25, $input, 8));
74 *** Testing base_convert() : usage variations ***
78 Warning: base_convert(): Invalid `from base' (0) in %s on line %d
83 Warning: base_convert(): Invalid `from base' (1) in %s on line %d
88 Warning: base_convert(): Invalid `from base' (-1) in %s on line %d
116 Warning: base_convert(): Invalid `from base' (0) in %s on line %d
121 Warning: base_convert(): Invalid `from base' (0) in %s on line %d
126 Warning: base_convert(): Invalid `from base' (0) in %s on line %d
131 Warning: base_convert(): Invalid `from base' (0) in %s on line %d
[all …]
H A Dbase_convert_variation3.phpt10 echo "*** Testing base_convert() : usage variations ***\n";
68 var_dump(base_convert(25, 10, $input));
74 *** Testing base_convert() : usage variations ***
78 Warning: base_convert(): Invalid `to base' (0) in %s on line %d
83 Warning: base_convert(): Invalid `to base' (1) in %s on line %d
88 Warning: base_convert(): Invalid `to base' (-1) in %s on line %d
116 Warning: base_convert(): Invalid `to base' (0) in %s on line %d
121 Warning: base_convert(): Invalid `to base' (0) in %s on line %d
126 Warning: base_convert(): Invalid `to base' (0) in %s on line %d
131 Warning: base_convert(): Invalid `to base' (0) in %s on line %d
[all …]
H A Dbase_convert_variation1.phpt2 Test base_convert() function : usage variations - different data types as $number argument
5 /* Prototype : string base_convert ( string $number , int $frombase , int $tobase )
10 echo "*** Testing base_convert() : usage variations ***\n";
70 // loop through each element of $inputs to check the behaviour of base_convert()
74 var_dump(base_convert($input, 10, 8));
81 *** Testing base_convert() : usage variations ***
H A Dbase_convert_basic.phpt2 Test base_convert() - basic function tests base_convert()
25 $res = base_convert($values[$i],$frombase[$f],$tobase[$t]);
/PHP-5.4/ext/standard/
H A Dphp_math.h64 PHP_FUNCTION(base_convert);
H A Dmath.c1065 PHP_FUNCTION(base_convert) in PHP_FUNCTION() argument
H A Dbasic_functions.c2918 PHP_FE(base_convert, arginfo_base_convert)

Completed in 40 milliseconds