/php-src/ext/spl/tests/ |
H A D | arrayObject_clone_basic3.phpt | 11 $wrappedObject = new C; 20 $innerArrayObject['new.iAO'] = 'new element added $innerArrayObject'; 21 $outerArrayObject['new.oAO'] = 'new element added to $outerArrayObject'; 22 $clonedOuterArrayObject['new.coAO'] = 'new element added to $clonedOuterArrayObject'; 34 ["new.iAO"]=> 36 ["new.oAO"]=> 48 ["new.iAO"]=> 50 ["new.oAO"]=> 65 ["new.iAO"]=> 67 ["new.oAO"]=> [all …]
|
H A D | arrayObject_clone_basic2.phpt | 9 $c = new C; 10 $ao1 = new ArrayObject($c); 11 $c->p1 = 'new prop added to c before clone'; 15 $c->p2 = 'new prop added to c after clone'; 16 $ao1['new.ao1'] = 'new element added to ao1'; 17 $ao2['new.ao2'] = 'new element added to ao2'; 26 ["new.ao1"]=> 27 string(24) "new element added to ao1" 36 ["new.ao1"]=> 37 string(24) "new element added to ao1" [all …]
|
H A D | bug65387.phpt | 6 $it = new ArrayIterator([1, 2, 3]); 16 new class { 19 $it = new ArrayIterator([1, 2, 3]); 27 $it = new RecursiveArrayIterator([1, 2, 3]); 33 $it = new ArrayIterator(); 39 $it = new RecursiveArrayIterator(); 45 $it = new ArrayIterator(); 46 $it2 = new AppendIterator(); 52 $it2 = new RecursiveIteratorIterator($it); 56 $it = new RecursiveArrayIterator([[1]]); [all …]
|
H A D | arrayObject_getFlags_basic1.phpt | 5 $ao = new ArrayObject(new ArrayObject(new stdClass)); 8 $ao = new ArrayObject(new ArrayObject(array(1,2,3)), ArrayObject::STD_PROP_LIST); 11 $ao = new ArrayObject(new ArrayIterator(new ArrayObject()), ArrayObject::ARRAY_AS_PROPS); 14 $ao = new ArrayObject(new ArrayObject(), ArrayObject::STD_PROP_LIST|ArrayObject::ARRAY_AS_PROPS);
|
H A D | arrayObject_clone_basic1.phpt | 6 $aa1 = new ArrayObject($a); 7 $a['p1'] = 'new element added to a before clone'; 11 $a['p2'] = 'new element added to a after clone'; 12 $aa1['new.aa1'] = 'new element added to aa1'; 13 $aa2['new.aa2'] = 'new element added to aa2'; 23 string(35) "new element added to a before clone" 25 string(34) "new element added to a after clone" 34 ["new.aa1"]=> 35 string(24) "new element added to aa1" 45 ["new.aa2"]=> [all …]
|
/php-src/ext/date/tests/ |
H A D | DateTime_data-fall-type3-type3.inc | 24 $end = new DateTime('2010-11-06 18:38:28'); // prev, zt3 29 $end = new DateTime('2010-11-07 00:10:20'); // dt, zt3 30 $start = new DateTime('2010-11-06 18:38:28'); // prev, zt3 36 $start = new DateTime('2010-11-06 18:38:28'); // prev, zt3 46 $end = new DateTime('2010-11-07 03:16:55'); // st, zt3 57 $start = new DateTime('2010-11-07 00:10:20'); // dt, zt3 62 $start = new DateTime('2010-11-07 00:10:20'); // dt, zt3 68 $start = new DateTime('2010-11-07 00:10:20'); // dt, zt3 74 $start = new DateTime('2010-11-07 00:10:20'); // dt, zt3 78 $end = new DateTime('2010-11-07 03:16:55'); // st, zt3 [all …]
|
H A D | DateTime_data-fall-type2-type3.inc | 24 $end = new DateTime('2010-11-06 18:38:28'); // prev, zt3 29 $end = new DateTime('2010-11-07 00:10:20'); // dt, zt3 46 $end = new DateTime('2010-11-07 03:16:55'); // st, zt3 51 $end = new DateTime('2010-11-08 19:59:59'); // post, zt3 56 $end = new DateTime('2010-11-06 18:38:28'); // prev, zt3 78 $end = new DateTime('2010-11-07 03:16:55'); // st, zt3 93 $end = new DateTime('2010-11-07 00:10:20'); // dt, zt3 110 $end = new DateTime('2010-11-07 03:16:55'); // st, zt3 125 $end = new DateTime('2010-11-07 00:10:20'); // dt, zt3 142 $end = new DateTime('2010-11-07 03:16:55'); // st, zt3 [all …]
|
H A D | DateTime_data-fall-type3-type2.inc | 29 $end = new DateTime('2010-11-07 00:10:20 EDT'); // dt, zt2 30 $start = new DateTime('2010-11-06 18:38:28'); // prev, zt3 36 $start = new DateTime('2010-11-06 18:38:28'); // prev, zt3 42 $start = new DateTime('2010-11-06 18:38:28'); // prev, zt3 47 $start = new DateTime('2010-11-06 18:38:28'); // prev, zt3 57 $start = new DateTime('2010-11-07 00:10:20'); // dt, zt3 62 $start = new DateTime('2010-11-07 00:10:20'); // dt, zt3 67 $start = new DateTime('2010-11-07 00:10:20'); // dt, zt3 72 $start = new DateTime('2010-11-07 00:10:20'); // dt, zt3 77 $start = new DateTime('2010-11-07 00:10:20'); // dt, zt3 [all …]
|
H A D | DateTime_data-fall-type2-type2.inc | 24 $end = new DateTime('2010-11-06 18:38:28 EDT'); // prev, zt2 29 $end = new DateTime('2010-11-07 00:10:20 EDT'); // dt, zt2 30 $start = new DateTime('2010-11-06 18:38:28 EDT'); // prev, zt2 35 $start = new DateTime('2010-11-06 18:38:28 EDT'); // prev, zt2 44 $end = new DateTime('2010-11-07 03:16:55 EST'); // st, zt2 55 $start = new DateTime('2010-11-07 00:10:20 EDT'); // dt, zt2 60 $start = new DateTime('2010-11-07 00:10:20 EDT'); // dt, zt2 65 $start = new DateTime('2010-11-07 00:10:20 EDT'); // dt, zt2 70 $start = new DateTime('2010-11-07 00:10:20 EDT'); // dt, zt2 74 $end = new DateTime('2010-11-07 03:16:55 EST'); // st, zt2 [all …]
|
H A D | rfc-datetime_and_daylight_saving_time-type1.phpt | 15 $end = new DateTime('2010-03-14 03:00:00 -0400'); 16 $start = new DateTime('2010-03-14 01:59:59 -0500'); 58 $interval = new DateInterval($interval_spec); 64 $interval = new DateInterval($interval_spec); 70 $interval = new DateInterval($interval_spec); 76 $interval = new DateInterval($interval_spec); 82 $interval = new DateInterval($interval_spec); 88 $interval = new DateInterval($interval_spec); 100 $interval = new DateInterval($interval_spec); 106 $interval = new DateInterval($interval_spec); [all …]
|
H A D | DateTime_data-spring-type2-type3.inc | 22 $end = new DateTime('2010-03-13 18:38:28'); // prev, zt3 27 $end = new DateTime('2010-03-14 00:10:20'); // st, zt3 32 $end = new DateTime('2010-03-14 03:16:55'); // dt, zt3 37 $end = new DateTime('2010-03-15 19:59:59'); // post, zt3 42 $end = new DateTime('2010-03-13 18:38:28'); // prev, zt3 52 $end = new DateTime('2010-03-14 03:16:55'); // dt, zt3 57 $end = new DateTime('2010-03-15 19:59:59'); // post, zt3 62 $end = new DateTime('2010-03-13 18:38:28'); // prev, zt3 67 $end = new DateTime('2010-03-14 00:10:20'); // st, zt3 87 $end = new DateTime('2010-03-14 00:10:20'); // st, zt3 [all …]
|
H A D | DateTime_data-spring-type3-type2.inc | 28 $start = new DateTime('2010-03-13 18:38:28'); // prev, zt3 33 $start = new DateTime('2010-03-13 18:38:28'); // prev, zt3 38 $start = new DateTime('2010-03-13 18:38:28'); // prev, zt3 43 $start = new DateTime('2010-03-14 00:10:20'); // st, zt3 48 $start = new DateTime('2010-03-14 00:10:20'); // st, zt3 53 $start = new DateTime('2010-03-14 00:10:20'); // st, zt3 58 $start = new DateTime('2010-03-14 00:10:20'); // st, zt3 63 $start = new DateTime('2010-03-14 03:16:55'); // dt, zt3 68 $start = new DateTime('2010-03-14 03:16:55'); // dt, zt3 73 $start = new DateTime('2010-03-14 03:16:55'); // dt, zt3 [all …]
|
H A D | DateTime_data-spring-type3-type3.inc | 22 $end = new DateTime('2010-03-13 18:38:28'); // prev, zt3 27 $end = new DateTime('2010-03-14 00:10:20'); // st, zt3 28 $start = new DateTime('2010-03-13 18:38:28'); // prev, zt3 32 $end = new DateTime('2010-03-14 03:16:55'); // dt, zt3 33 $start = new DateTime('2010-03-13 18:38:28'); // prev, zt3 43 $start = new DateTime('2010-03-14 00:10:20'); // st, zt3 48 $start = new DateTime('2010-03-14 00:10:20'); // st, zt3 52 $end = new DateTime('2010-03-14 03:16:55'); // dt, zt3 53 $start = new DateTime('2010-03-14 00:10:20'); // st, zt3 58 $start = new DateTime('2010-03-14 00:10:20'); // st, zt3 [all …]
|
H A D | DateTime_data-spring-type2-type2.inc | 22 $end = new DateTime('2010-03-13 18:38:28 EST'); // prev, zt2 27 $end = new DateTime('2010-03-14 00:10:20 EST'); // st, zt2 28 $start = new DateTime('2010-03-13 18:38:28 EST'); // prev, zt2 32 $end = new DateTime('2010-03-14 03:16:55 EDT'); // dt, zt2 33 $start = new DateTime('2010-03-13 18:38:28 EST'); // prev, zt2 43 $start = new DateTime('2010-03-14 00:10:20 EST'); // st, zt2 48 $start = new DateTime('2010-03-14 00:10:20 EST'); // st, zt2 52 $end = new DateTime('2010-03-14 03:16:55 EDT'); // dt, zt2 53 $start = new DateTime('2010-03-14 00:10:20 EST'); // st, zt2 58 $start = new DateTime('2010-03-14 00:10:20 EST'); // st, zt2 [all …]
|
H A D | DatePeriod_set_state_exception.phpt | 8 …'start' => new \DateTimeImmutable("2023-01-13 12:29:30"), 'end' => new \DateTimeImmutable("2023-01… 17 …'start' => "2023-01-13 12:29:30", 'end' => new \DateTimeImmutable("2023-01-16 16:49:29"), 'current… 21 …'start' => new \DateTimeImmutable("2023-01-13 12:29:30"), 'end' => "2023-01-16 16:49:29", 'current… 25 …'start' => new \DateTimeImmutable("2023-01-13 12:29:30"), 'end' => new \DateTimeImmutable("2023-01… 29 …'start' => new \DateTimeImmutable("2023-01-13 12:29:30"), 'end' => new \DateTimeImmutable("2023-01… 33 …'start' => new \DateTimeImmutable("2023-01-13 12:29:30"), 'end' => new \DateTimeImmutable("2023-01… 37 …'start' => new \DateTimeImmutable("2023-01-13 12:29:30"), 'end' => new \DateTimeImmutable("2023-01… 41 …'start' => new \DateTimeImmutable("2023-01-13 12:29:30"), 'end' => new \DateTimeImmutable("2023-01…
|
H A D | rfc-datetime_and_daylight_saving_time-type2.phpt | 16 $end = new DateTime('2010-03-14 03:00:00 EDT'); 17 $start = new DateTime('2010-03-14 01:59:59 EST'); 21 $end = new DateTime('2010-03-14 04:30:00 EDT'); 22 $start = new DateTime('2010-03-13 04:30:00 EST'); 26 $end = new DateTime('2010-03-14 03:30:00 EDT'); 59 $interval = new DateInterval($interval_spec); 65 $interval = new DateInterval($interval_spec); 71 $interval = new DateInterval($interval_spec); 77 $interval = new DateInterval($interval_spec); 83 $interval = new DateInterval($interval_spec); [all …]
|
/php-src/Zend/tests/new_without_parentheses/ |
H A D | new_with_ctor_arguments_parentheses.phpt | 48 echo new A()::C; 49 echo new A()::{'C'}; 50 echo new $class()::C; 55 echo new A()->property; 63 new A()(); 64 new $class()(); 65 new (trim(' A '))()(); 67 new A()->method(); 75 new A()['key']; 76 new $class()['key']; [all …]
|
/php-src/ext/reflection/tests/ |
H A D | gh9447.phpt | 14 $b = new Bar(), 15 $c = new parent(), 16 $d = new self(), 17 $e = new namespace\Bar(), 18 $f = new Qux(), 19 $g = new namespace\Qux(), 20 $i = new \Qux(), 24 $r = new \ReflectionMethod(Foo::class, 'bar'); 34 Parameter #2 [ <optional> $c = new parent() ] 35 Parameter #3 [ <optional> $d = new self() ] [all …]
|
H A D | ReflectionParameter_new_initializer.phpt | 2 ReflectionParameter::__toString() with new initializer 7 $p1 = new stdClass, 8 $p2 = new SomeClass(new With, some: new Parameters) 11 echo new ReflectionParameter('test', 'p1'), "\n"; 12 echo new ReflectionParameter('test', 'p2'), "\n"; 16 Parameter #0 [ <optional> $p1 = new \stdClass() ] 17 Parameter #1 [ <optional> $p2 = new \SomeClass(new \With(), some: new \Parameters()) ]
|
H A D | ReflectionObject_isInternal_basic.phpt | 8 $r1 = new ReflectionObject(new stdClass); 9 $r2 = new ReflectionObject(new ReflectionClass('C')); 10 $r3 = new ReflectionObject(new ReflectionProperty('Exception', 'message')); 11 $r4 = new ReflectionObject(new Exception); 12 $r5 = new ReflectionObject(new C);
|
H A D | ReflectionObject_isUserDefined_basic.phpt | 8 $r1 = new ReflectionObject(new stdClass); 9 $r2 = new ReflectionObject(new ReflectionClass('C')); 10 $r3 = new ReflectionObject(new ReflectionProperty('Exception', 'message')); 11 $r4 = new ReflectionObject(new Exception); 12 $r5 = new ReflectionObject(new C);
|
H A D | ReflectionClass_setStaticPropertyValue_001.phpt | 21 $rcA = new ReflectionClass('A'); 28 $rcB = new ReflectionClass('B'); 56 [privateOverridden] => new value 1 57 [protectedOverridden] => new value 2 58 [publicOverridden] => new value 3 64 [privateOverridden] => new value 1 65 [protectedOverridden] => new value 2 66 [publicOverridden] => new value 3 70 [privateOverridden] => new value 5 71 [protectedOverridden] => new value 6 [all …]
|
/php-src/Zend/tests/temporary_cleaning/ |
H A D | temporary_cleaning_013.phpt | 7 var_dump(new class { 14 var_dump([0] + [new class { 34 $foo = new class { 44 $foo = new class { 148 var_dump((new class { 156 var_dump((new class { 200 $foo = new class { 207 $foo = [new class { 221 $foo = new class { 239 $foo = new class { [all …]
|
/php-src/Zend/tests/grammar/ |
H A D | regression_007.phpt | 9 public static function new() { 11 return new static(); 20 Foo::new()::new()::new(); 23 (new Foo)->self()::new()->self()->self()::use 26 Foo::{'new'}(); 33 Foo::new 34 Foo::new 35 Foo::new 37 Foo::new 41 Foo::new
|
/php-src/Zend/tests/closures/ |
H A D | closure_061.phpt | 23 [new Cls, null], 41 [new Cls, null], 42 [new Cls, 'Cls'], 58 [[new DLL, 'count'], [ 64 [new DLL, null], 117 bindTo(new Cls, null): 138 bindTo(new Cls, null): 159 bindTo(new Cls, null): 174 (new Cls)->method() 189 bindTo(new Cls, null): [all …]
|