/PHP-8.1/Zend/tests/ |
H A D | bug53958.phpt | 2 Bug #53958 (Closures can't 'use' shared variables by value and by reference) 7 $fn1 = function() use ($a) {echo "$a\n"; $a++;}; 8 $fn2 = function() use ($a) {echo "$a\n"; $a++;}; 17 $fn1 = function() use (&$b) {echo "$b\n"; $b++;}; 18 $fn2 = function() use (&$b) {echo "$b\n"; $b++;}; 27 $fn1 = function() use (&$c) {echo "$c\n"; $c++;}; 28 $fn2 = function() use ($c) {echo "$c\n"; $c++;}; 37 $fn1 = function() use ($d) {echo "$d\n"; $d++;}; 38 $fn2 = function() use (&$d) {echo "$d\n"; $d++;};
|
H A D | ns_093.phpt | 2 Group use declarations and whitespace nuances 8 use Foo\Bar \{ A }; 10 use Foo\Bar\ { B }; 12 use Foo\Bar 17 use Foo\Bar\
|
H A D | indexing_001.phpt | 64 Cannot use a scalar value as an array 66 Cannot use a scalar value as an array 68 Cannot use a scalar value as an array 83 Cannot use a scalar value as an array 101 Cannot use a scalar value as an array 103 Cannot use a scalar value as an array 105 Cannot use a scalar value as an array 116 Cannot use a scalar value as an array 133 Cannot use a scalar value as an array 135 Cannot use a scalar value as an array [all …]
|
H A D | bug42859.phpt | 8 use Blah\Exception; 9 use Blah\Ex; 12 Fatal error: Cannot use Blah\Ex as Ex because the name is already in use in %sbug42859.php on line 6
|
H A D | ns_033.phpt | 5 use A; 6 use \B; 9 Warning: The use statement with non-compound name 'A' has no effect in %sns_033.php on line 2 11 Warning: The use statement with non-compound name 'B' has no effect in %sns_033.php on line 3
|
H A D | bug54358.phpt | 2 Bug #54358 (Closure, use and reference) 12 $closure = function() use ($asserter, &$function) { 20 $closure = function() use ($asserter, $function) { 28 $closure = function() use ($asserter, $function) {
|
H A D | ns_062.phpt | 2 062: use \global class 6 use \stdClass; 7 use \stdClass as A;
|
H A D | ns_078.phpt | 20 use test\ns1\Foo; 21 use test\ns1\Foo as Bar; 22 use \test\ns1\Foo2; 23 use \test\ns1\Foo2 as Bar2;
|
/PHP-8.1/ext/opcache/tests/ |
H A D | bug70423.phpt | 19 $fn1 = function() use ($a) {echo "$a\n"; $a++;}; 20 $fn2 = function() use ($a) {echo "$a\n"; $a++;}; 29 $fn1 = function() use (&$b) {echo "$b\n"; $b++;}; 30 $fn2 = function() use (&$b) {echo "$b\n"; $b++;}; 39 $fn1 = function() use (&$c) {echo "$c\n"; $c++;}; 40 $fn2 = function() use ($c) {echo "$c\n"; $c++;}; 49 $fn1 = function() use ($d) {echo "$d\n"; $d++;}; 50 $fn2 = function() use (&$d) {echo "$d\n"; $d++;};
|
/PHP-8.1/sapi/cli/tests/ |
H A D | 012.phpt | 22 string(32) "You can use -R or -F only once. 24 string(32) "You can use -R or -F only once. 26 string(32) "You can use -R or -F only once. 28 string(32) "You can use -R or -F only once. 30 string(26) "You can use -f only once. 32 string(26) "You can use -B only once. 34 string(26) "You can use -E only once. 36 string(26) "You can use -r only once.
|
H A D | 012-2.phpt | 33 string(57) "Either execute direct code, process stdin or use a file. 35 string(57) "Either execute direct code, process stdin or use a file. 38 string(57) "Either execute direct code, process stdin or use a file. 40 string(57) "Either execute direct code, process stdin or use a file. 42 string(57) "Either execute direct code, process stdin or use a file. 44 string(57) "Either execute direct code, process stdin or use a file. 46 string(57) "Either execute direct code, process stdin or use a file. 52 string(57) "Either execute direct code, process stdin or use a file.
|
/PHP-8.1/Zend/tests/use_const/ |
H A D | conflicting_use_alias.phpt | 2 use and use const with the same alias 11 use foo as bar; 12 use const foo as bar;
|
H A D | conflicting_use.phpt | 2 use const statements with conflicting names 15 use const foo\baz, bar\baz; 21 Fatal error: Cannot use const bar\baz as baz because the name is already in use in %s on line %d
|
H A D | self_parent.phpt | 2 Allow self and parent in use const statement 7 use const self as foo; 8 use const parent as bar;
|
/PHP-8.1/Zend/tests/use_function/ |
H A D | conflicting_use_alias.phpt | 2 use and use function with the same alias 13 use foo as bar; 14 use function foo as bar;
|
H A D | case_insensivity.phpt | 7 use function foo\bar; 8 use function foo\BAR; 13 Fatal error: Cannot use function foo\BAR as BAR because the name is already in use in %s on line %d
|
H A D | conditional_function_declaration.phpt | 2 function that is conditionally defined is subject to symbol use checks 11 use function bar\foo; 17 Fatal error: Cannot use function bar\foo as foo because the name is already in use in %s on line %d
|
H A D | conflicting_use_const_alias.phpt | 2 use const and use function with the same alias 14 use const foo as bar; 15 use function foo as bar;
|
H A D | conflicting_use.phpt | 2 use function statements with conflicting names 19 use function foo\baz, bar\baz; 25 Fatal error: Cannot use function bar\baz as baz because the name is already in use in %s on line %d
|
H A D | self_parent.phpt | 2 Allow self and parent in use function statement 7 use function self as foo; 8 use function parent as bar;
|
/PHP-8.1/Zend/tests/traits/ |
H A D | bug60717.phpt | 2 Bug #60717 (Order of traits in use statement can cause unexpected unresolved abstract method) 35 use TextArea, HTMLAttributes, TextUTF8; 40 use TextArea, TextUTF8, HTMLAttributes; 45 use HTMLAttributes, TextArea, TextUTF8; 50 use HTMLAttributes, TextUTF8, TextArea; 55 use TextUTF8, TextArea, HTMLAttributes; 60 use TextUTF8, HTMLAttributes, TextArea;
|
H A D | property001.phpt | 18 use THello1; 19 use THello2; 25 use THello1; 26 use THello2;
|
/PHP-8.1/Zend/Optimizer/ |
H A D | zend_dfg.c | 30 zend_bitset_incl(use, var_num); in _zend_dfg_add_use_def_op() 39 zend_bitset_incl(use, var_num); in _zend_dfg_add_use_def_op() 47 zend_bitset_incl(use, var_num); in _zend_dfg_add_use_def_op() 75 zend_bitset_incl(use, var_num); in _zend_dfg_add_use_def_op() 90 zend_bitset_incl(use, var_num); in _zend_dfg_add_use_def_op() 105 zend_bitset_incl(use, var_num); in _zend_dfg_add_use_def_op() 117 zend_bitset_incl(use, var_num); in _zend_dfg_add_use_def_op() 129 zend_bitset_incl(use, var_num); in _zend_dfg_add_use_def_op() 189 zend_bitset_incl(use, var_num); in _zend_dfg_add_use_def_op() 195 zend_bitset_incl(use, var_num); in _zend_dfg_add_use_def_op() [all …]
|
/PHP-8.1/ext/pdo_sqlite/tests/ |
H A D | gc.phpt | 15 $obj->a->sqliteCreateFunction('func1', function() use ($obj) {}, 1); 16 $obj->a->sqliteCreateAggregate('func2', function() use ($obj) {}, function() use($obj) {}); 17 $obj->a->sqliteCreateCollation('col', function() use ($obj) {});
|
/PHP-8.1/Zend/tests/traits/bugs/ |
H A D | abstract-methods04.phpt | 19 use THello; 20 use THelloImpl; 27 use THelloImpl; 28 use THello;
|