Home
last modified time | relevance | path

Searched refs:num (Results 1 – 25 of 261) sorted by relevance

1234567891011

/PHP-7.0/ext/standard/tests/array/
H A Darray_fill.phpt9 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.0/ext/dba/libflatfile/
H A Dflatfile.c111 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.0/ext/gmp/tests/
H A Doverloading.phpt107 ["num"]=>
111 ["num"]=>
115 ["num"]=>
119 ["num"]=>
123 ["num"]=>
127 ["num"]=>
131 ["num"]=>
135 ["num"]=>
139 ["num"]=>
143 ["num"]=>
[all …]
H A Dgmp_div_qr.phpt40 ["num"]=>
45 ["num"]=>
58 ["num"]=>
63 ["num"]=>
73 ["num"]=>
78 ["num"]=>
85 ["num"]=>
90 ["num"]=>
97 ["num"]=>
102 ["num"]=>
[all …]
H A Dgmp_remroot.phpt29 ["num"]=>
34 ["num"]=>
41 ["num"]=>
46 ["num"]=>
53 ["num"]=>
58 ["num"]=>
65 ["num"]=>
70 ["num"]=>
77 ["num"]=>
82 ["num"]=>
[all …]
/PHP-7.0/ext/bcmath/libbcmath/src/
H A Dinit.c85 bc_num *num; in _bc_free_num_ex()
88 if (*num == NULL) return;
89 (*num)->n_refs--;
91 if ((*num)->n_ptr)
94 pefree(*num, persistent);
97 _bc_Free_list = *num;
100 *num = NULL;
120 bc_copy_num (bc_num num) in bc_copy_num() argument
122 num->n_refs++; in bc_copy_num()
123 return num; in bc_copy_num()
[all …]
H A Dnum2str.c44 *bc_num2str (num) in bc_num2str() argument
45 bc_num num; in bc_num2str()
53 signch = ( num->n_sign == PLUS ? 0 : 1 ); /* Number of sign chars. */
54 if (num->n_scale > 0)
55 str = zend_string_alloc(num->n_len + num->n_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--)
70 if (num->n_scale > 0)
73 for (index=0; index<num->n_scale; index++)
H A Dsqrt.c45 bc_sqrt (bc_num *num, int scale) in bc_sqrt() argument
52 cmp_res = bc_compare (*num, BCG(_zero_)); in bc_sqrt()
59 bc_free_num (num); in bc_sqrt()
60 *num = bc_copy_num (BCG(_zero_)); in bc_sqrt()
64 cmp_res = bc_compare (*num, BCG(_one_)); in bc_sqrt()
67 bc_free_num (num); in bc_sqrt()
68 *num = bc_copy_num (BCG(_one_)); in bc_sqrt()
73 rscale = MAX (scale, (*num)->n_scale); in bc_sqrt()
86 cscale = (*num)->n_scale; in bc_sqrt()
93 bc_int2num (&guess1,(*num)->n_len); in bc_sqrt()
[all …]
H A Drmzero.c46 _bc_rm_leading_zeros (num) in _bc_rm_leading_zeros() argument
47 bc_num num; in _bc_rm_leading_zeros()
50 while (*num->n_value == 0 && num->n_len > 1) {
51 num->n_value++;
52 num->n_len--;
H A Doutput.c104 if (bc_is_zero (num)) in bc_out_num()
110 nptr = num->n_value; in bc_out_num()
111 if (num->n_len > 1 || *nptr != 0) in bc_out_num()
112 for (index=num->n_len; index>0; index--) in bc_out_num()
117 if (leading_zero && bc_is_zero (num)) in bc_out_num()
121 if (num->n_scale > 0) in bc_out_num()
131 if (leading_zero && bc_is_zero (num)) in bc_out_num()
137 bc_divide (num, BCG(_one_), &int_part, 0); in bc_out_num()
141 bc_sub (num, int_part, &frac_part, 0); in bc_out_num()
180 if (num->n_scale > 0) in bc_out_num()
[all …]
H A Dstr2num.c44 bc_str2num (bc_num *num, char *str, int scale) in bc_str2num() argument
51 bc_free_num (num); in bc_str2num()
65 *num = bc_copy_num (BCG(_zero_)); in bc_str2num()
76 *num = bc_new_num (digits, strscale); in bc_str2num()
82 (*num)->n_sign = MINUS; in bc_str2num()
87 (*num)->n_sign = PLUS; in bc_str2num()
91 nptr = (*num)->n_value; in bc_str2num()
109 if (bc_is_zero (*num)) in bc_str2num()
110 (*num)->n_sign = PLUS; in bc_str2num()
H A Dnearzero.c46 bc_is_near_zero (num, scale) in bc_is_near_zero() argument
47 bc_num num; in bc_is_near_zero()
54 if (scale > num->n_scale)
55 scale = num->n_scale;
58 count = num->n_len + scale;
59 nptr = num->n_value;
H A Dbcmath.h106 _PROTOTYPE(void _bc_free_num_ex, (bc_num *num, int persistent));
108 _PROTOTYPE(bc_num bc_copy_num, (bc_num num));
110 _PROTOTYPE(void bc_init_num, (bc_num *num));
114 _PROTOTYPE(zend_string *bc_num2str, (bc_num num));
116 _PROTOTYPE(void bc_int2num, (bc_num *num, int val));
118 _PROTOTYPE(long bc_num2long, (bc_num num));
122 _PROTOTYPE(char bc_is_zero, (bc_num num));
124 _PROTOTYPE(char bc_is_near_zero, (bc_num num, int scale));
126 _PROTOTYPE(char bc_is_neg, (bc_num num));
148 _PROTOTYPE(int bc_sqrt, (bc_num *num, int scale));
[all …]
H A Dint2num.c45 bc_int2num (num, val) in bc_int2num() argument
46 bc_num *num; in bc_int2num()
75 bc_free_num (num);
76 *num = bc_new_num (ix, 0);
77 if (neg) (*num)->n_sign = MINUS;
80 vptr = (*num)->n_value;
H A Dzero.c44 bc_is_zero (bc_num num) in bc_is_zero() argument
50 if (num == BCG(_zero_)) return TRUE; in bc_is_zero()
53 count = num->n_len + num->n_scale; in bc_is_zero()
54 nptr = num->n_value; in bc_is_zero()
H A Ddebug.c51 pn (bc_num num) in pn() argument
53 bc_out_num (num, 10, out_char, 0); in pn()
60 pv (name, num, len) in pv() argument
62 unsigned char *num;
67 for (i=0; i<len; i++) printf ("%c",BCD_CHAR(num[i]));
H A Dnum2long.c47 bc_num2long (num) in bc_num2long() argument
48 bc_num num; in bc_num2long()
56 nptr = num->n_value;
57 for (index=num->n_len; (index>0) && (val<=(LONG_MAX/BASE)); index--)
65 if (num->n_sign == PLUS)
/PHP-7.0/ext/standard/
H A Dmath.c418 double num; in PHP_FUNCTION() local
431 double num; in PHP_FUNCTION() local
444 double num; in PHP_FUNCTION() local
457 double num; in PHP_FUNCTION() local
470 double num; in PHP_FUNCTION() local
483 double num; in PHP_FUNCTION() local
510 double num; in PHP_FUNCTION() local
523 double num; in PHP_FUNCTION() local
536 double num; in PHP_FUNCTION() local
839 num = num * base + digit; in _php_math_basetolong()
[all …]
/PHP-7.0/ext/calendar/tests/
H A Dcal_days_in_month.phpt7 $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.0/ext/pdo_sqlite/tests/
H A Dbug_63916-2.phpt10 $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]);
H A Dbug_63916.phpt10 $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]);
/PHP-7.0/ext/sqlite3/tests/
H A Dbug63921-32bit.phpt10 $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]);
H A Dbug63921-64bit.phpt10 $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]);
/PHP-7.0/ext/session/tests/
H A Dsession_set_save_handler_class_011.phpt22 public $num;
24 public function __construct($num) {
25 $this->num = $num;
26 echo "(#$this->num) constructor called\n";
29 echo "(#$this->num) destructor called\n";
34 echo "(#$this->num) destroyed, cannot write\n";
36 echo "(#$this->num) writing $id = $data\n";
43 echo "(#$this->num) destroyed, cannot write\n";
45 echo "(#$this->num) closing $id\n";
/PHP-7.0/ext/pcre/tests/
H A Drequest47456.phpt8 preg_match_all('/(?J)(?<chr>[ac])(?<num>\d)|(?<chr>[b])/', 'a1bc3', $m, PREG_SET_ORDER);
12 preg_match_all('/(?<chr>[ac])(?<num>\d)|(?<chr>[b])/J', 'a1bc3', $m, PREG_SET_ORDER);
25 ["num"]=>
38 ["num"]=>
53 ["num"]=>
68 ["num"]=>
81 ["num"]=>
96 ["num"]=>

Completed in 37 milliseconds

1234567891011