Home
last modified time | relevance | path

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

12345678910>>...27

/PHP-7.4/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-7.4/Zend/tests/assert/
H A Dexpect_020.phpt9 $var = 'test';
10 $str = "$var, $var[1], {$var}[], {$var[1]}[], ${var}[], ${var[1]}[]";
15 $var = 'test';
16 $str = "$var, {$var[1]}, {$var}[], {$var[1]}[], {$var}[], {$var[1]}[]";
/PHP-7.4/ext/standard/tests/class_object/
H A Dget_class_vars_variation2.phpt22 public $pub = "public var";
84 string(10) "public var"
92 string(10) "public var"
94 string(13) "protected var"
96 string(11) "private var"
108 string(10) "public var"
112 string(11) "private var"
124 string(10) "public var"
136 string(10) "public var"
148 string(10) "public var"
[all …]
/PHP-7.4/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-7.4/Zend/tests/
H A D035.phpt6 static $var, $var, $var = -1;
7 var_dump($var);
9 global $var, $var, $var;
10 var_dump($var);
12 var_dump($GLOBALS['var']);
H A Dconstant_expressions_coalesce.phpt33 var_dump((function(){ static $var = null ?? A[1]['undefined']['index'] ?? 1; return $var; })());
34 var_dump((function(){ static $var = null ?? A['undefined']['index'] ?? 2; return $var; })());
35 var_dump((function(){ static $var = null ?? A[1][0][2] ?? 3; return $var; })());
36 var_dump((function(){ static $var = A[1][0][2] ?? 4; return $var; })());
38 var_dump((new class { public $var = null ?? A[1]['undefined']['index'] ?? 1; })->var);
39 var_dump((new class { public $var = null ?? A['undefined']['index'] ?? 2; })->var);
40 var_dump((new class { public $var = null ?? A[1][0][2] ?? 3; })->var);
41 var_dump((new class { public $var = A[1][0][2] ?? 4; })->var);
H A Dassign_to_var_001.phpt6 $var = array(1,2,3);
7 $var1 = &$var;
8 $var = $var[1];
10 var_dump($var);
H A Dassign_to_var_002.phpt6 $var = "intergalactic";
7 $var1 = &$var;
8 $var = $var[5];
10 var_dump($var);
H A Dns_010.phpt9 static $var = "var ok\n";
26 echo Foo::$var;
27 echo Y\Foo::$var;
28 echo \X\Foo::$var;
39 var ok
40 var ok
41 var ok
H A Derrmsg_039.phpt7 var $var;
8 var $var;
14 Fatal error: Cannot redeclare test::$var in %s on line %d
H A Dns_037.phpt9 static $var = "var ok\n";
26 echo X::$var;
27 echo Y\X::$var;
28 echo \X\X::$var;
39 var ok
40 var ok
41 var ok
/PHP-7.4/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-7.4/ext/pdo_firebird/
H A Dfirebird_statement.c43 if (var->sqlind) { in free_sqlda()
110 var->sqlind = (void*)ecalloc(1, var->sqllen + 2 * sizeof(short)); in firebird_stmt_execute()
111 var->sqldata = &((char*)var->sqlind)[sizeof(short)]; in firebird_stmt_execute()
217 ? (var->aliasname_length + var->relname_length + 1) in firebird_stmt_describe()
224 memmove(cp, var->relname, var->relname_length); in firebird_stmt_describe()
228 memmove(cp, var->aliasname, var->aliasname_length); in firebird_stmt_describe()
522 XSQLVAR *var; in firebird_stmt_param_hook() local
576 var->sqlind = (void*)emalloc(var->sqllen + 2*sizeof(short)); in firebird_stmt_param_hook()
577 var->sqldata = &((char*)var->sqlind)[sizeof(short)]; in firebird_stmt_param_hook()
694 var->sqltype = SQL_DOUBLE | (var->sqltype & 1); in firebird_stmt_param_hook()
[all …]
/PHP-7.4/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-7.4/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-7.4/ext/opcache/Optimizer/
H A Doptimize_temp_vars_5.c82 currT = VAR_NUM(opline->op1.var) - offset; in zend_optimize_temporary_variables()
85 int var; in zend_optimize_temporary_variables() local
87 var = max; in zend_optimize_temporary_variables()
88 while (var >= 0 && !zend_bitset_in(taken_T, var)) { in zend_optimize_temporary_variables()
89 var--; in zend_optimize_temporary_variables()
91 max = MAX(max, var + num); in zend_optimize_temporary_variables()
92 var = var + 1; in zend_optimize_temporary_variables()
93 map_T[currT] = var; in zend_optimize_temporary_variables()
95 zend_bitset_incl(taken_T, var); in zend_optimize_temporary_variables()
96 opline->op1.var = NUM_VAR(var + offset); in zend_optimize_temporary_variables()
[all …]
H A Dzend_ssa.h160 ZEND_ASSERT(var->use_chain < 0); in _zend_ssa_remove_def()
161 ZEND_ASSERT(!var->phi_use_chain); in _zend_ssa_remove_def()
162 var->definition = -1; in _zend_ssa_remove_def()
168 _zend_ssa_remove_def(var); in zend_ssa_remove_result_def()
175 _zend_ssa_remove_def(var); in zend_ssa_remove_op1_def()
182 _zend_ssa_remove_def(var); in zend_ssa_remove_op2_def()
191 if (ssa_op->op1_use == var) { in END_EXTERN_C()
207 if (p->sources[j] == var) { in zend_ssa_next_use_phi()
218 return ssa_op->op1_use == var && ssa_op->op2_use != var; in zend_ssa_is_no_val_use()
224 if (ssa_op->result_use == var in zend_ssa_is_no_val_use()
[all …]
H A Dzend_ssa.c97 phi->var = var; in add_pi()
137 pi_range(phi, var, var, val, val, 0, 0, 0); in pi_range_equals()
140 pi_range(phi, var, var, val, val, 0, 0, 1); in pi_range_not_equals()
473 var = EX_VAR_TO_NUM((opline-1)->op1.var); in place_essa_pis()
476 var = EX_VAR_TO_NUM((opline-1)->op2.var); in place_essa_pis()
549 var[phi->var] = ssa_vars_count; in zend_ssa_rename()
552 var[phi->var] = phi->ssa_var; in zend_ssa_rename()
825 p->sources[j] = var[p->var]; in zend_ssa_rename()
838 p->sources[j] = var[p->var]; in zend_ssa_rename()
845 if (q->pi < 0 && q->var == p->var) { in zend_ssa_rename()
[all …]
H A Dssa_integrity.c123 if (var->definition < 0 && !var->definition_phi && i > op_array->last_var) { in ssa_verify_integrity()
127 if (var->phi_use_chain) { in ssa_verify_integrity()
131 if (var->definition >= 0 && var->definition_phi) { in ssa_verify_integrity()
147 FOREACH_USE(var, use) { in ssa_verify_integrity()
216 if (VAR_NUM(opline->op1.var) != ssa->vars[ssa_op->op1_use].var) { in ssa_verify_integrity()
229 if (VAR_NUM(opline->op2.var) != ssa->vars[ssa_op->op2_use].var) { in ssa_verify_integrity()
242 if (VAR_NUM(opline->result.var) != ssa->vars[ssa_op->result_use].var) { in ssa_verify_integrity()
255 if (VAR_NUM(opline->op1.var) != ssa->vars[ssa_op->op1_def].var) { in ssa_verify_integrity()
268 if (VAR_NUM(opline->op2.var) != ssa->vars[ssa_op->op2_def].var) { in ssa_verify_integrity()
281 if (VAR_NUM(opline->result.var) != ssa->vars[ssa_op->result_def].var) { in ssa_verify_integrity()
[all …]
/PHP-7.4/ext/standard/tests/general_functions/
H A Disset_basic2.phpt5 /* Prototype : bool isset ( mixed $var [, mixed $var [, $... ]] )
31 var_dump(isset($var));
32 var_dump(isset($var[1]));
33 var_dump(isset($var, $var[1]));
35 $var[1] = 10;
36 var_dump(isset($var));
37 var_dump(isset($var[1]));
38 var_dump(isset($var, $var[1]));
/PHP-7.4/ext/spl/tests/
H A Darray_023.phpt8 public $var = 'a';
15 var_dump($a->var);
20 var_dump($a->var);
24 public $var = 'aaa';
31 var_dump($a->var);
36 var_dump($a->var);
41 ["var"]=>
53 ["var"]=>
65 ["var"]=>
77 ["var"]=>
/PHP-7.4/ext/xmlrpc/tests/
H A Dbug38431.phpt10 $var = array(1,2,3);
11 var_dump(xmlrpc_get_type($var));
12 $var = array("test"=>1,2,3);
13 var_dump(xmlrpc_get_type($var));
14 $var = array("test"=>1,"test2"=>2);
15 var_dump(xmlrpc_get_type($var));
/PHP-7.4/Zend/tests/list/
H A Dlist_reference_003.phpt24 [&$var] = no_ref($a);
25 var_dump($var);
29 [&$var] = no_ref_by_ref($a);
30 var_dump($var);
34 [&$var] = ref_return($a);
35 var_dump($var);
38 [,&$var] = ref_return_global();
39 var_dump($var);
/PHP-7.4/ext/standard/tests/array/
H A Dbug77793.phpt7 $vars = ['var' => $str . 'bar'];
8 $var = &$vars['var'];
10 var_dump($vars, $var);
15 ["var"]=>
/PHP-7.4/win32/build/
H A Dphpize.js.in29 var modules = "";
41 var t = "";
64 var deps = new Array();
85 var c, i, ok, n;
86 var item = null;
129 var i, mod_name, j;
130 var output = "";
131 var item = null;
152 var i, mod_name, j;
153 var item;
[all …]

Completed in 50 milliseconds

12345678910>>...27