File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -4957,9 +4957,9 @@ PHP_METHOD(DatePeriod, __construct)
49574957 }
49584958 } else {
49594959 /* check initialisation */
4960- DATE_CHECK_INITIALIZED (Z_PHPDATE_P (start )-> time , DateTimeInterface );
4960+ DATE_CHECK_INITIALIZED (Z_PHPDATE_P (start )-> time , date_ce_interface );
49614961 if (end ) {
4962- DATE_CHECK_INITIALIZED (Z_PHPDATE_P (end )-> time , DateTimeInterface );
4962+ DATE_CHECK_INITIALIZED (Z_PHPDATE_P (end )-> time , date_ce_interface );
49634963 }
49644964
49654965 /* init */
Original file line number Diff line number Diff line change 2323echo "OK \n" ;
2424?>
2525--EXPECT--
26- Error: The DateTimeInterface object has not been correctly initialized by its constructor
27- Error: The DateTimeInterface object has not been correctly initialized by its constructor
26+ DateObjectError: Object of type DateTimeInterface has not been correctly initialized by calling parent::__construct() in its constructor
27+ DateObjectError: Object of type DateTimeInterface has not been correctly initialized by calling parent::__construct() in its constructor
2828OK
You can’t perform that action at this time.
0 commit comments