/PHP-8.0/Zend/tests/grammar/ |
H A D | semi_reserved_003.phpt | 8 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-8.0/Zend/tests/assert/ |
H A D | expect_020.phpt | 9 $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-8.0/ext/standard/tests/class_object/ |
H A D | get_class_vars_variation2.phpt | 16 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-8.0/Zend/tests/arrow_functions/ |
H A D | 001.phpt | 15 // 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-8.0/Zend/tests/ |
H A D | 035.phpt | 6 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 D | constant_expressions_coalesce.phpt | 22 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);
|
H A D | assign_to_var_001.phpt | 6 $var = array(1,2,3); 7 $var1 = &$var; 8 $var = $var[1]; 10 var_dump($var);
|
H A D | assign_to_var_002.phpt | 6 $var = "intergalactic"; 7 $var1 = &$var; 8 $var = $var[5]; 10 var_dump($var);
|
H A D | errmsg_039.phpt | 7 var $var; 8 var $var; 14 Fatal error: Cannot redeclare test::$var in %s on line %d
|
H A D | ns_010.phpt | 9 static $var = "var ok\n"; 26 echo Foo::$var; 27 echo Y\Foo::$var; 28 echo \X\Foo::$var; 40 var ok 41 var ok 42 var ok
|
H A D | ns_037.phpt | 9 static $var = "var ok\n"; 26 echo X::$var; 27 echo Y\X::$var; 28 echo \X\X::$var; 40 var ok 41 var ok 42 var ok
|
/PHP-8.0/ext/filter/tests/ |
H A D | 038.phpt | 8 $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-8.0/ext/pdo_firebird/ |
H A D | firebird_statement.c | 41 if (var->sqlind) { in free_sqlda() 108 var->sqlind = (void*)ecalloc(1, var->sqllen + 2 * sizeof(short)); in firebird_stmt_execute() 109 var->sqldata = &((char*)var->sqlind)[sizeof(short)]; in firebird_stmt_execute() 215 ? (var->aliasname_length + var->relname_length + 1) in firebird_stmt_describe() 222 memmove(cp, var->relname, var->relname_length); in firebird_stmt_describe() 226 memmove(cp, var->aliasname, var->aliasname_length); in firebird_stmt_describe() 520 XSQLVAR *var; in firebird_stmt_param_hook() local 574 var->sqlind = (void*)emalloc(var->sqllen + 2*sizeof(short)); in firebird_stmt_param_hook() 575 var->sqldata = &((char*)var->sqlind)[sizeof(short)]; in firebird_stmt_param_hook() 692 var->sqltype = SQL_DOUBLE | (var->sqltype & 1); in firebird_stmt_param_hook() [all …]
|
/PHP-8.0/ext/pcre/tests/ |
H A D | 005.phpt | 88 [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-8.0/Zend/tests/generators/ |
H A D | yield_ref_function_call_by_reference.phpt | 6 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-8.0/ext/opcache/Optimizer/ |
H A D | zend_ssa.h | 163 ZEND_ASSERT(var->use_chain < 0); in _zend_ssa_remove_def() 165 var->definition = -1; in _zend_ssa_remove_def() 171 _zend_ssa_remove_def(var); in zend_ssa_remove_result_def() 178 _zend_ssa_remove_def(var); in zend_ssa_remove_op1_def() 185 _zend_ssa_remove_def(var); in zend_ssa_remove_op2_def() 194 if (ssa_op->op1_use == var) { in END_EXTERN_C() 210 if (p->sources[j] == var) { in zend_ssa_next_use_phi() 224 return ssa_op->op1_use == var && ssa_op->op2_use != var; in zend_ssa_is_no_val_use() 227 return ssa_op->op2_use == var && ssa_op->op1_use != var; in zend_ssa_is_no_val_use() 229 if (ssa_op->result_use == var in zend_ssa_is_no_val_use() [all …]
|
H A D | optimize_temp_vars_5.c | 82 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 D | zend_ssa.c | 111 phi->var = var; in add_pi() 151 pi_range(phi, var, var, val, val, 0, 0, 0); in pi_range_equals() 154 pi_range(phi, var, var, val, val, 0, 0, 1); in pi_range_not_equals() 271 int var = EX_VAR_TO_NUM(opline->op1.var); in place_essa_pis() local 279 int var = EX_VAR_TO_NUM(opline->op1.var); in place_essa_pis() local 817 var[phi->var] = ssa_vars_count; in zend_ssa_rename() 820 var[phi->var] = phi->ssa_var; in zend_ssa_rename() 854 p->sources[j] = var[p->var]; in zend_ssa_rename() 867 p->sources[j] = var[p->var]; in zend_ssa_rename() 878 if (q->pi < 0 && q->var == p->var) { in zend_ssa_rename() [all …]
|
H A D | ssa_integrity.c | 123 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-8.0/ext/spl/tests/ |
H A D | array_023.phpt | 8 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-8.0/ext/standard/tests/array/ |
H A D | bug77793.phpt | 7 $vars = ['var' => $str . 'bar']; 8 $var = &$vars['var']; 10 var_dump($vars, $var); 15 ["var"]=>
|
/PHP-8.0/Zend/tests/list/ |
H A D | list_reference_003.phpt | 24 [&$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-8.0/ext/standard/tests/general_functions/ |
H A D | isset_basic2.phpt | 27 var_dump(isset($var)); 28 var_dump(isset($var[1])); 29 var_dump(isset($var, $var[1])); 31 $var[1] = 10; 32 var_dump(isset($var)); 33 var_dump(isset($var[1])); 34 var_dump(isset($var, $var[1]));
|
/PHP-8.0/ext/opcache/tests/opt/ |
H A D | jmp_001.phpt | 13 $var = null; 14 $var = $var ?: test2(); 15 return $var; 31 0002 CV0($var) = QM_ASSIGN V1 32 0003 RETURN CV0($var)
|
/PHP-8.0/win32/build/ |
H A D | phpize.js.in | 27 var modules = ""; 39 var t = ""; 62 var deps = new Array(); 83 var c, i, ok, n; 84 var item = null; 127 var i, mod_name, j; 128 var output = ""; 129 var item = null; 150 var i, mod_name, j; 151 var item; [all …]
|