Home
last modified time | relevance | path

Searched refs:Y (Results 26 – 50 of 430) sorted by relevance

12345678910>>...18

/php-src/Zend/tests/type_declarations/intersection_types/variance/
H A Dinvalid6.phpt6 // Let Y and Z be loadable.
7 interface Y {}
11 function method(): X&Y {}
14 function method(): Y&Z {}
20 Fatal error: Could not check compatibility between Test2::method(): Y&Z and Test::method(): X&Y, be…
H A Dinvalid_invariance1.phpt7 interface Y {}
10 public X&Y $prop;
13 public X&Y&Z $prop;
18 Fatal error: Type of B::$prop must be X&Y (as in class A) in %s on line %d
/php-src/Zend/tests/exceptions/
H A Dexception_during_variance_autoload.phpt8 new Y;
10 if ($class == 'Y') {
18 function method(): Y {}
22 Y
25 Fatal error: During inheritance of B, while autoloading Y: Uncaught Error: Class "Q" not found in %…
27 #0 %s(%d): {closure:%s:%d}('Y')
/php-src/Zend/tests/type_declarations/dnf_types/variance/
H A Dvalid5.phpt7 interface Y {}
9 class TestOne implements X, Y {}
10 class TestTwo implements X, Y {}
15 public function foo(TestOne|TestTwo|Foo $param): (X&Y)|Foo;
20 public function foo((X&Y)|Foo $param): TestOne|TestTwo|Foo;
30 public function foo(Y|Foo $param): TestOne;
40 public function foo(Y|Foo $param): TestOne;
/php-src/Zend/tests/type_declarations/union_types/
H A Dmultiple_classes.phpt7 public X|Y|Z|int $prop;
8 public function method(X|Y|Z|int $arg): X|Y|Z|int {
57 class Y {}
60 $test->prop = new Y;
62 var_dump($test->method(new Y));
70 Cannot assign stdClass to property Test::$prop of type X|Y|Z|int
71 Test::method(): Argument #1 ($arg) must be of type X|Y|Z|int, stdClass given, called in %s on line …
80 object(Y)#4 (0) {
82 object(Y)#6 (0) {
/php-src/ext/date/tests/
H A Dbug69336.phpt7 var_dump(date('d.m.Y',strtotime('last day of april')));
8 var_dump(date('d.m.Y',strtotime('last tuesday of march 2015')));
9 var_dump(date('d.m.Y',strtotime('last wednesday of march 2015')));
10 var_dump(date('d.m.Y',strtotime('last wednesday of april 2015')));
11 var_dump(date('d.m.Y',strtotime('last wednesday of march 2014')));
12 var_dump(date('d.m.Y',strtotime('last wednesday of april 2014')));
H A Dbug34087.phpt2 Bug #34087 (strtotime() does not work with date format "Y/m/d")
6 echo "Y/m/d: ", strtotime("2005/8/12"), "\n";
7 echo "Y-m-d: ", strtotime("2005-8-12"), "\n";
15 Y/m/d: 1123804800
16 Y-m-d: 1123804800
H A Dmktime-1.phpt12 echo date("Y-m-d", mktime( 12, 0, 0, 3, 0, 2000)) ."\n";
13 echo date("Y-m-d", mktime( 12, 0, 0, 3, -1, 2000)) ."\n";
14 echo date("Y-m-d", mktime( 12, 0, 0, 2, 29, 2000)) ."\n";
15 echo date("Y-m-d", mktime( 12, 0, 0, 3, 0, 2001)) ."\n";
16 echo date("Y-m-d", mktime( 12, 0, 0, 2, 29, 2001)) ."\n";
17 echo date("Y-m-d", mktime( 12, 0, 0, 0, 0, 2000)) ."\n";
H A Ddate_time_fractions.phpt12 echo date_create( "2016-10-03 12:47:18.819313" )->format( "Y-m-d H:i:s.u" ), "\n\n";
16 echo $dt->modify( "+1 day" )->format( "Y-m-d H:i:s.u" ), "\n";
19 echo $dt->modify( "-3 months" )->format( "Y-m-d H:i:s.u" ), "\n";
25 echo $dt->modify( "yesterday" )->format( "Y-m-d H:i:s.u" ), "\n";
28 echo $dt->modify( "noon" )->format( "Y-m-d H:i:s.u" ), "\n";
31 echo $dt->modify( "10 weekday" )->format( "Y-m-d H:i:s.u" ), "\n";
45 echo $dt0->format( "Y-m-d H:i:s.u" ), "\n";
46 echo $dt1->format( "Y-m-d H:i:s.u" ), "\n";
47 echo $dt2->format( "Y-m-d H:i:s.u" ), "\n";
48 echo $dt3->format( "Y-m-d H:i:s.u" ), "\n";
[all …]
H A Dbug30532.phpt8 echo date('Y-m-d H:i:s T', strtotime('2004-10-31 EDT +1 hour'))."\n";
9 echo date('Y-m-d H:i:s T', strtotime('2004-10-31 EDT +2 hours'))."\n";
10 echo date('Y-m-d H:i:s T', strtotime('2004-10-31 EDT +3 hours'))."\n";
14 echo date('Y-m-d H:i:s T', strtotime('2004-10-31 +1 hour'))."\n";
15 echo date('Y-m-d H:i:s T', strtotime('2004-10-31 +2 hours'))."\n";
16 echo date('Y-m-d H:i:s T', strtotime('2004-10-31 +3 hours'))."\n";
H A Dbug33414-1.phpt10 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
18 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
26 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
34 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
43 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
51 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
59 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
67 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
75 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
83 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
[all …]
H A DDatePeriod_no_advance_on_valid.phpt6 $start = DateTime::createFromFormat('Y-m-d', '2022-01-01');
7 $end = DateTime::createFromFormat('Y-m-d', '2022-01-04');
13 echo $item->format('Y-m-d') . "\n";
20 echo $item->format('Y-m-d') . "\n";
29 echo $item->format('Y-m-d') . "\n";
36 echo $item->format('Y-m-d') . "\n";
H A Dbug80610.phpt5 $expectEaster = date_create_from_format('Y-m-d H:i:s', '2020-04-12 12:00:00', new DateTimeZone('Eur…
9 echo('easter '.$expectEaster->format('Y-m-d H:i:s')."\n" );
11 $expectEaster = date_create_from_format('Y-m-d H:i:s', '2020-04-12 12:00:00', new DateTimeZone('Eur…
15 echo('easter '.$expectEaster->format('Y-m-d H:i:s')."\n");
17 $expectEaster = date_create_from_format('Y-m-d H:i:s', '2020-04-12 12:00:00', new DateTimeZone('Eur…
21 echo('easter '.$expectEaster->format('Y-m-d H:i:s')."\n");
H A Dbug33414-2.phpt8 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
10 print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
16 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
18 print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
24 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
32 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
40 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
48 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
56 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
64 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
[all …]
H A Ddate_modify-1.phpt7 echo date_format($ts, 'D, d M Y H:i:s T'), "\n";
9 echo date_format($ts, 'D, d M Y H:i:s T'), "\n";
13 echo date_format($ts, 'D, d M Y H:i:s T'), "\n";
15 echo date_format($ts, 'D, d M Y H:i:s T'), "\n";
18 echo date_format($ts, 'D, d M Y H:i:s T'), "\n";
20 echo date_format($ts, 'D, d M Y H:i:s T'), "\n";
H A Ddate_period-immutable.phpt14 echo $dt->format( "l Y-m-d\n" );
15 echo $dt->modify( "3 tuesday" )->format( "l Y-m-d\n" );
16 echo $dt->format( "l Y-m-d\n\n" );
22 echo $dt->format( "l Y-m-d\n" );
23 echo $dt->modify( "3 tuesday" )->format( "l Y-m-d\n" );
24 echo $dt->format( "l Y-m-d\n\n" );
/php-src/Zend/tests/type_declarations/intersection_types/
H A Dmissing_interface_intersection_type.phpt7 interface Y {}
13 public X&Y $intersect;
16 function foo(): X&Y {
20 function bar(X&Y $o): void {
48 foo(): Return value must be of type X&Y, A returned
49 Cannot assign A to property Collection::$intersect of type X&Y
50 bar(): Argument #1 ($o) must be of type X&Y, A given, called in %s on line %d
H A Dassigning_intersection_types.phpt7 interface Y {}
10 class TestParent implements X, Y {}
15 public X&Y&Z $prop;
17 public function method1(X&Y $a): X&Y&Z {
20 public function method2(X $a): X&Y {
49 Cannot assign TestParent to property A::$prop of type X&Y&Z
H A Dadded_interface_intersection_type.phpt7 interface Y {}
10 class A implements X, Y, Z {}
13 public X&Y $intersect;
16 function foo(): X&Y {
20 function bar(X&Y $o): void {
/php-src/Zend/tests/property_hooks/
H A Dset_value_parameter_type_variance_007.phpt7 interface Y extends X {}
10 public Y $prop {
16 public Y $prop {
17 set(Y $prop) {}
23 Fatal error: Declaration of B::$prop::set(Y $prop): void must be compatible with A::$prop::set(X $p…
/php-src/Zend/tests/type_declarations/variance/
H A Dclass_order_autoload_error9.phpt2 Inheritance failure because Y inherits from wrong class
18 function m2(): Y {}
25 class Y extends A {}
26 var_dump(new Y);
36 object(Y)#2 (0) {
39 Fatal error: Declaration of B::m2(): Y must be compatible with A::m2(): B in %s on line %d
H A Dclass_order_autoload3.phpt14 public function method(): Y {}
22 } else if ($class == 'Y') {
23 class Y extends X {
26 var_dump(new Y);
38 object(Y)#2 (0) {
/php-src/ext/calendar/tests/
H A Deaster_date_64bit.phpt14 echo date("Y-m-d", easter_date(2000))."\n";
15 echo date("Y-m-d", easter_date(2001))."\n";
16 echo date("Y-m-d", easter_date(2002))."\n";
17 echo date("Y-m-d", easter_date(2045))."\n";
18 echo date("Y-m-d", easter_date(2046))."\n";
19 echo date("Y-m-d", easter_date(2047))."\n";
/php-src/Zend/tests/
H A Dbug44141.phpt14 class Y extends X
18 return new Y($x);
22 $y = Y::cheat(5);
26 Fatal error: Uncaught Error: Call to private X::__construct() from scope Y in %s:%d
28 #0 %s(%d): Y::cheat(5)
/php-src/ext/standard/tests/file/
H A D005_basic.phpt7 print( @date('Y:M:D:H:i:s', fileatime(__FILE__)) )."\n";
8 print( @date('Y:M:D:H:i:s', filemtime(__FILE__)) )."\n";
9 print( @date('Y:M:D:H:i:s', filectime(__FILE__)) )."\n";
10 print( @date('Y:M:D:H:i:s', touch(__DIR__."/005_basic.tmp")) )."\n";
13 print( @date('Y:M:D:H:i:s', fileatime(".")) )."\n";
14 print( @date('Y:M:D:H:i:s', filemtime(".")) )."\n";
15 print( @date('Y:M:D:H:i:s', filectime(".")) )."\n";
16 print( @date('Y:M:D:H:i:s', touch(__DIR__."/005_basic")) )."\n";

Completed in 22 milliseconds

12345678910>>...18