Home
last modified time | relevance | path

Searched refs:new (Results 151 – 175 of 6397) sorted by relevance

12345678910>>...256

/PHP-8.3/ext/reflection/tests/
H A Dgh10623.phpt11 var_dump((new ReflectionFunction($closure))->getClosureUsedVariables());
14 var_dump((new ReflectionFunction($closure))->getClosureUsedVariables());
17 var_dump((new ReflectionFunction($closure))->getClosureUsedVariables());
20 var_dump((new ReflectionFunction($closure))->getClosureUsedVariables());
23 var_dump((new ReflectionFunction($closure))->getClosureUsedVariables());
26 var_dump((new ReflectionFunction($closure))->getClosureUsedVariables());
29 var_dump((new ReflectionFunction($closure))->getClosureUsedVariables());
H A DReflectionFunction_getClosureCalledClass.phpt34 $r = new \ReflectionFunction($d);
38 $c = [new B(), 'c'];
40 $r = new \ReflectionFunction($d);
46 $r = new \ReflectionFunction($d);
50 $c = [new B(), 'e'];
52 $r = new \ReflectionFunction($d);
58 $r = new \ReflectionFunction($d);
62 $b = new B();
64 $r = new \ReflectionFunction($d);
71 $r = new \ReflectionFunction($d);
H A Dnew_in_constexpr.phpt2 Handling of new in constant expressions in reflection
7 static $x = new stdClass;
11 $rf = new ReflectionFunction('test1');
18 function test2($x = new stdClass) {
22 $rf = new ReflectionFunction('test2');
/PHP-8.3/Zend/tests/type_declarations/variance/
H A Dclass_order_autoload5.phpt12 var_dump(new A);
17 var_dump(new B);
22 var_dump(new X);
27 var_dump(new Y);
32 var_dump(new Q);
37 var_dump(new R);
41 var_dump(new B);
/PHP-8.3/ext/ffi/tests/
H A Ddeprecations.phpt2 Test calling the deprecated signature of FFI::new(), FFI::type(), FFI::cast()
10 $p1 = FFI::new("uint8_t[2]");
13 throw new Exception($message);
16 FFI::new("uint8_t[2]");
27 throw new Exception($message);
38 throw new Exception($message);
48 Deprecated: Calling FFI::new() statically is deprecated in %s on line %d
49 Calling FFI::new() statically is deprecated
H A D004.phpt35 var_dump($ffi->new("enum _a"));
36 var_dump($ffi->new("enum _b"));
37 var_dump($ffi->new("c"));
38 var_dump($ffi->new("d"));
39 var_dump($ffi->new("int[_c2]"));
40 var_dump($ffi->new("int[_c3]"));
41 var_dump($ffi->new("int[_c4]"));
43 var_dump($ffi->new("enum _e"));
48 var_dump($ffi->new("f"));
/PHP-8.3/Zend/tests/type_declarations/union_types/
H A Dmultiple_classes.phpt18 $test = new Test;
29 $test->prop = new stdClass;
35 $test->method(new stdClass);
44 $test->prop = new X;
46 var_dump($test->method(new X));
52 $test->prop = new Z;
54 var_dump($test->method(new Z));
60 $test->prop = new Y;
62 var_dump($test->method(new Y));
/PHP-8.3/ext/spl/tests/
H A Dobserver_008.phpt7 $o1 = new StdClass;
8 $o2 = new StdClass;
9 $o3 = new StdClass;
11 $a = new A;
15 $b = new SplObjectStorage();
H A DarrayObject___construct_basic1.phpt6 var_dump(new ArrayObject());
9 $a = new stdClass;
11 var_dump(new ArrayObject($a));
14 var_dump(new ArrayObject(array('key1' => 'val1')));
17 var_dump(new ArrayObject(new ArrayObject($a)));
/PHP-8.3/Zend/tests/throw/
H A Dleaks.phpt7 new stdClass(throw new Exception);
14 ($a + [1]) + throw new Exception;
20 @throw new Exception;
27 new stdClass(exit);
/PHP-8.3/Zend/tests/
H A Dbug60833.phpt8 var_dump(new sELF);
9 var_dump(new SELF);
17 var_dump(new sELF);
18 var_dump(new PARENT);
22 $t = new B();
H A Dgc_038.phpt8 $x = new stdClass;
19 $x = new stdClass;
30 $x = new stdClass;
41 $x = new stdClass;
52 $x = new stdClass;
63 $x = new stdClass;
74 $x = new stdClass;
85 $x = new stdClass;
96 $x = new stdClass;
107 $x = new stdClass;
[all …]
H A Dbind_static_exception.phpt7 throw new Exception("Foo");
11 $new = new Test;
12 static $new;
/PHP-8.3/ext/intl/tests/
H A Ddateformat_timezone_arg_variations3.phpt16 $df = new IntlDateFormatter('es_ES', 0, 0, NULL);
19 $df = new IntlDateFormatter('es_ES', 0, 0, 'Europe/Amsterdam');
22 $df = new IntlDateFormatter('es_ES', 0, 0, new DateTimeZone('Europe/Lisbon'));
25 $df = new IntlDateFormatter('es_ES', 0, 0, IntlTimeZone::createTimeZone('America/New_York'));
29 $df = new IntlDateFormatter('es_ES', 0, 0, 'Europe/Amsterdam', new IntlGregorianCalendar('Europe/Li…
33 $df = new IntlDateFormatter('es_ES', 0, 0, NULL, new IntlGregorianCalendar('Europe/Lisbon'));
36 $df = new IntlDateFormatter('es_ES', 0, 0, 'Europe/Amsterdam', 0);
/PHP-8.3/ext/date/tests/
H A Dbug-gh11416.phpt7 $now = new DateTimeImmutable();
8 $simpleInterval = new DateInterval("P2D");
10 $date = (new ReflectionClass(DateTime::class))->newInstanceWithoutConstructor();
12 new DatePeriod($date, new DateInterval('P1D'), 2);
17 $date = (new ReflectionClass(DateTime::class))->newInstanceWithoutConstructor();
19 new DatePeriod($now, new DateInterval('P1D'), $date);
24 $date = (new ReflectionClass(DateTime::class))->newInstanceWithoutConstructor();
25 $dateperiod = (new ReflectionClass(DatePeriod::class))->newInstanceWithoutConstructor();
26 $dateinterval = (new ReflectionClass(DateInterval::class))->newInstanceWithoutConstructor();
H A Dbug73460-002.phpt9 $start = new \DateTime('2006-04-02T01:00:00');
10 $end = new \DateTime('2006-04-02T04:00:00');
14 $end->sub(new \DateInterval('PT1H'));
21 $start = new \DateTime('2006-10-29T00:30:00');
22 $end = new \DateTime('2006-10-29T03:00:00');
27 $start->add(new \DateInterval('PT30M'));
H A Ddate_period_include_end.phpt6 $start = new DateTime('2010-06-07');
7 $end = new DateTime('2010-06-10');
8 $interval = new DateInterval('P1D');
10 foreach (new DatePeriod($start, $interval, $end, DatePeriod::INCLUDE_END_DATE) as $day) {
/PHP-8.3/ext/standard/tests/array/
H A Duasort_object2.phpt78 0 => new StaticClass(20),
79 1 => new StaticClass(50),
80 2 => new StaticClass(15),
81 3 => new StaticClass(70),
89 0 => new EmptyClass(),
90 1 => new EmptyClass(),
91 2 => new EmptyClass(),
92 3 => new EmptyClass(),
100 0 => new ChildClass(20),
101 1 => new ChildClass(500),
[all …]
H A Dusort_object2.phpt63 0 => new StaticClass(20),
64 1 => new StaticClass(50),
65 2 => new StaticClass(15),
66 3 => new StaticClass(70),
74 0 => new EmptyClass(),
75 1 => new EmptyClass(),
76 2 => new EmptyClass(),
77 3 => new EmptyClass(),
85 0 => new ChildClass(20),
86 1 => new ChildClass(500),
[all …]
/PHP-8.3/ext/reflection/tests/types/
H A DReflectionType_001.phpt12 function factory(): self { return new c; }
21 new ReflectionFunction('foo'),
22 new ReflectionFunction($closure),
40 new ReflectionMethod('c', 'bar'),
41 new ReflectionMethod('c', 'pbar'),
60 new ReflectionFunction('bar'),
61 new ReflectionMethod('c', 'bar'),
62 new ReflectionMethod('c', 'factory'),
64 new ReflectionFunction($closure),
98 $obj = new PropTypeTest;
[all …]
/PHP-8.3/ext/dom/tests/
H A Dbug80602.phpt9 $doc = new \DOMDocument();
15 $doc = new \DOMDocument();
22 $doc = new \DOMDocument();
28 $doc = new \DOMDocument();
35 $doc = new \DOMDocument();
41 $doc = new \DOMDocument();
48 $doc = new \DOMDocument();
54 $doc = new \DOMDocument();
61 $doc = new \DOMDocument();
67 $doc = new \DOMDocument();
[all …]
H A Dbug80602_2.phpt9 $doc = new \DOMDocument();
15 $doc = new \DOMDocument();
22 $doc = new \DOMDocument();
28 $doc = new \DOMDocument();
35 $doc = new \DOMDocument();
41 $doc = new \DOMDocument();
48 $doc = new \DOMDocument();
54 $doc = new \DOMDocument();
61 $doc = new \DOMDocument();
67 $doc = new \DOMDocument();
[all …]
/PHP-8.3/Zend/tests/arg_unpack/
H A Dnew.phpt2 Unpack arguments for new expression
12 new Foo(...[]);
13 new Foo(...[1, 2, 3]);
14 new Foo(...[1], ...[], ...[2, 3]);
/PHP-8.3/ext/phar/tests/
H A Dtest_signaturealgos.phpt15 $a = new Phar(__DIR__ . '/files/sha1.phar');
18 $a = new Phar(__DIR__ . '/files/sha512.phar');
21 $a = new Phar(__DIR__ . '/files/sha256.phar');
24 $a = new Phar(__DIR__ . '/files/md5.phar');
27 $a = new Phar(__DIR__ . '/files/openssl.phar');
30 $a = new Phar(__DIR__ . '/files/openssl256.phar');
33 $a = new Phar(__DIR__ . '/files/openssl512.phar');
/PHP-8.3/Zend/tests/varSyntax/
H A Dnew_instanceof_expr.phpt2 new with an arbitrary expression
7 var_dump(new ('std'.$class));
8 var_dump(new ('std'.$class)());
9 $obj = new stdClass;

Completed in 72 milliseconds

12345678910>>...256