Home
last modified time | relevance | path

Searched refs:var (Results 1 – 25 of 690) sorted by relevance

12345678910>>...28

/php-src/Zend/tests/grammar/
H A Dsemi_reserved_003.phpt8 var $empty = 'empty';
10 var $class = 'class';
11 var $trait = 'trait';
26 var $and = 'and';
34 var $or = 'or';
38 var $var = 'var';
59 var $fn = 'fn';
60 var $if = 'if';
67 var $do = 'do';
69 var $as = 'as';
[all …]
/php-src/Zend/tests/float_to_int/
H A Dno_warnings_compatible_float_literals_assignment_ops.phpt8 $var = 3;
9 $var |= 1.0;
12 $var = 3;
13 $var &= 1.0;
16 $var = 3;
17 $var ^= 1.0;
20 $var = 3;
21 $var <<= 1.0;
24 $var = 3;
29 $var = 9;
[all …]
H A Dno_warnings_compatible_string_float_vars.phpt10 $var = $float|3;
11 var_dump($var);
13 $var = $float&3;
14 var_dump($var);
17 var_dump($var);
20 var_dump($var);
23 var_dump($var);
25 $var = $float;
26 $var <<= 3;
29 $var = $float;
[all …]
H A Dno_warnings_compatible_float_vars.phpt10 $var = ~$float;
11 var_dump($var);
13 $var = $float|3;
14 var_dump($var);
17 var_dump($var);
20 var_dump($var);
23 var_dump($var);
28 $var = $float;
29 $var <<= 3;
32 $var = $float;
[all …]
H A Dno_warning_compatible_float_literals.phpt7 $var = ~1.0;
8 var_dump($var);
9 $var = 1.0|3;
10 var_dump($var);
11 $var = 1.0&3;
12 var_dump($var);
13 $var = 1.0^3;
14 var_dump($var);
16 var_dump($var);
18 var_dump($var);
[all …]
H A Dwarnings_float_literals_assignment_ops.phpt8 $var = 3;
9 $var |= 1.5;
12 $var = 3;
13 $var &= 1.5;
16 $var = 3;
17 $var ^= 1.5;
20 $var = 3;
21 $var <<= 1.5;
24 $var = 3;
29 $var = 9;
[all …]
H A Dno_warning_compatible_string_float_literals.phpt7 $var = '1.0'|3;
8 var_dump($var);
9 $var = '1.0'&3;
10 var_dump($var);
11 $var = '1.0'^3;
12 var_dump($var);
14 var_dump($var);
16 var_dump($var);
18 var_dump($var);
20 var_dump($var);
[all …]
H A Dwarnings_string_float_literals_assignment_ops.phpt8 $var = 3;
9 $var |= '1.5';
10 var_dump($var);
12 $var = 3;
13 $var &= '1.5';
14 var_dump($var);
16 $var = 3;
17 $var ^= '1.5';
20 $var = 3;
24 $var = 3;
[all …]
H A Dwarnings_string_float_vars.phpt10 $var = $float|3;
11 var_dump($var);
13 $var = $float&3;
14 var_dump($var);
17 var_dump($var);
20 var_dump($var);
23 var_dump($var);
25 $var = $float;
26 $var <<= 3;
29 $var = $float;
[all …]
H A Dwarnings_float_vars.phpt10 $var = ~$float;
11 var_dump($var);
13 $var = $float|3;
14 var_dump($var);
17 var_dump($var);
20 var_dump($var);
23 var_dump($var);
28 $var = $float;
29 $var <<= 3;
32 $var = $float;
[all …]
H A Dwarnings_string_float_literals.phpt8 $var = '1.5'|3;
9 var_dump($var);
10 $var = '1.5'&3;
11 var_dump($var);
12 $var = '1.5'^3;
13 var_dump($var);
15 var_dump($var);
17 var_dump($var);
19 var_dump($var);
21 var_dump($var);
[all …]
/php-src/Zend/tests/assert/
H A Dexpect_020.phpt9 $var = 'test';
10 $str = "$var, $var[1], {$var}[], {$var[1]}[], ${var}[], ${var[1]}[]";
18 $var = 'test';
19 $str = "$var, {$var[1]}, {$var}[], {$var[1]}[], {$var}[], {$var[1]}[]";
/php-src/ext/standard/tests/class_object/
H A Dget_class_vars_variation2.phpt16 public $pub = "public var";
18 private $priv = "private var";
77 string(10) "public var"
85 string(10) "public var"
89 string(11) "private var"
101 string(10) "public var"
105 string(11) "private var"
117 string(10) "public var"
129 string(10) "public var"
141 string(10) "public var"
[all …]
/php-src/Zend/tests/arrow_functions/
H A D001.phpt15 // Closing over $var
16 $var = 4;
17 $foo = fn() => $var;
20 // Not closing over $var, it's a parameter
21 $foo = fn($var) => $var;
25 $var = 5;
26 $foo = fn() => ++$var;
28 var_dump($var);
31 $var = 6;
32 var_dump((fn() => fn() => $var)()());
[all …]
/php-src/ext/filter/tests/
H A D038.phpt8 $var = 12;
9 $res = filter_var($var, FILTER_VALIDATE_INT, array('flags'=>FILTER_FLAG_ALLOW_OCTAL));
12 $var = array(12);
13 $res = filter_var($var, FILTER_VALIDATE_INT, array('flags'=>FILTER_FLAG_ALLOW_OCTAL));
16 $var = 12;
17 $res = filter_var($var, FILTER_VALIDATE_INT, array('flags'=>FILTER_FLAG_ALLOW_OCTAL|FILTER_FORCE_AR…
22 $var = 12;
23 $res = filter_var($var, FILTER_VALIDATE_INT, array('flags'=>FILTER_FLAG_ALLOW_OCTAL|FILTER_REQUIRE_…
26 $var = array(12);
30 $var = array(12);
[all …]
/php-src/Zend/tests/constant_expressions/
H A Dconstant_expressions_coalesce.phpt22 var_dump((function(){ static $var = null ?? A[1]['undefined']['index'] ?? 1; return $var; })());
23 var_dump((function(){ static $var = null ?? A['undefined']['index'] ?? 2; return $var; })());
24 var_dump((function(){ static $var = null ?? A[1][0][2] ?? 3; return $var; })());
25 var_dump((function(){ static $var = A[1][0][2] ?? 4; return $var; })());
27 var_dump((new class { public $var = null ?? A[1]['undefined']['index'] ?? 1; })->var);
28 var_dump((new class { public $var = null ?? A['undefined']['index'] ?? 2; })->var);
29 var_dump((new class { public $var = null ?? A[1][0][2] ?? 3; })->var);
30 var_dump((new class { public $var = A[1][0][2] ?? 4; })->var);
/php-src/ext/pdo_firebird/
H A Dfirebird_statement.c208 var->sqldata = &((char*)var->sqlind)[sizeof(short)]; in pdo_firebird_stmt_execute()
314 var->sqltype = SQL_VARYING | (var->sqltype & 1); in pdo_firebird_stmt_describe()
317 ? (var->aliasname_length + var->relname_length + 1) in pdo_firebird_stmt_describe()
324 memmove(cp, var->relname, var->relname_length); in pdo_firebird_stmt_describe()
328 memmove(cp, var->aliasname, var->aliasname_length); in pdo_firebird_stmt_describe()
520 ZVAL_STRINGL_FAST(result, var->sqldata, var->sqllen); in pdo_firebird_stmt_get_col()
633 XSQLVAR *var; in pdo_firebird_stmt_param_hook() local
684 var->sqlind = (void*)emalloc(var->sqllen + 2*sizeof(short)); in pdo_firebird_stmt_param_hook()
685 var->sqldata = &((char*)var->sqlind)[sizeof(short)]; in pdo_firebird_stmt_param_hook()
808 var->sqltype = SQL_DOUBLE | (var->sqltype & 1); in pdo_firebird_stmt_param_hook()
[all …]
/php-src/ext/pcre/tests/
H A D005.phpt88 [2] => /p2/var/php_gcov/PHP_4_4/ext/ming/ming.c
91 [5] => /p2/var/php_gcov/PHP_4_4/ext/ming/ming.c
103 [2] => /p2/var/php_gcov/PHP_4_4/ext/ming/ming.c
106 [5] => /p2/var/php_gcov/PHP_4_4/ext/ming/ming.c
119 [5] => /p2/var/php_gcov/PHP_4_4/ext/oci8/oci8.c
222 [5] => /p2/var/php_gcov/PHP_4_4/regex/regexec.c
305 [2] => /p2/var/php_gcov/PHP_4_4/ext/yp/yp.c
308 [5] => /p2/var/php_gcov/PHP_4_4/ext/yp/yp.c
402 [5] => /p2/var/php_gcov/PHP_4_4/Zend/zend_ini.c
449 [5] => /p2/var/php_gcov/PHP_5_2/ext/ming/ming.c
[all …]
/php-src/Zend/tests/
H A D035.phpt6 static $var = -1;
7 var_dump($var);
9 global $var, $var, $var;
10 var_dump($var);
12 var_dump($GLOBALS['var']);
/php-src/Zend/Optimizer/
H A Dzend_ssa.h165 ZEND_ASSERT(var->use_chain < 0); in _zend_ssa_remove_def()
167 var->definition = -1; in _zend_ssa_remove_def()
173 _zend_ssa_remove_def(var); in zend_ssa_remove_result_def()
180 _zend_ssa_remove_def(var); in zend_ssa_remove_op1_def()
187 _zend_ssa_remove_def(var); in zend_ssa_remove_op2_def()
196 if (ssa_op->op1_use == var) { in END_EXTERN_C()
212 if (p->sources[j] == var) { in zend_ssa_next_use_phi()
226 return ssa_op->op1_use == var && ssa_op->op2_use != var; in zend_ssa_is_no_val_use()
229 return ssa_op->op2_use == var && ssa_op->op1_use != var; in zend_ssa_is_no_val_use()
231 if (ssa_op->result_use == var in zend_ssa_is_no_val_use()
[all …]
H A Doptimize_temp_vars_5.c81 currT = VAR_NUM(opline->op1.var) - offset; in zend_optimize_temporary_variables()
84 int var; in zend_optimize_temporary_variables() local
86 var = max; in zend_optimize_temporary_variables()
87 while (var >= 0 && !zend_bitset_in(taken_T, var)) { in zend_optimize_temporary_variables()
88 var--; in zend_optimize_temporary_variables()
90 max = MAX(max, var + num); in zend_optimize_temporary_variables()
91 var = var + 1; in zend_optimize_temporary_variables()
92 map_T[currT] = var; in zend_optimize_temporary_variables()
93 zend_bitset_incl(taken_T, var); in zend_optimize_temporary_variables()
94 opline->op1.var = NUM_VAR(var + offset); in zend_optimize_temporary_variables()
[all …]
H A Dzend_ssa.c110 phi->var = var; in add_pi()
150 pi_range(phi, var, var, val, val, 0, 0, 0); in pi_range_equals()
153 pi_range(phi, var, var, val, val, 0, 0, 1); in pi_range_not_equals()
269 int var = EX_VAR_TO_NUM(opline->op1.var); in place_essa_pis() local
277 int var = EX_VAR_TO_NUM(opline->op1.var); in place_essa_pis() local
842 var[phi->var] = ssa_vars_count; in zend_ssa_rename()
845 var[phi->var] = phi->ssa_var; in zend_ssa_rename()
879 p->sources[j] = var[p->var]; in zend_ssa_rename()
892 p->sources[j] = var[p->var]; in zend_ssa_rename()
903 if (q->pi < 0 && q->var == p->var) { in zend_ssa_rename()
[all …]
H A Dssa_integrity.c128 if (var->definition < 0 && !var->definition_phi && i > op_array->last_var) { in ssa_verify_integrity()
136 if (var->definition >= 0 && var->definition_phi) { in ssa_verify_integrity()
152 use = var->use_chain; in ssa_verify_integrity()
167 FOREACH_USE(var, use) { in ssa_verify_integrity()
250 if (VAR_NUM(opline->op1.var) != ssa->vars[ssa_op->op1_use].var) { in ssa_verify_integrity()
267 if (VAR_NUM(opline->op2.var) != ssa->vars[ssa_op->op2_use].var) { in ssa_verify_integrity()
284 if (VAR_NUM(opline->result.var) != ssa->vars[ssa_op->result_use].var) { in ssa_verify_integrity()
297 if (VAR_NUM(opline->op1.var) != ssa->vars[ssa_op->op1_def].var) { in ssa_verify_integrity()
310 if (VAR_NUM(opline->op2.var) != ssa->vars[ssa_op->op2_def].var) { in ssa_verify_integrity()
323 if (VAR_NUM(opline->result.var) != ssa->vars[ssa_op->result_def].var) { in ssa_verify_integrity()
[all …]
/php-src/Zend/tests/generators/
H A Dyield_ref_function_call_by_reference.phpt6 function &nop(&$var) {
7 return $var;
10 function &gen(&$var) {
11 yield nop($var);
14 $var = "foo";
15 $gen = gen($var);
20 var_dump($var);
/php-src/ext/dom/tests/
H A Dgh9142.phpt8 $document = '<var>One</var><var>Two</var>';
12 foreach ((new DOMXPath($dom))->query('//var') as $var) {
13 $var->replaceWith($dom->createElement('p', $var->nodeValue));

Completed in 46 milliseconds

12345678910>>...28