/PHP-8.0/ext/oci8/tests/ |
H A D | field_funcs2.phpt | 2 Bug #41917 (invalid scale and precision) 46 $scale = oci_field_scale($s, $i); 47 echo "$name ".$t[$name] .": precision $precision, scale $scale\n"; 53 C01 NUMBER: precision 0, scale -127 55 C03 NUMBER(9): precision 9, scale 0 61 C09 DECIMAL(4): precision 4, scale 0 62 C10 INTEGER: precision 38, scale 0 63 C11 INT: precision 38, scale 0 64 C12 SMALLINT: precision 38, scale 0 65 C13 FLOAT: precision 126, scale -127 [all …]
|
H A D | imp_res_field.phpt | 61 $scale = oci_field_scale($s, $i); 65 …echo "$name\t: is_null $is_null, precision $precision, scale $scale, size $size, typeraw $typeraw,… 157 C1_NUMBER : is_null F, precision 0, scale -127, size 22, typeraw 2, type NUMBER 160 C3_VARCHAR21 : is_null F, precision 0, scale 0, size 4, typeraw 1, type VARCHAR2 162 C4_NUMBER52 : is_null F, precision 5, scale 2, size 22, typeraw 2, type NUMBER 167 C1_NUMBER : is_null F, precision 0, scale -127, size 22, typeraw 2, type NUMBER 177 C3_VARCHAR21 : is_null F, precision 0, scale 0, size 4, typeraw 1, type VARCHAR2 184 C4_NUMBER52 : is_null F, precision 5, scale 2, size 22, typeraw 2, type NUMBER 203 C1_NUMBER : is_null F, precision 0, scale -127, size 22, typeraw 2, type NUMBER 218 C4_NUMBER52 : is_null F, precision 5, scale 2, size 22, typeraw 2, type NUMBER [all …]
|
/PHP-8.0/ext/bcmath/ |
H A D | bcmath.stub.php | 5 function bcadd(string $num1, string $num2, ?int $scale = null): string {} argument 7 function bcsub(string $num1, string $num2, ?int $scale = null): string {} argument 9 function bcmul(string $num1, string $num2, ?int $scale = null): string {} argument 11 function bcdiv(string $num1, string $num2, ?int $scale = null): string {} argument 13 function bcmod(string $num1, string $num2, ?int $scale = null): string {} argument 15 function bcpowmod(string $num, string $exponent, string $modulus, ?int $scale = null): string {} argument 17 function bcpow(string $num, string $exponent, ?int $scale = null): string {} argument 19 function bcsqrt(string $num, ?int $scale = null): string {} argument 21 function bccomp(string $num1, string $num2, ?int $scale = null): int {} argument 23 function bcscale(?int $scale = null): int {} argument
|
H A D | bcmath.c | 159 int scale; in PHP_FUNCTION() local 169 scale = BCG(bc_precision); in PHP_FUNCTION() 174 scale = (int) scale_param; in PHP_FUNCTION() 210 int scale; in PHP_FUNCTION() local 220 scale = BCG(bc_precision); in PHP_FUNCTION() 225 scale = (int) scale_param; in PHP_FUNCTION() 261 int scale; in PHP_FUNCTION() local 271 scale = BCG(bc_precision); in PHP_FUNCTION() 276 scale = (int) scale_param; in PHP_FUNCTION() 322 scale = BCG(bc_precision); in PHP_FUNCTION() [all …]
|
H A D | bcmath_arginfo.h | 7 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, scale, IS_LONG, 1, "null") 22 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, scale, IS_LONG, 1, "null") 28 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, scale, IS_LONG, 1, "null") 33 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, scale, IS_LONG, 1, "null") 39 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, scale, IS_LONG, 1, "null") 43 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, scale, IS_LONG, 1, "null")
|
/PHP-8.0/ext/bcmath/libbcmath/src/ |
H A D | num2str.c | 43 *bc_num2str_ex (num, scale) in bc_num2str_ex() argument 45 int scale; 53 …signch = num->n_sign != PLUS && !bc_is_zero_for_scale(num, MIN(num->n_scale, scale)); /* Number o… 54 if (scale > 0) 55 str = zend_string_alloc(num->n_len + scale + signch + 1, 0); 69 if (scale > 0) 72 for (index=0; index<scale && index<num->n_scale; index++) 74 for (index = num->n_scale; index<scale; index++)
|
H A D | nearzero.c | 45 bc_is_near_zero (num, scale) in bc_is_near_zero() argument 47 int scale; 53 if (scale > num->n_scale) 54 scale = num->n_scale; 57 count = num->n_len + scale;
|
H A D | bcmath.h | 103 _PROTOTYPE(bc_num _bc_new_num_ex, (int length, int scale, int persistent)); 111 _PROTOTYPE(int bc_str2num, (bc_num *num, char *str, int scale)); 113 _PROTOTYPE(zend_string *bc_num2str_ex, (bc_num num, int scale)); 123 _PROTOTYPE(char bc_is_zero_for_scale, (bc_num num, int scale)); 125 _PROTOTYPE(char bc_is_near_zero, (bc_num num, int scale)); 138 int scale)); 141 bc_num *rem, int scale)); 144 bc_num *result, int scale)); 147 int scale)); 149 _PROTOTYPE(int bc_sqrt, (bc_num *num, int scale)); [all …]
|
H A D | init.c | 43 _bc_new_num_ex (length, scale, persistent) in _bc_new_num_ex() argument 44 int length, scale, persistent; in _bc_new_num_ex() 48 temp = (bc_num) safe_pemalloc (1, sizeof(bc_struct)+length, scale, persistent); 51 temp->n_scale = scale; 54 temp->n_ptr = (char *) safe_pemalloc (1, length, scale, persistent); 56 memset (temp->n_ptr, 0, length+scale);
|
H A D | div.c | 87 bc_divide (bc_num n1, bc_num n2, bc_num *quot, int scale) in bc_divide() argument 107 qval = bc_new_num (n1->n_len, scale); in bc_divide() 109 memset (&qval->n_value[n1->n_len],0,scale); in bc_divide() 111 n1->n_len + MIN(n1->n_scale,scale)); in bc_divide() 125 if (scale1 < scale) in bc_divide() 126 extra = scale - scale1; in bc_divide() 145 if (len2 > len1+scale) in bc_divide() 147 qdigits = scale+1; in bc_divide() 156 qdigits = len1-len2+scale+1; in bc_divide() 160 qval = bc_new_num (qdigits-scale,scale); in bc_divide() [all …]
|
H A D | divmod.c | 47 bc_divmod (bc_num num1, bc_num num2, bc_num *quot, bc_num *rem, int scale) in bc_divmod() argument 57 rscale = MAX (num1->n_scale, num2->n_scale+scale); in bc_divmod() 82 bc_modulo (bc_num num1, bc_num num2, bc_num *result, int scale) in bc_modulo() argument 84 return bc_divmod (num1, num2, NULL, result, scale); in bc_modulo()
|
H A D | raisemod.c | 42 zend_result bc_raisemod (bc_num base, bc_num expo, bc_num mod, bc_num *result, int scale) in bc_raisemod() argument 83 rscale = MAX(scale, power->n_scale); in bc_raisemod() 87 temp = bc_new_num (1, scale); in bc_raisemod() 97 (void) bc_modulo (temp, modulus, &temp, scale); in bc_raisemod() 101 (void) bc_modulo (power, modulus, &power, scale); in bc_raisemod()
|
H A D | zero.c | 43 bc_is_zero_for_scale (bc_num num, int scale) in bc_is_zero_for_scale() argument 52 count = num->n_len + scale; in bc_is_zero_for_scale()
|
H A D | raise.c | 46 bc_raise (bc_num num1, bc_num num2, bc_num *result, int scale) in bc_raise() argument 81 rscale = scale; in bc_raise() 86 rscale = MIN (num1->n_scale*exponent, MAX(scale, num1->n_scale)); in bc_raise()
|
H A D | str2num.c | 43 bc_str2num (bc_num *num, char *str, int scale) in bc_str2num() argument 69 strscale = MIN(strscale, scale); in bc_str2num()
|
H A D | recmul.c | 54 new_sub_num (length, scale, value) in new_sub_num() argument 55 int length, scale; in new_sub_num() 64 temp->n_scale = scale; 269 bc_multiply (bc_num n1, bc_num n2, bc_num *prod, int scale) in bc_multiply() argument 279 prod_scale = MIN(full_scale,MAX(scale,MAX(n1->n_scale,n2->n_scale))); in bc_multiply()
|
/PHP-8.0/ext/bcmath/tests/ |
H A D | negative_scale.phpt | 2 all errors on negative scale 6 bcmath.scale=0 61 bcadd(): Argument #3 ($scale) must be between 0 and 2147483647 62 bcsub(): Argument #3 ($scale) must be between 0 and 2147483647 63 bcmul(): Argument #3 ($scale) must be between 0 and 2147483647 64 bcdiv(): Argument #3 ($scale) must be between 0 and 2147483647 65 bcmod(): Argument #3 ($scale) must be between 0 and 2147483647 67 bcpow(): Argument #3 ($scale) must be between 0 and 2147483647 68 bcsqrt(): Argument #2 ($scale) must be between 0 and 2147483647 69 bccomp(): Argument #3 ($scale) must be between 0 and 2147483647 [all …]
|
H A D | bcscale_variation003.phpt | 6 bcmath.scale=0 9 var_dump((int) ini_get('bcmath.scale')); 11 var_dump((int) ini_get('bcmath.scale')); 13 var_dump((int) ini_get('bcmath.scale')); 15 var_dump((int) ini_get('bcmath.scale'));
|
H A D | bcscale_variation001.phpt | 6 bcmath.scale=0 18 bcscale(): Argument #1 ($scale) must be between 0 and 2147483647
|
H A D | scale_ini.phpt | 2 BCMath functions return result with default scale 8 bcmath.scale = 5
|
H A D | bug72093.phpt | 2 Bug 72093: bcpowmod fails on negative scale and corrupts _one_ definition 21 bcpowmod(): Argument #4 ($scale) must be between 0 and 2147483647
|
H A D | bcscale_variation002.phpt | 6 bcmath.scale=-2
|
H A D | bcsqrt_variation001.phpt | 6 bcmath.scale=0
|
H A D | bcpow_variation001.phpt | 6 bcmath.scale=0
|
/PHP-8.0/ext/gd/libgd/ |
H A D | testac.c | 11 double scale, 73 double scale, in testDrawing() argument 81 im_out = gdImageCreateTrueColor ((int) (gdImageSX (im_in) * scale), in testDrawing() 82 (int) (gdImageSY (im_in) * scale)); in testDrawing() 95 gdImageFill (im_out, (int) (gdImageSX (im_in) * scale / 2), in testDrawing() 96 (int) (gdImageSY (im_in) * scale / 2), in testDrawing() 107 (int) (gdImageSX (im_in) * scale), (int) (gdImageSY (im_in) * scale), in testDrawing()
|