Skip to content

Commit

Permalink
Handle PHP 5 mktime() $is_dst arg not being implemented
Browse files Browse the repository at this point in the history
By handle I mean ignore.
  • Loading branch information
cs278 committed Dec 24, 2021
1 parent bc42946 commit 986c8bc
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 deletions.
4 changes: 0 additions & 4 deletions tests/refl_002.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ timecop.func_override=0

$functions = [
'time' => 'timecop_time',
'mktime' => 'timecop_mktime',
'gmmktime' => 'timecop_gmmktime',
'date' => 'timecop_date',
'gmdate' => 'timecop_gmdate',
'idate' => 'timecop_idate',
Expand All @@ -34,8 +32,6 @@ require __DIR__.'/check-func-refl.inc.php';

--EXPECT--
Checking time vs timecop_time
Checking mktime vs timecop_mktime
Checking gmmktime vs timecop_gmmktime
Checking date vs timecop_date
Checking gmdate vs timecop_gmdate
Checking idate vs timecop_idate
Expand Down
25 changes: 25 additions & 0 deletions tests/refl_005.phpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
--TEST--
Check reflection data for overridden functions (On PHP 5.6 timecop_mktime() does not implement the $is_dst parameter)
--SKIPIF--
<?php
$required_version = '7.0';
$required_func = array();
$required_class = array();
$required_method = array();
include(__DIR__."/tests-skipcheck.inc.php");
--INI--
date.timezone=America/Los_Angeles
timecop.func_override=0
--FILE--
<?php

$functions = [
'mktime' => 'timecop_mktime',
'gmmktime' => 'timecop_gmmktime',
];

require __DIR__.'/check-func-refl.inc.php';

--EXPECT--
Checking mktime vs timecop_mktime
Checking gmmktime vs timecop_gmmktime

0 comments on commit 986c8bc

Please sign in to comment.