Home
last modified time | relevance | path

Searched refs:val (Results 51 – 75 of 481) sorted by relevance

12345678910>>...20

/PHP-7.2/ext/standard/tests/array/
H A Darray_fill_basic.phpt5 /* Prototype : proto array array_fill(int start_key, int num, mixed val)
6 …tion: Create an array containing num elements starting with index start_key each initialized to val
12 // calling the array_fill with all possible valid values for 'val' argument
19 // array of possible valid values for 'val' argument
36 $val = $values[$i];
38 var_dump( array_fill($start_key,$num,$val) );
H A Darray_fill_variation4.phpt2 Test array_fill() function : usage variations - using return value of array_fill for 'val' argument
5 /* Prototype : proto array array_fill(int start_key, int num, mixed val)
6 …tion: Create an array containing num elements starting with index start_key each initialized to val
10 /* passing array_fill() as the 'val' argument in array_fill() function */
20 // array of possible valid values for 'val' argument
37 $val = $values[$i];
39 var_dump( array_fill($start_key,$num,array_fill($start_key,$num,$val)) );
H A Dextract_variation1.phpt6 $val = 4;
9 debug_zval_dump($val);
14 debug_zval_dump($val);
H A Darray_fill_variation5.phpt2 Test array_fill() function : usage variations - different types of array values for 'val' argument
5 /* Prototype : array array_fill(int $start_key, int $num, mixed $val)
6 …tion: Create an array containing num elements starting with index start_key each initialized to val
11 * testing array_fill() by passing different types of array values for 'val' argument
21 //array of different types of array values for 'val' argument
39 // loop through each element of the values array for 'val' argument
41 echo "--- Testing array_fill() with different types of array values for 'val' argument ---\n";
46 $val = $values[$i];
48 var_dump( array_fill($start_key , $num , $val) );
57 --- Testing array_fill() with different types of array values for 'val' argument ---
/PHP-7.2/Zend/tests/
H A Dforeach_004.phpt29 foreach ($obj as $key => &$val) echo "$val\n";
37 foreach (new IT($trap) as $key => &$val) echo "$val\n";
44 foreach ((object)new IT($trap) as $key => &$val) echo "$val\n";
H A Dbug31683.phpt13 function __set($test, $val) {
15 var_dump($val);
17 $val = 'bug';
31 function offsetset($test, $val) {
33 var_dump($val);
35 $val = 'bug';
H A Dforeach.phpt6 foreach($foo as $key => &$val) {
7 if($val == 3) {
10 $val++;
H A Dforeach_003.phpt32 foreach ($obj as $key => $val) echo "$val\n";
40 foreach (new IT(3, $trap) as $key => $val) echo "$val\n";
47 foreach ((object)new IT(2, $trap) as $key => $val) echo "$val\n";
H A Dclass_constants_002.phpt7 const val = 1;
10 function foo($v = test::val) {
14 function bar($b = NoSuchClass::val) {
/PHP-7.2/Zend/tests/traits/
H A Dflattening001.phpt14 public function setTextT2($val) {
15 $this->text = $val;
23 public function setText($val) {
24 $this->text = $val;
/PHP-7.2/tests/lang/
H A DpassByReference_005.phpt6 function v($val) {
7 $val = "Val changed";
20 function vr($val, &$ref) {
21 $val = "Val changed";
25 function rv(&$ref, $val) {
26 $val = "Val changed";
39 $val = "Val changed";
43 function v($val) {
44 $val = "Val changed";
57 $val = "Val changed";
[all …]
H A Dbug24783.phpt2 Bug #24783 ($key not binary safe in "foreach($arr as $key => $val)")
7 foreach ($arr as $key => $val) {
9 echo urlencode($key), ' => ', urlencode($val), "\n";
/PHP-7.2/ext/pdo/tests/
H A Dpdo_010.phpt21 $db->exec('CREATE TABLE test(id int NOT NULL PRIMARY KEY, classtype int, val VARCHAR(10), grp VARCH…
27 $stmt = $db->prepare('SELECT classtypes.name, test.grp AS grp, test.id AS id, test.val AS val FROM …
72 ["val"]=>
79 ["val"]=>
89 ["val"]=>
96 ["val"]=>
109 ["val"]=>
116 ["val"]=>
H A Dbug_34630.phpt21 $db->exec('CREATE TABLE test (id int NOT NULL PRIMARY KEY, val BLOB)');
23 $db->exec('CREATE TABLE test (id int NOT NULL PRIMARY KEY, val VARCHAR(256))');
36 …$insert = $db->prepare("insert into test (id, val) values (1, EMPTY_BLOB()) RETURNING val INTO :bl…
38 $insert = $db->prepare("insert into test (id, val) values (1, :blob)");
54 ["val"]=>
H A Dpdo_007.phpt17 $db->exec('CREATE TABLE test(id CHAR(1) NOT NULL PRIMARY KEY, val VARCHAR(10))');
22 $stmt = $db->prepare('SELECT id, val from test');
52 ["val"]=>
57 ["val"]=>
62 ["val"]=>
H A Dpdo_020.phpt17 $db->exec('CREATE TABLE test(id INT NOT NULL PRIMARY KEY, val VARCHAR(10), val2 VARCHAR(16))');
22 foreach (array('SELECT id, val FROM test', 'SELECT id, val, val2 FROM test', 'SELECT COUNT(*) FROM …
32 Counted 2 columns after SELECT id, val FROM test.
33 Counted 3 columns after SELECT id, val, val2 FROM test.
/PHP-7.2/ext/standard/
H A Dincomplete_class.c138 zval *val; in php_lookup_class_name() local
143 …if ((val = zend_hash_str_find(object_properties, MAGIC_MEMBER, sizeof(MAGIC_MEMBER)-1)) != NULL &&… in php_lookup_class_name()
144 return zend_string_copy(Z_STR_P(val)); in php_lookup_class_name()
155 zval val; in php_store_class_name() local
158 ZVAL_STRINGL(&val, name, len); in php_store_class_name()
159 zend_hash_str_update(Z_OBJPROP_P(object), MAGIC_MEMBER, sizeof(MAGIC_MEMBER)-1, &val); in php_store_class_name()
H A Dvar.c91 zval *val; in php_var_dump() local
161 zval *val; in php_var_dump() local
261 zval *val; in php_debug_zval_dump() local
448 zval *val; in php_var_export_ex() local
709 zval *val; in php_var_serialize_collect_names() local
752 if (val != NULL) { in php_var_serialize_class()
754 val = Z_INDIRECT_P(val); in php_var_serialize_class()
768 if (val != NULL) { in php_var_serialize_class()
770 val = Z_INDIRECT_P(val); in php_var_serialize_class()
787 if (val != NULL) { in php_var_serialize_class()
[all …]
/PHP-7.2/ext/gmp/tests/
H A Dgmp_gcdext.phpt25 foreach ($a as $val) {
26 $r = gmp_gcdext($val[0],$val[1]);
27 $check = gmp_add(gmp_mul($val[0],$r['s']), gmp_mul($val[1],$r['t']));
32 var_dump(gmp_gcdext($val[0],array()));
/PHP-7.2/ext/spl/tests/
H A DrecursiveIteratorIterator_endchildren_error.phpt21 foreach ($recItIt as $val) echo "$val\n";
27 foreach ($recItIt2 as $val) echo "$val\n";
H A Darray_012.phpt12 foreach($it as $key => $val)
14 echo "$key=>$val\n";
34 foreach($it as $key => $val)
36 echo "$key=>$val\n";
/PHP-7.2/ext/interbase/
H A Dibase_query.c90 } val; member
446 zval *subval = val; in _php_ibase_bind_array()
484 convert_to_double(val); in _php_ibase_bind_array()
515 Z_STRVAL_P(val)); in _php_ibase_bind_array()
541 convert_to_long(val); in _php_ibase_bind_array()
542 if (Z_LVAL_P(val) > SHRT_MAX || Z_LVAL_P(val) < SHRT_MIN) { in _php_ibase_bind_array()
549 convert_to_long(val); in _php_ibase_bind_array()
551 if (Z_LVAL_P(val) > ISC_LONG_MAX || Z_LVAL_P(val) < ISC_LONG_MIN) { in _php_ibase_bind_array()
560 convert_to_long(val); in _php_ibase_bind_array()
566 Z_STRVAL_P(val)); in _php_ibase_bind_array()
[all …]
/PHP-7.2/main/
H A Dphp_variables.h39 PHPAPI void php_register_variable(char *var, char *val, zval *track_vars_array);
41 PHPAPI void php_register_variable_safe(char *var, char *val, size_t val_len, zval *track_vars_array…
42 PHPAPI void php_register_variable_ex(char *var, zval *val, zval *track_vars_array);
/PHP-7.2/ext/dba/libinifile/
H A Dinifile.c65 if (val->value) { in inifile_val_free()
66 efree(val->value); in inifile_val_free()
147 char *val; in etrim() local
153 val = (char*)str; in etrim()
154 while (*val && strchr(" \t\r\n", *val)) { in etrim()
155 val++; in etrim()
157 l = strlen(val); in etrim()
247 val_type val; in inifile_fetch() local
266 val.value = estrdup(ln.val.value ? ln.val.value : ""); in inifile_fetch()
271 return val; in inifile_fetch()
[all …]
/PHP-7.2/ext/bcmath/libbcmath/src/
H A Ddiv.c93 int scale1, val; in bc_divide() local
217 val = (int) *ptr1 - (int) *ptr2-- - borrow; in bc_divide()
218 if (val < 0) in bc_divide()
220 val += 10; in bc_divide()
225 *ptr1-- = val; in bc_divide()
238 val = (int) *ptr1 + (int) *ptr2-- + carry; in bc_divide()
239 if (val > 9) in bc_divide()
241 val -= 10; in bc_divide()
246 *ptr1-- = val; in bc_divide()

Completed in 43 milliseconds

12345678910>>...20