Home
last modified time | relevance | path

Searched refs:use (Results 1 – 25 of 948) sorted by relevance

12345678910>>...38

/PHP-7.4/Zend/tests/
H A Dbug53958.phpt2 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 Dns_093.phpt2 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 Dbug42859.phpt8 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 Dindexing_001.phpt51 Warning: Cannot use a scalar value as an array in %s on line %d
54 Warning: Cannot use a scalar value as an array in %s on line %d
57 Warning: Cannot use a scalar value as an array in %s on line %d
77 Warning: Cannot use a scalar value as an array in %s on line %d
96 Warning: Cannot use a scalar value as an array in %s on line %d
99 Warning: Cannot use a scalar value as an array in %s on line %d
102 Warning: Cannot use a scalar value as an array in %s on line %d
112 Warning: Cannot use a scalar value as an array in %s on line %d
130 Warning: Cannot use a scalar value as an array in %s on line %d
133 Warning: Cannot use a scalar value as an array in %s on line %d
[all …]
H A Dns_033.phpt5 use A;
6 use \B;
8 Warning: The use statement with non-compound name 'A' has no effect in %sns_033.php on line 2
10 Warning: The use statement with non-compound name 'B' has no effect in %sns_033.php on line 3
H A Dbug54358.phpt2 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 Dns_062.phpt2 062: use \global class
6 use \stdClass;
7 use \stdClass as A;
H A Dns_078.phpt20 use test\ns1\Foo;
21 use test\ns1\Foo as Bar;
22 use \test\ns1\Foo2;
23 use \test\ns1\Foo2 as Bar2;
H A Dclosure_use_variable_twice.phpt2 Closure cannot use one variable twice
7 $fn = function() use ($a, &$a) {
15 Fatal error: Cannot use variable $a twice in %s on line %d
H A Dthis_as_lexical_var_error.phpt2 Cannot use $this as lexical variable
8 return function() use ($this) {};
14 Fatal error: Cannot use $this as lexical variable in %s on line %d
/PHP-7.4/ext/opcache/tests/
H A Dbug70423.phpt18 $fn1 = function() use ($a) {echo "$a\n"; $a++;};
19 $fn2 = function() use ($a) {echo "$a\n"; $a++;};
28 $fn1 = function() use (&$b) {echo "$b\n"; $b++;};
29 $fn2 = function() use (&$b) {echo "$b\n"; $b++;};
38 $fn1 = function() use (&$c) {echo "$c\n"; $c++;};
39 $fn2 = function() use ($c) {echo "$c\n"; $c++;};
48 $fn1 = function() use ($d) {echo "$d\n"; $d++;};
49 $fn2 = function() use (&$d) {echo "$d\n"; $d++;};
/PHP-7.4/sapi/cli/tests/
H A D012.phpt22 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 D012-2.phpt31 string(57) "Either execute direct code, process stdin or use a file.
33 string(57) "Either execute direct code, process stdin or use a file.
36 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.
50 string(57) "Either execute direct code, process stdin or use a file.
/PHP-7.4/Zend/tests/use_const/
H A Dconflicting_use_alias.phpt2 use and use const with the same alias
11 use foo as bar;
12 use const foo as bar;
H A Dconflicting_use.phpt2 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 Dself_parent.phpt2 Allow self and parent in use const statement
7 use const self as foo;
8 use const parent as bar;
/PHP-7.4/Zend/tests/use_function/
H A Dconflicting_use_alias.phpt2 use and use function with the same alias
13 use foo as bar;
14 use function foo as bar;
H A Dcase_insensivity.phpt7 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 Dconditional_function_declaration.phpt2 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 Dconflicting_use_const_alias.phpt2 use const and use function with the same alias
14 use const foo as bar;
15 use function foo as bar;
H A Dconflicting_use.phpt2 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 Dself_parent.phpt2 Allow self and parent in use function statement
7 use function self as foo;
8 use function parent as bar;
/PHP-7.4/Zend/tests/traits/
H A Dbug60717.phpt2 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 Dproperty001.phpt18 use THello1;
19 use THello2;
25 use THello1;
26 use THello2;
/PHP-7.4/Zend/tests/traits/bugs/
H A Dabstract-methods04.phpt19 use THello;
20 use THelloImpl;
27 use THelloImpl;
28 use THello;

Completed in 29 milliseconds

12345678910>>...38