Home
last modified time | relevance | path

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

12345678910>>...35

/PHP-5.5/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 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
79 Warning: Cannot use a scalar value as an array in %s on line %d
98 Warning: Cannot use a scalar value as an array in %s on line %d
101 Warning: Cannot use a scalar value as an array in %s on line %d
104 Warning: Cannot use a scalar value as an array in %s on line %d
121 Warning: Cannot use a scalar value as an array in %s on line %d
139 Warning: Cannot use a scalar value as an array in %s on line %d
142 Warning: Cannot use a scalar value as an array in %s on line %d
[all …]
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 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_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 Dns_062.phpt2 062: use \global class
6 use \stdClass;
7 use \stdClass as A;
H A Dbug55086.phpt2 Bug #55086 (Namespace alias does not work inside trait's use block)
17 use N1\T1;
18 use N1\T2;
20 use T1, T2 {
H A Dbug43183.phpt2 Bug #43183 ("use" of the same class in difference scripts results in a fatal error)
6 use Test\Foo;
9 use Test\Bar;
H A Dns_030.phpt8 use A\B as Foo;
12 Fatal error: Cannot use A\B as Foo because the name is already in use in %sns_030.php on line 5
H A Dns_002.phpt13 use test\ns1\Foo as Bar;
14 use test\ns1 as ns2;
15 use test\ns1;
H A Dbug60536_003.phpt16 use AHelloProperty;
20 use AHelloProperty;
24 use AHelloProperty;
/PHP-5.5/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.
/PHP-5.5/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 Derror_003.phpt2 Trying to use an interface as trait
10 use abc;
15 Fatal error: A cannot use abc - it is not a trait in %s on line %d
H A Derror_004.phpt2 Trying to use a class as trait
10 use abc;
15 Fatal error: A cannot use abc - it is not a trait in %s on line %d
H A Derror_005.phpt2 Trying to use a final class as trait
10 use abc;
15 Fatal error: A cannot use abc - it is not a trait in %s on line %d
H A Derror_006.phpt2 Trying to use an abstract class as trait
10 use abc;
15 Fatal error: A cannot use abc - it is not a trait in %s on line %d
H A Dproperty001.phpt2 Potentially conflicting properties should result in a strict notice. Property use is discorage for …
19 use THello1;
20 use THello2;
28 use THello1;
29 use THello2;
H A Dbug60145.phpt2 Bug #60145 (Usage of trait's use statement inside interfaces not properly checked.)
11 use foo;
17 Fatal error: Cannot use traits inside of interfaces. foo is used in MyInterface in %s on line %d
H A Derror_013.phpt2 Trying to use static as method modifier
11 use foo { test as static; }
19 Fatal error: Cannot use 'static' as method modifier in %s on line %d
H A Dtrait_constant_001.phpt13 use TestTrait;
21 use TestTrait;
25 use TestTraitIndirect;
/PHP-5.5/Zend/tests/traits/bugs/
H A Dabstract-methods04.phpt19 use THello;
20 use THelloImpl;
27 use THelloImpl;
28 use THello;
/PHP-5.5/ext/opcache/Optimizer/
H A Dpass1_5.c286 zend_op *use = NULL; variable
299 if (use) {
301 use = NULL;
304 use = op;
306 if (use) {
308 use = NULL;
311 use = op;
315 if (use) {
316 if (use->op1_type == IS_VAR && use->op1.var == var) {
317 use->op1_type = IS_CV;
[all …]
/PHP-5.5/ext/standard/tests/file/
H A Dunlink_variation2.phpt2 Test unlink() function : usage variations - unlink file in use
15 /* Try to unlink file when file handle is still in use */
19 echo "*** Testing unlink() on a file which is in use ***\n";
34 *** Testing unlink() on a file which is in use ***

Completed in 30 milliseconds

12345678910>>...35