Home
last modified time | relevance | path

Searched refs:foo (Results 1 – 25 of 2086) sorted by relevance

12345678910>>...84

/PHP-8.1/ext/standard/tests/file/
H A Dbasename_variation2-win32.phpt14 "foo",
15 "foo/",
16 "foo\\",
17 "foo.bar",
33 "foo",
60 basename for path foo, supplying suffix foo is:
62 basename for path foo, supplying suffix foo.bar is:
64 basename for path foo, supplying suffix foo/bar is:
66 basename for path foo, supplying suffix foo\bar is:
80 basename for path foo/, supplying suffix foo is:
[all …]
H A Dbasename_variation2.phpt14 "foo",
15 "foo/",
16 "foo\\",
17 "foo.bar",
33 "foo",
60 basename for path foo, supplying suffix foo is:
62 basename for path foo, supplying suffix foo.bar is:
64 basename for path foo, supplying suffix foo/bar is:
66 basename for path foo, supplying suffix foo\bar is:
80 basename for path foo/, supplying suffix foo is:
[all …]
H A Dbasename_variation1-win32.phpt32 "foo",
33 "foo/",
34 "foo\\",
35 "foo.bar",
36 "foo.bar/",
37 "foo.bar\\",
58 string(3) "foo"
60 string(3) "foo"
62 string(3) "foo"
78 string(3) "foo"
[all …]
H A Dbasename_variation1.phpt32 "foo",
33 "foo/",
34 "foo\\",
35 "foo.bar",
36 "foo.bar/",
37 "foo.bar\\",
58 string(3) "foo"
60 string(3) "foo"
62 string(4) "foo\"
78 string(3) "foo"
[all …]
/PHP-8.1/Zend/tests/
H A Dbug42819.phpt5 namespace foo\foo;
7 const C = "foo\\foo\\C\n";
12 const C = "foo\\foo\\foo::C\n";
86 echo foo\foo::C;
145 foo\foo\C
146 foo\foo\foo::C
147 foo\foo::C
148 foo\foo::C
153 foo\foo\C
154 foo\foo\foo::C
[all …]
H A Dassign_coalesce_001.phpt7 $foo = "fo";
8 $foo .= "o";
24 $b ??= $foo;
27 $c = $foo;
31 $d ??= $foo;
93 id(foo)
94 id(foo)
110 id(foo)
111 id(foo)
123 id(foo)
[all …]
H A Dclass_constants_004.phpt6 namespace foo;
8 define('foo', 3);
10 const foo = 1;
12 class foo {
13 const foo = 2;
17 const foo = 4;
23 var_dump( foo,
24 \foo\foo,
26 \foo\foo::foo,
28 \foo,
[all …]
H A Dbug22836.phpt7 $x = "foo";
17 string(3) "foo"
18 'foo'
19 string(3) "foo"
20 'foo'
22 'foo'
24 'foo'
26 'foo'
28 'foo'
30 'foo'
[all …]
H A Dclass_alias_020.phpt6 namespace foo;
9 class foo {
12 class_alias(__NAMESPACE__ .'\foo', 'foo');
14 namespace foo\bar;
16 class foo {
19 class_alias(__NAMESPACE__ .'\foo', 'bar');
22 var_dump(new \foo, new \bar);
24 var_dump(new \foo\foo, new \foo\bar);
28 object(foo\foo)#1 (0) {
30 object(foo\bar\foo)#2 (0) {
[all …]
H A Dclosure_compare.phpt5 function foo() {
12 printf("foo == foo: %s\n", $closures[0] == $closures[1] ? "OK" : "FAIL");
53 $foo = new Foo;
75 printf("foo::exists == foo::exists: %s\n", $closures[0] == $closures[1] ? "OK" : "FAIL");
80 printf("foo::method == foo::method: %s\n", $closures[0] == $closures[1] ? "OK" : "FAIL");
102 foo == foo: OK
106 foo#0::exists != foo#1::exists: OK
108 foo::traitMethod != foo::aliasMethod: OK
109 foo::exists == foo::exists: OK
110 foo::method == foo::method: OK
[all …]
H A Dbug52614.phpt5 class foo {
44 $foo = new foo;
46 $foo->f1()[0] = 1;
47 var_dump($foo->a1);
49 $foo->f2()[0] = 1;
52 $foo->f3()[0] = 1;
62 $foo->f5()->a = 1;
65 $foo->a1[0] = 1;
66 $foo->f7($foo->f6()[0]);
68 $foo->f1()[0]++;
[all …]
H A Dconstants_003.phpt6 namespace foo;
8 const foo = 1;
10 define('foo', 2);
12 var_dump(foo, namespace\foo, \foo\foo, \foo, constant('foo'), constant('foo\foo'));
H A Dbug62653.phpt6 $foo = "10.0000"; // gettype($foo) = "string"
7 $foo /= 2; //Makes $foo = 5 but still gettype($foo) = "double"
8 unset($array[$foo]);
12 $foo = "5";
13 unset($array[(float)$foo]);
17 $foo = "10.0000";
18 $foo /= 2; //Makes $foo = 5 but still gettype($foo) = "double"
19 $name = "foo";
/PHP-8.1/Zend/tests/nullsafe_operator/
H A D013.phpt17 dump_error(fn() => strlen($foo?->foo()));
18 dump_error(fn() => is_null($foo?->foo()));
19 dump_error(fn() => is_bool($foo?->foo()));
20 dump_error(fn() => is_int($foo?->foo()));
22 dump_error(fn() => boolval($foo?->foo()));
24 dump_error(fn() => chr($foo?->foo()));
25 dump_error(fn() => ord($foo?->foo()));
27 dump_error(fn() => call_user_func_array('foo', $foo?->foo()));
34 dump_error(fn() => array_slice(['foo'], $foo?->foo()));
35 dump_error(fn() => array_slice(['foo'], 0, $foo?->foo()));
[all …]
/PHP-8.1/ext/standard/tests/array/
H A Dbug29493.phpt21 $foo = 'noo';
77 ["foo"]=>
81 ["foo"]=>
85 ["foo"]=>
89 ["foo"]=>
93 ["foo"]=>
97 ["foo"]=>
101 ["foo"]=>
105 ["foo"]=>
109 ["foo"]=>
[all …]
/PHP-8.1/ext/pcre/tests/
H A Dbug79257.phpt6 preg_match('/(?J)(?:(?<g>foo)|(?<g>bar))/', 'foo', $matches);
8 preg_match('/(?J)(?:(?<g>foo)|(?<g>bar))/', 'foo', $matches,
11 preg_match('/(?J)(?:(?<g>foo)|(?<g>bar))/', 'foo', $matches,
14 preg_match('/(?J)(?:(?<g>foo)|(?<g>bar))/', 'foo', $matches,
34 string(3) "foo"
36 string(3) "foo"
38 string(3) "foo"
42 string(3) "foo"
44 string(3) "foo"
46 string(3) "foo"
[all …]
/PHP-8.1/tests/lang/
H A Dbug22231.phpt7 class foo {
11 function &foo(){
12 $obj = new foo();
16 $bar = &foo();
20 $bar = &foo();
23 $foo = &foo();
24 var_dump($foo);
26 unset($foo);
27 $foo = &foo();
31 object(foo)#%d (1) {
[all …]
/PHP-8.1/ext/standard/tests/strings/
H A Ddirname_basic.phpt8 "/foo/bar",
9 "foo/bar",
13 "/foo/bar/",
14 "foo/bar/",
18 "/foo/bar.gz",
19 "foo/bar.gz",
24 "/foo/bar.gz/",
25 "foo/bar.gz/",
31 "/foo/.gz",
33 "/foo/.gz/",
[all …]
/PHP-8.1/Zend/tests/type_declarations/
H A Dtyped_properties_magic_set.phpt7 public int $foo;
31 $test->foo = 42;
36 $test->foo = 42;
41 $test->foo = 42;
48 $test->foo = 42;
51 $test->foo = 42;
67 __set foo = 42
68 __set foo = 42
70 __set foo = 42
71 __set foo = 42
[all …]
H A Dtyped_properties_097.phpt9 public int $foo;
16 --$test->foo;
20 var_dump($test->foo);
22 $test->foo--;
30 ++$test->foo;
36 $test->foo++;
43 $ref =& $test->foo;
47 --$test->foo;
53 $test->foo--;
61 ++$test->foo;
[all …]
/PHP-8.1/ext/dba/tests/
H A Dbug70825.phpt14 dba_insert('foo', 23, $db);
15 dba_insert('foo', 42, $db);
16 dba_insert('foo', 1337, $db);
17 var_dump(dba_fetch('foo', -1, $db));
18 var_dump(dba_fetch('foo', -1, $db));
19 var_dump(dba_fetch('foo', -1, $db));
34 dba_insert('[foo]bar', 23, $db);
35 dba_insert('[foo]bar', 42, $db);
36 dba_insert('[foo]bar', 1337, $db);
44 dba_insert('[foo]bar', 23, $db);
[all …]
/PHP-8.1/ext/spl/tests/
H A Dbug79393.phpt5 $foo = new SplFixedArray(5);
6 $foo[0] = 'bar1';
7 $foo[1] = 'bar2';
8 $foo[2] = 0;
9 $foo[3] = false;
10 $foo[4] = '';
12 var_dump($foo[0] ?? null);
13 var_dump($foo[1] ?? null);
14 var_dump($foo[2] ?? null);
15 var_dump($foo[3] ?? null);
[all …]
H A Dclass_implements_basic2.phpt8 interface foo { }
36 ["foo"]=>
37 string(3) "foo"
42 ["foo"]=>
43 string(3) "foo"
48 ["foo"]=>
49 string(3) "foo"
54 ["foo"]=>
55 string(3) "foo"
60 ["foo"]=>
[all …]
/PHP-8.1/Zend/tests/generators/
H A Dyield_in_parenthesis.phpt7 if (yield $foo); elseif (yield $foo);
8 if (yield $foo): elseif (yield $foo): endif;
9 while (yield $foo);
10 do {} while (yield $foo);
11 switch (yield $foo) {}
12 (yield $foo);
13 die(yield $foo);
14 func(yield $foo);
15 $foo->func(yield $foo);
16 new Foo(yield $foo);
/PHP-8.1/ext/opcache/tests/jit/
H A Dfetch_dim_r_002.phpt17 foo(0);
18 foo(2);
19 foo(1.0);
20 foo("0");
21 foo("2");
22 foo(false);
23 foo(true);
24 foo(null);
25 foo("ab");
28 foo($x.$y);
[all …]

Completed in 29 milliseconds

12345678910>>...84