Home
last modified time | relevance | path

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

12345678910>>...24

/PHP-5.3/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
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
119 Warning: Cannot use a scalar value as an array in %s on line %d
137 Warning: Cannot use a scalar value as an array in %s on line %d
140 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 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 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 Dns_061.phpt2 061: use in global scope
6 use \A as B;
H A Derrmsg_006.phpt2 errmsg: can't use [] for reading
12 Fatal error: Cannot use [] for reading in %s on line %d
H A Derrmsg_007.phpt2 errmsg: can't use [] for reading - 2
12 Fatal error: Cannot use [] for reading in %s on line %d
H A Derrmsg_008.phpt2 errmsg: can't use [] for unsetting
12 Fatal error: Cannot use [] for unsetting in %s on line %d
H A Dns_033.phpt5 use A;
7 Warning: The use statement with non-compound name 'A' has no effect in %sns_033.php on line 2
H A Dns_065.phpt2 065: Multiple names in use statement
5 use X\Y as test, X\Z as test2;
H A Dclosure_035.phpt6 $x = function () use (&$x) {
7 $h = function () use ($x) {
H A Derrmsg_028.phpt2 errmsg: cannot use 'self' as class name
12 Fatal error: Cannot use 'self' as class name as it is reserved in %s on line %d
H A Derrmsg_029.phpt2 errmsg: cannot use 'parent' as class name
12 Fatal error: Cannot use 'parent' as class name as it is reserved in %s on line %d
H A Derrmsg_044.phpt2 Trying use object of type stdClass as array
11 Fatal error: Cannot use object of type stdClass as array in %s on line %d
H A Dclosure_002.phpt8 $lambda1 = function () use ($x) {
12 $lambda2 = function () use (&$x) {
H A Derrmsg_035.phpt2 errmsg: cannot use 'self' as interface name
12 Fatal error: Cannot use 'self' as interface name as it is reserved in %s on line %d
H A Derrmsg_036.phpt2 errmsg: cannot use 'parent' as interface name
12 Fatal error: Cannot use 'parent' as interface name as it is reserved in %s on line %d
/PHP-5.3/sapi/cli/tests/
H A D012.phpt22 You can use -R or -F only once.
24 You can use -R or -F only once.
26 You can use -R or -F only once.
28 You can use -R or -F only once.
30 You can use -f only once.
32 You can use -B only once.
34 You can use -E only once.
36 You can use -r only once.
/PHP-5.3/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 ***
/PHP-5.3/ext/phar/tests/
H A Dinvalid_setstubalias.phpt43 Cannot set stub ".phar/stub.php" directly in phar "%sinvalid_setstubalias.phar.tar", use setStub
44 Cannot set alias ".phar/alias.txt" directly in phar "%sinvalid_setstubalias.phar.tar", use setAlias
45 Cannot set stub ".phar/stub.php" directly in phar "%sinvalid_setstubalias.phar.zip", use setStub
46 Cannot set alias ".phar/alias.txt" directly in phar "%sinvalid_setstubalias.phar.zip", use setAlias

Completed in 37 milliseconds

12345678910>>...24