Home
last modified time | relevance | path

Searched refs:val (Results 1 – 25 of 485) sorted by relevance

12345678910>>...20

/PHP-8.1/ext/bcmath/libbcmath/src/
H A Dint2num.c44 bc_int2num (num, val) in bc_int2num() argument
46 int val;
54 if (val < 0)
57 val = -val;
62 *bptr++ = val % BASE;
63 val = val / BASE;
66 while (val != 0)
68 *bptr++ = val % BASE;
69 val = val / BASE;
H A Dnum2long.c49 long val; local
54 val = 0;
59 if (val > LONG_MAX/BASE) {
62 val *= BASE;
64 if (val > LONG_MAX - n) {
67 val += n;
72 return (val);
74 return (-val);
H A Ddoaddsub.c146 int borrow, count, val; local
184 if (val < 0)
186 val += BASE;
191 *diffptr-- = val;
200 if (val < 0)
202 val += BASE;
207 *diffptr-- = val;
215 val = *n1ptr-- - borrow;
216 if (val < 0)
218 val += BASE;
[all …]
/PHP-8.1/Zend/
H A Dzend_float.h121 # define XPFPA_RETURN_DOUBLE(val) \ argument
127 # define XPFPA_RETURN_SINGLE(val) \ argument
180 # define XPFPA_RETURN_DOUBLE(val) \
186 # define XPFPA_RETURN_SINGLE(val) \
240 # define XPFPA_RETURN_DOUBLE(val) \
246 # define XPFPA_RETURN_SINGLE(val) \
296 # define XPFPA_RETURN_DOUBLE(val) \
302 # define XPFPA_RETURN_SINGLE(val) \
409 # define XPFPA_RETURN_DOUBLE(val) return (val)
410 # define XPFPA_RETURN_SINGLE(val) return (val)
[all …]
H A Dzend_map_ptr.h41 #define ZEND_MAP_PTR_INIT(ptr, val) do { \ argument
42 ZEND_MAP_PTR(ptr) = (val); \
55 # define ZEND_MAP_PTR_SET(ptr, val) do { \ argument
56 (*(ZEND_MAP_PTR(ptr))) = (val); \
58 # define ZEND_MAP_PTR_SET_IMM(ptr, val) \ argument
59 ZEND_MAP_PTR_SET(ptr, val)
73 # define ZEND_MAP_PTR_SET(ptr, val) do { \ argument
78 *__p = (val); \
80 # define ZEND_MAP_PTR_SET_IMM(ptr, val) do { \ argument
82 *__p = (val); \
H A Dzend_vm_trace_map.h48 if (Z_LVAL(p1->val) > Z_LVAL(p2->val)) { in zend_vm_trace_compare()
50 } else if (Z_LVAL(p1->val) < Z_LVAL(p2->val)) { in zend_vm_trace_compare()
61 zval *val; in zend_vm_trace_init() local
68 ZEND_HASH_FOREACH_STR_KEY_VAL(&vm_trace_ht, key, val) { in zend_vm_trace_init()
70 …fprintf(f, ADDR_FMT" "ADDR_FMT" t %s\n", prev_addr, Z_LVAL_P(val) - prev_addr, ZSTR_VAL(prev_key)); in zend_vm_trace_init()
73 prev_addr = Z_LVAL_P(val); in zend_vm_trace_init()
/PHP-8.1/ext/standard/
H A Dphp_mail.h25 #define PHP_MAIL_BUILD_HEADER_CHECK(target, s, key, val) \ argument
27 if (Z_TYPE_P(val) == IS_STRING) { \
28 php_mail_build_headers_elem(&s, key, val); \
29 } else if (Z_TYPE_P(val) == IS_ARRAY) { \
34 php_mail_build_headers_elems(&s, key, val); \
36 …"Header \"%s\" must be of type array|string, %s given", ZSTR_VAL(key), zend_zval_type_name(val)); \
41 #define PHP_MAIL_BUILD_HEADER_DEFAULT(s, key, val) \ argument
43 if (Z_TYPE_P(val) == IS_STRING) { \
44 php_mail_build_headers_elem(&s, key, val); \
45 } else if (Z_TYPE_P(val) == IS_ARRAY) { \
[all …]
H A Dmail.c63 zend_string *value = Z_STR_P(val); in php_mail_build_headers_check_field_value()
68 if (*(value->val+len) == '\r') { in php_mail_build_headers_check_field_value()
70 && *(value->val+len+1) == '\n' in php_mail_build_headers_check_field_value()
71 && (*(value->val+len+2) == ' ' || *(value->val+len+2) == '\t')) { in php_mail_build_headers_check_field_value()
77 if (*(value->val+len) == '\0') { in php_mail_build_headers_check_field_value()
92 if (*(key->val+len) < 33 || *(key->val+len) > 126 || *(key->val+len) == ':') { in php_mail_build_headers_check_field_name()
105 switch(Z_TYPE_P(val)) { in php_mail_build_headers_elem()
153 zval *val; in php_mail_build_headers() local
161 ZVAL_DEREF(val); in php_mail_build_headers()
392 #define MAIL_RET(val) \ in php_mail() argument
[all …]
/PHP-8.1/ext/ffi/
H A Dphp_ffi.h253 void zend_ffi_expr_add(zend_ffi_val *val, zend_ffi_val *op2);
254 void zend_ffi_expr_sub(zend_ffi_val *val, zend_ffi_val *op2);
255 void zend_ffi_expr_mul(zend_ffi_val *val, zend_ffi_val *op2);
256 void zend_ffi_expr_div(zend_ffi_val *val, zend_ffi_val *op2);
259 void zend_ffi_expr_plus(zend_ffi_val *val);
260 void zend_ffi_expr_neg(zend_ffi_val *val);
261 void zend_ffi_expr_bw_not(zend_ffi_val *val);
262 void zend_ffi_expr_bool_not(zend_ffi_val *val);
263 void zend_ffi_expr_sizeof_val(zend_ffi_val *val);
265 void zend_ffi_expr_alignof_val(zend_ffi_val *val);
[all …]
H A Dffi.g461 {zend_ffi_val val;}
500 {zend_ffi_val val;}
608 and_expression(val)
680 cast_expression(val)
728 | OCTNUMBER(val)
729 | DECNUMBER(val)
730 | HEXNUMBER(val)
731 | FLOATNUMBER(val)
732 | STRING(val)
733 | CHARACTER(val)
[all …]
H A Dffi.c7353 val->d = val->u64;
7356 val->d = val->i64;
7361 val->d = val->ch;
7369 val->d = val->u64;
7372 val->d = val->i64;
7377 val->d = val->ch;
7394 val->d = val->ch;
7453 val->ch = val->d;
7499 val->d = -val->d;
7501 val->ch = -val->ch;
[all …]
/PHP-8.1/ext/pdo_dblib/tests/
H A Dbug_38955.phpt14 $db->query("CREATE table php_test(val int)");
16 $db->query("INSERT INTO php_test(val) values(1)");
17 $db->query("INSERT INTO php_test(val) values(2)");
18 $db->query("INSERT INTO php_test(val) values(3)");
19 $db->query("INSERT INTO php_test(val) values(4)");
24 $db->query("INSERT INTO php_test(val) values(5)");
25 $db->query("INSERT INTO php_test(val) values(6)");
40 ["val"]=>
45 ["val"]=>
50 ["val"]=>
[all …]
/PHP-8.1/ext/spl/tests/
H A Diterator_013.phpt10 foreach($it as $key=>$val)
12 echo "$key=>$val\n";
19 foreach($it as $key=>$val)
21 echo "$key=>$val\n";
26 foreach($it as $key=>$val)
28 echo "$key=>$val\n";
35 foreach(new NoRewindIterator($it) as $key=>$val)
37 echo "$key=>$val\n";
42 foreach($it as $key=>$val)
44 echo "$key=>$val\n";
/PHP-8.1/Zend/tests/type_declarations/
H A Dtyped_properties_073.phpt8 public int $val;
16 unset($test->val);
18 var_dump($val = &$test->val);
22 var_dump($test, $val);
29 ["val"]=>
36 ["val"]=>
42 ["val"]=>
H A Dtyped_properties_045.phpt11 foreach ($this as $k => &$val) {
13 var_dump($val);
14 $val = 20;
15 var_dump($val);
17 $val = [];
27 foreach ($foo as $k => &$val) {
28 var_dump($val);
30 $val = 20;
34 $val = [];
/PHP-8.1/ext/soap/
H A Dphp_packet_soap.c296 val = cur; in parse_packet_soap()
313 if (!val) { in parse_packet_soap()
336 xmlNodePtr val; in parse_packet_soap() local
337 val = resp->children; in parse_packet_soap()
339 while (val && val->type != XML_ELEMENT_NODE) { in parse_packet_soap()
340 val = val->next; in parse_packet_soap()
342 if (val != NULL) { in parse_packet_soap()
348 if (val->name) { in parse_packet_soap()
351 } else if (val->next && get_node(val->next, (char*)val->name)) { in parse_packet_soap()
365 val = val->next; in parse_packet_soap()
[all …]
/PHP-8.1/ext/standard/tests/class_object/
H A Dget_object_vars_variation_002.phpt10 $obj->val = $a;
16 $arr['val'] = 'changed.val';
26 ["val"]=>
32 ["val"]=>
33 string(11) "changed.val"
38 ["val"]=>
/PHP-8.1/Zend/tests/arrow_functions/
H A D008.phpt9 foreach ($fn() as $val) {
10 var_dump($val);
14 foreach ($fn() as $val) {
15 var_dump($val);
19 foreach ($fn()() as $val) {
20 var_dump($val);
/PHP-8.1/ext/pdo/tests/
H A Dpdo_011.phpt48 $this->val = $val;
58 function test($id,$val='N/A')
61 return array($id=>$val);
161 ["val"]=>
168 ["val"]=>
175 ["val"]=>
182 ["val"]=>
199 ["val"]=>
206 ["val"]=>
213 ["val"]=>
[all …]
/PHP-8.1/Zend/Optimizer/
H A Dzend_optimizer.c50 zval val; in zend_optimizer_collect_constant() local
56 ZVAL_COPY(&val, value); in zend_optimizer_collect_constant()
131 zval *val; in zend_optimizer_get_collected_constant() local
134 ZVAL_COPY(value, val); in zend_optimizer_get_collected_constant()
161 ZVAL_STR(val, str); in drop_leading_backslash()
215 REQUIRES_STRING(val); in zend_optimizer_update_op1_const()
308 val = &zv; in zend_optimizer_update_op1_const()
311 if (Z_TYPE_P(val) == IS_STRING && Z_STRLEN_P(val) == 0) { in zend_optimizer_update_op1_const()
401 zend_str_tolower(Z_STRVAL_P(val), Z_STRLEN_P(val)); in zend_optimizer_update_op2_const()
405 val = &tmp; in zend_optimizer_update_op2_const()
[all …]
/PHP-8.1/ext/json/
H A Djson_encoder.c36 zend_array *myht = Z_ARRVAL_P(val); in php_json_determine_array_type()
111 if (Z_TYPE_P(val) == IS_ARRAY) { in php_json_encode_array()
112 myht = Z_ARRVAL_P(val); in php_json_encode_array()
119 zend_object *obj = Z_OBJ_P(val); in php_json_encode_array()
527 zend_class_entry *ce = Z_OBJCE_P(val); in php_json_encode_serializable_object()
528 HashTable* myht = Z_OBJPROP_P(val); in php_json_encode_serializable_object()
570 (Z_OBJ(retval) == Z_OBJ_P(val))) { in php_json_encode_serializable_object()
603 switch (Z_TYPE_P(val)) in php_json_encode_zval()
630 return php_json_escape_string(buf, Z_STRVAL_P(val), Z_STRLEN_P(val), options, encoder); in php_json_encode_zval()
646 ZVAL_COPY(&zv, val); in php_json_encode_zval()
[all …]
/PHP-8.1/ext/pdo_mysql/tests/
H A Dpdo_mysql_attr_max_buffer_size.phpt34 … $db->exec(sprintf('CREATE TABLE test(id INT, val LONGBLOB) ENGINE = %s', PDO_MYSQL_TEST_ENGINE));
37 $db->exec('INSERT INTO test(id, val) VALUES (1, REPEAT("01234567890", 10240))');
39 $stmt = $db->prepare('SELECT id, val FROM test');
42 $id = $val = NULL;
44 $stmt->bindColumn(2, $val);
46 printf("[%03d] id = %d, val = %s... (length: %d)\n",
47 $offset, $id, substr($val, 0, 10), strlen($val));
78 [001] id = 1, val = 0123456789... (length: %d)
79 [002] id = 1, val = 0123456789... (length: 1000)
80 [004] id = 1, val = 0123456789... (length: 2000)
/PHP-8.1/ext/session/
H A Dmod_files.c247 n = pwrite(data->fd, ZSTR_VAL(val), ZSTR_LEN(val), 0); in ps_files_write()
252 unsigned int to_write = ZSTR_LEN(val) > UINT_MAX ? UINT_MAX : (unsigned int)ZSTR_LEN(val); in ps_files_write()
253 char *buf = ZSTR_VAL(val); in ps_files_write()
266 n = write(data->fd, ZSTR_VAL(val), ZSTR_LEN(val)); in ps_files_write()
270 if (n != ZSTR_LEN(val)) { in ps_files_write()
491 *val = ZSTR_EMPTY_ALLOC(); in PS_READ_FUNC()
498 n = pread(data->fd, ZSTR_VAL(*val), ZSTR_LEN(*val), 0); in PS_READ_FUNC()
504 char *buf = ZSTR_VAL(*val); in PS_READ_FUNC()
518 n = read(data->fd, ZSTR_VAL(*val), ZSTR_LEN(*val)); in PS_READ_FUNC()
529 *val = ZSTR_EMPTY_ALLOC(); in PS_READ_FUNC()
[all …]
/PHP-8.1/Zend/tests/
H A Ddebug_info-error-1.phpt7 public $val;
9 return $this->val;
11 public function __construct($val) {
12 $this->val = $val;
H A Ddebug_info-error-0.phpt7 public $val;
9 return $this->val;
11 public function __construct($val) {
12 $this->val = $val;

Completed in 62 milliseconds

12345678910>>...20