/PHP-8.3/ext/reflection/tests/ |
H A D | gh10623.phpt | 11 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 D | ReflectionFunction_getClosureCalledClass.phpt | 34 $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 D | new_in_constexpr.phpt | 2 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 D | class_order_autoload5.phpt | 12 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 D | deprecations.phpt | 2 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 D | 004.phpt | 35 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 D | multiple_classes.phpt | 18 $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 D | observer_008.phpt | 7 $o1 = new StdClass; 8 $o2 = new StdClass; 9 $o3 = new StdClass; 11 $a = new A; 15 $b = new SplObjectStorage();
|
H A D | arrayObject___construct_basic1.phpt | 6 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 D | leaks.phpt | 7 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 D | bug60833.phpt | 8 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 D | gc_038.phpt | 8 $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 D | bind_static_exception.phpt | 7 throw new Exception("Foo"); 11 $new = new Test; 12 static $new;
|
/PHP-8.3/ext/intl/tests/ |
H A D | dateformat_timezone_arg_variations3.phpt | 16 $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 D | bug-gh11416.phpt | 7 $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 D | bug73460-002.phpt | 9 $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 D | date_period_include_end.phpt | 6 $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 D | uasort_object2.phpt | 78 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 D | usort_object2.phpt | 63 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 D | ReflectionType_001.phpt | 12 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 D | bug80602.phpt | 9 $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 D | bug80602_2.phpt | 9 $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 D | new.phpt | 2 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 D | test_signaturealgos.phpt | 15 $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 D | new_instanceof_expr.phpt | 2 new with an arbitrary expression 7 var_dump(new ('std'.$class)); 8 var_dump(new ('std'.$class)()); 9 $obj = new stdClass;
|