@@ -370,32 +370,17 @@ function date_sunset(int $timestamp, int $format = SUNFUNCS_RET_STRING, float $l
370
370
* most common today, the valid range for year
371
371
* is somewhere between 1901 and 2038. However, before PHP 5.1.0 this
372
372
* range was limited from 1970 to 2038 on some systems (e.g. Windows).
373
- * @param int $is_dst This parameter can be set to 1 if the time is during daylight savings time (DST),
374
- * 0 if it is not, or -1 (the default) if it is unknown whether the time is within
375
- * daylight savings time or not. If it's unknown, PHP tries to figure it out itself.
376
- * This can cause unexpected (but not incorrect) results.
377
- * Some times are invalid if DST is enabled on the system PHP is running on or
378
- * is_dst is set to 1. If DST is enabled in e.g. 2:00, all times
379
- * between 2:00 and 3:00 are invalid and mktime returns an undefined
380
- * (usually negative) value.
381
- * Some systems (e.g. Solaris 8) enable DST at midnight so time 0:30 of the day when DST
382
- * is enabled is evaluated as 23:30 of the previous day.
383
- *
384
- * As of PHP 5.1.0, this parameter became deprecated. As a result, the
385
- * new timezone handling features should be used instead.
386
- *
387
- * This parameter has been removed in PHP 7.0.0.
388
373
* @return int mktime returns the Unix timestamp of the arguments
389
374
* given.
390
375
* If the arguments are invalid, the function returns FALSE (before PHP 5.1
391
376
* it returned -1).
392
377
* @throws DatetimeException
393
378
*
394
379
*/
395
- function mktime (int $ hour = null , int $ minute = null , int $ second = null , int $ month = null , int $ day = null , int $ year = null , int $ is_dst = - 1 ): int
380
+ function mktime (int $ hour = null , int $ minute = null , int $ second = null , int $ month = null , int $ day = null , int $ year = null ): int
396
381
{
397
382
error_clear_last ();
398
- $ result = \mktime ($ hour , $ minute , $ second , $ month , $ day , $ year, $ is_dst );
383
+ $ result = \mktime ($ hour , $ minute , $ second , $ month , $ day , $ year );
399
384
if ($ result === false ) {
400
385
throw DatetimeException::createFromPhpError ();
401
386
}
0 commit comments