Skip to content

Commit 9dd8588

Browse files
committed
fix tests
1 parent 2f2aa54 commit 9dd8588

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

ext/date/tests/DatePeriod_wrong_recurrence_on_constructor.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ try {
1515
}
1616

1717
?>
18-
--EXPECT--
19-
DatePeriod::__construct(): Recurrence count must be greater than 0
20-
DatePeriod::__construct(): Recurrence count must be greater than 0
18+
--EXPECTF--
19+
DatePeriod::__construct(): Recurrence count must be between 1 and %d
20+
DatePeriod::__construct(): Recurrence count must be greater 1 and %d

ext/date/tests/gh14709.phpt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
--TEST--
22
Bug GH-14709 overflow on reccurences parameter
3+
--SKIPIF--
4+
<?php
5+
if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
6+
?>
37
--FILE--
48
<?php
59
$start = new DateTime('2018-12-31 00:00:00');
@@ -10,5 +14,6 @@ try {
1014
} catch (Exception $e) {
1115
echo $e->getMessage();
1216
}
17+
?>
1318
--EXPECTF--
1419
DatePeriod::__construct(): Recurrence count must be between 1 and %d

0 commit comments

Comments
 (0)