/PHP-7.4/ext/standard/tests/array/ |
H A D | array_fill.phpt | 9 foreach($array1 as $num) 14 echo 'start: '.$start.' num: '.$num.' value: '.$value."\n"; 25 start: 0 num: 0 value: 1 29 start: 0 num: 0 value: 33 start: 0 num: 0 value: 37 start: 0 num: 0 value: d 41 start: 0 num: 0 value: e 45 start: 0 num: 0 value: f 49 start: 0 num: 1 value: 1 55 start: 0 num: 1 value: [all …]
|
/PHP-7.4/ext/dba/libflatfile/ |
H A D | flatfile.c | 111 size_t num; in flatfile_delete() local 128 num = php_stream_read(dba->fp, buf, num); in flatfile_delete() 149 num = php_stream_read(dba->fp, buf, num); in flatfile_delete() 161 size_t num; in flatfile_findkey() local 176 num = php_stream_read(dba->fp, buf, num); in flatfile_findkey() 192 num = php_stream_read(dba->fp, buf, num); in flatfile_findkey() 203 size_t num; in flatfile_firstkey() local 217 num = php_stream_read(dba->fp, buf, num); in flatfile_firstkey() 233 num = php_stream_read(dba->fp, buf, num); in flatfile_firstkey() 260 num = php_stream_read(dba->fp, buf, num); in flatfile_nextkey() [all …]
|
/PHP-7.4/ext/gmp/tests/ |
H A D | overloading.phpt | 107 ["num"]=> 111 ["num"]=> 115 ["num"]=> 119 ["num"]=> 123 ["num"]=> 127 ["num"]=> 131 ["num"]=> 135 ["num"]=> 139 ["num"]=> 143 ["num"]=> [all …]
|
H A D | gmp_binomial.phpt | 28 ["num"]=> 32 ["num"]=> 36 ["num"]=> 40 ["num"]=> 44 ["num"]=> 48 ["num"]=> 52 ["num"]=> 56 ["num"]=> 60 ["num"]=> 64 ["num"]=>
|
H A D | gmp_div_qr.phpt | 40 ["num"]=> 45 ["num"]=> 58 ["num"]=> 63 ["num"]=> 73 ["num"]=> 78 ["num"]=> 85 ["num"]=> 90 ["num"]=> 97 ["num"]=> 102 ["num"]=> [all …]
|
H A D | gmp_remroot.phpt | 29 ["num"]=> 34 ["num"]=> 41 ["num"]=> 46 ["num"]=> 53 ["num"]=> 58 ["num"]=> 65 ["num"]=> 70 ["num"]=> 77 ["num"]=> 82 ["num"]=> [all …]
|
H A D | gmp_lcm.phpt | 21 ["num"]=> 25 ["num"]=> 29 ["num"]=> 33 ["num"]=> 37 ["num"]=> 41 ["num"]=> 45 ["num"]=>
|
/PHP-7.4/ext/bcmath/libbcmath/src/ |
H A D | init.c | 70 bc_num *num; in _bc_free_num_ex() 73 if (*num == NULL) return; 74 (*num)->n_refs--; 75 if ((*num)->n_refs == 0) { 76 if ((*num)->n_ptr) 79 pefree(*num, persistent); 81 *num = NULL; 101 bc_copy_num (bc_num num) in bc_copy_num() argument 103 num->n_refs++; in bc_copy_num() 104 return num; in bc_copy_num() [all …]
|
H A D | num2str.c | 43 *bc_num2str_ex (num, scale) in bc_num2str_ex() argument 44 bc_num num; in bc_num2str_ex() 53 …signch = num->n_sign != PLUS && !bc_is_zero_for_scale(num, MIN(num->n_scale, scale)); /* Number o… 55 str = zend_string_alloc(num->n_len + scale + signch + 1, 0); 57 str = zend_string_alloc(num->n_len + signch, 0); 65 nptr = num->n_value; 66 for (index=num->n_len; index>0; index--) 73 for (index=0; index<scale && index<num->n_scale; index++) 75 for (index = num->n_scale; index<scale; index++)
|
H A D | rmzero.c | 45 _bc_rm_leading_zeros (num) in _bc_rm_leading_zeros() argument 46 bc_num num; in _bc_rm_leading_zeros() 49 while (*num->n_value == 0 && num->n_len > 1) { 50 num->n_value++; 51 num->n_len--;
|
H A D | sqrt.c | 44 bc_sqrt (bc_num *num, int scale) in bc_sqrt() argument 51 cmp_res = bc_compare (*num, BCG(_zero_)); in bc_sqrt() 58 bc_free_num (num); in bc_sqrt() 59 *num = bc_copy_num (BCG(_zero_)); in bc_sqrt() 63 cmp_res = bc_compare (*num, BCG(_one_)); in bc_sqrt() 66 bc_free_num (num); in bc_sqrt() 67 *num = bc_copy_num (BCG(_one_)); in bc_sqrt() 72 rscale = MAX (scale, (*num)->n_scale); in bc_sqrt() 85 cscale = (*num)->n_scale; in bc_sqrt() 92 bc_int2num (&guess1,(*num)->n_len); in bc_sqrt() [all …]
|
H A D | zero.c | 43 bc_is_zero_for_scale (bc_num num, int scale) in bc_is_zero_for_scale() argument 49 if (num == BCG(_zero_)) return TRUE; in bc_is_zero_for_scale() 52 count = num->n_len + scale; in bc_is_zero_for_scale() 53 nptr = num->n_value; in bc_is_zero_for_scale() 65 bc_is_zero (bc_num num) in bc_is_zero() argument 67 return bc_is_zero_for_scale(num, num->n_scale); in bc_is_zero()
|
H A D | bcmath.h | 107 _PROTOTYPE(bc_num bc_copy_num, (bc_num num)); 109 _PROTOTYPE(void bc_init_num, (bc_num *num)); 115 _PROTOTYPE(void bc_int2num, (bc_num *num, int val)); 117 _PROTOTYPE(long bc_num2long, (bc_num num)); 121 _PROTOTYPE(char bc_is_zero, (bc_num num)); 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)); 127 _PROTOTYPE(char bc_is_neg, (bc_num num)); 149 _PROTOTYPE(int bc_sqrt, (bc_num *num, int scale)); 159 #define bc_free_num(num) _bc_free_num_ex((num), 0) argument [all …]
|
H A D | nearzero.c | 45 bc_is_near_zero (num, scale) in bc_is_near_zero() argument 46 bc_num num; in bc_is_near_zero() 53 if (scale > num->n_scale) 54 scale = num->n_scale; 57 count = num->n_len + scale; 58 nptr = num->n_value;
|
H A D | str2num.c | 43 bc_str2num (bc_num *num, char *str, int scale) in bc_str2num() argument 50 bc_free_num (num); in bc_str2num() 64 *num = bc_copy_num (BCG(_zero_)); in bc_str2num() 75 *num = bc_new_num (digits, strscale); in bc_str2num() 81 (*num)->n_sign = MINUS; in bc_str2num() 86 (*num)->n_sign = PLUS; in bc_str2num() 90 nptr = (*num)->n_value; in bc_str2num() 108 if (bc_is_zero (*num)) in bc_str2num() 109 (*num)->n_sign = PLUS; in bc_str2num()
|
H A D | output.c | 103 if (bc_is_zero (num)) in bc_out_num() 109 nptr = num->n_value; in bc_out_num() 110 if (num->n_len > 1 || *nptr != 0) in bc_out_num() 111 for (index=num->n_len; index>0; index--) in bc_out_num() 116 if (leading_zero && bc_is_zero (num)) in bc_out_num() 120 if (num->n_scale > 0) in bc_out_num() 130 if (leading_zero && bc_is_zero (num)) in bc_out_num() 136 bc_divide (num, BCG(_one_), &int_part, 0); in bc_out_num() 140 bc_sub (num, int_part, &frac_part, 0); in bc_out_num() 178 if (num->n_scale > 0) in bc_out_num() [all …]
|
H A D | int2num.c | 44 bc_int2num (num, val) in bc_int2num() argument 45 bc_num *num; in bc_int2num() 74 bc_free_num (num); 75 *num = bc_new_num (ix, 0); 76 if (neg) (*num)->n_sign = MINUS; 79 vptr = (*num)->n_value;
|
H A D | debug.c | 50 pn (bc_num num) in pn() argument 52 bc_out_num (num, 10, out_char, 0); in pn() 59 pv (name, num, len) in pv() argument 61 unsigned char *num; 66 for (i=0; i<len; i++) printf ("%c",BCD_CHAR(num[i]));
|
/PHP-7.4/ext/standard/ |
H A D | math.c | 408 double num; in PHP_FUNCTION() local 421 double num; in PHP_FUNCTION() local 434 double num; in PHP_FUNCTION() local 447 double num; in PHP_FUNCTION() local 460 double num; in PHP_FUNCTION() local 473 double num; in PHP_FUNCTION() local 500 double num; in PHP_FUNCTION() local 513 double num; in PHP_FUNCTION() local 526 double num; in PHP_FUNCTION() local 830 num = num * base + digit; in _php_math_basetolong() [all …]
|
/PHP-7.4/ext/calendar/tests/ |
H A D | cal_days_in_month.phpt | 7 $num = cal_days_in_month(CAL_GREGORIAN, 8, 2003); 8 echo "There are $num days in August 2003\n"; 9 $num = cal_days_in_month(CAL_GREGORIAN, 2, 2003); 10 echo "There are $num days in February 2003\n"; 11 $num = cal_days_in_month(CAL_GREGORIAN, 2, 2004); 12 echo "There are $num days in February 2004\n"; 13 $num = cal_days_in_month(CAL_GREGORIAN, 12, 2034); 14 echo "There are $num days in December 2034\n";
|
/PHP-7.4/ext/pdo_sqlite/tests/ |
H A D | bug_63916.phpt | 10 $num = 100004313234244; // exceeds 32 bits 12 $conn->query('CREATE TABLE users (id INTEGER NOT NULL, num INTEGER NOT NULL, PRIMARY KEY(id))'); 14 $stmt = $conn->prepare('insert into users (id, num) values (:id, :num)'); 16 $stmt->bindValue(':num', $num, PDO::PARAM_INT); 19 $stmt = $conn->query('SELECT num FROM users'); 22 var_dump($num,$result[0]);
|
H A D | bug_63916-2.phpt | 10 $num = PHP_INT_MAX; // 32 bits 12 $conn->query('CREATE TABLE users (id INTEGER NOT NULL, num INTEGER NOT NULL, PRIMARY KEY(id))'); 14 $stmt = $conn->prepare('insert into users (id, num) values (:id, :num)'); 16 $stmt->bindValue(':num', $num, PDO::PARAM_INT); 19 $stmt = $conn->query('SELECT num FROM users'); 22 var_dump($num,$result[0]);
|
/PHP-7.4/Zend/ |
H A D | zend_bitset.h | 45 return __builtin_ctzl(num); 47 return __builtin_ctzll(num); 52 if (!BitScanForward64(&index, num)) { 54 if (!BitScanForward(&index, num)) { 64 if (num == Z_UL(0)) return SIZEOF_ZEND_LONG * 8; 68 if ((num & 0xffffffff) == 0) {n += 32; num = num >> Z_UL(32);} 70 if ((num & 0x0000ffff) == 0) {n += 16; num = num >> 16;} 71 if ((num & 0x000000ff) == 0) {n += 8; num = num >> 8;} 72 if ((num & 0x0000000f) == 0) {n += 4; num = num >> 4;} 73 if ((num & 0x00000003) == 0) {n += 2; num = num >> 2;} [all …]
|
/PHP-7.4/ext/sqlite3/tests/ |
H A D | bug63921-64bit.phpt | 10 $num = 100004313234244; // notice this exceeds 32 bits 12 $conn->query('CREATE TABLE users (id INTEGER NOT NULL, num INTEGER NOT NULL, PRIMARY KEY(id))'); 14 $stmt = $conn->prepare('insert into users (id, num) values (:id, :num)'); 16 $stmt->bindValue(':num', $num, SQLITE3_INTEGER); 19 $stmt = $conn->query('SELECT num FROM users'); 22 var_dump($num,$result[0]);
|
H A D | bug63921-32bit.phpt | 10 $num = PHP_INT_MAX; // 32 bits 12 $conn->query('CREATE TABLE users (id INTEGER NOT NULL, num INTEGER NOT NULL, PRIMARY KEY(id))'); 14 $stmt = $conn->prepare('insert into users (id, num) values (:id, :num)'); 16 $stmt->bindValue(':num', $num, SQLITE3_INTEGER); 19 $stmt = $conn->query('SELECT num FROM users'); 22 var_dump($num,$result[0]);
|