diff options
author | Adam Harvey <aharvey@php.net> | 2010-09-09 06:41:23 +0000 |
---|---|---|
committer | Adam Harvey <aharvey@php.net> | 2010-09-09 06:41:23 +0000 |
commit | 97f6da74a1b5d2baebf26b2b48d078f1f5ce3dd3 (patch) | |
tree | 0818b50e6338d58dfc1b5e05439d10732cd5b7e1 /ext/calendar/tests | |
parent | bcea4e69bb792963455e28a15ddc9763565090f8 (diff) | |
download | php-git-97f6da74a1b5d2baebf26b2b48d078f1f5ce3dd3.tar.gz |
Fixed bug #52744 (cal_days_in_month incorrect for December 1 BCE). Original
patch by gpap at internet dot gr.
Diffstat (limited to 'ext/calendar/tests')
-rw-r--r-- | ext/calendar/tests/bug52744.phpt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ext/calendar/tests/bug52744.phpt b/ext/calendar/tests/bug52744.phpt new file mode 100644 index 0000000000..886086a294 --- /dev/null +++ b/ext/calendar/tests/bug52744.phpt @@ -0,0 +1,12 @@ +--TEST-- +Bug #52744 (cal_days_in_month incorrect for December 1 BCE) +--SKIPIF-- +<?php include 'skipif.inc'; ?> +--FILE-- +<?php +var_dump(cal_days_in_month(CAL_GREGORIAN, 12, -1)); +var_dump(cal_days_in_month(CAL_JULIAN, 12, -1)); +?> +--EXPECT-- +int(31) +int(31) |