title: mktime() expects at most 6 parameters, 7 given in
body: <p>The Code:</p>
  
  <pre><code>$morningstarts = 9;
  $eveningends   = 22;
  $dst_change = is_dst($month,$day,$year);
  $am7=mktime($morningstarts,0,0,$month,$day,$year,is_dst($month,$day,$year,$morningstarts));
  $pm7=mktime($eveningends,$eveningends_minutes,0,$month,$day,$year,is_dst($month,$day,$year,$eveningends));
  </code></pre>
  
  <p>That code was working very fine on PHP 5.6 but in PHP 7.1 I'm facing the following error.</p>
  
  <blockquote>
    <p>Warning: mktime() expects at most 6 parameters, 7 given in</p>
  </blockquote>
  
  <p>Please anyone help me out.</p>