Bug #75658 [Com]: cal_days_in_month function give error undefined function in php 7.0.26
| From: | charlie dot muldoon12 at gmail dot com | Date: | Sat, 09 Dec 2017 12:28:08 +0000 |
| Subject: | Bug #75658 [Com]: cal_days_in_month function give error undefined function in php 7.0.26 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-213028@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=75658&edit=1
ID: 75658
Comment by: charlie dot muldoon12 at gmail dot com
Reported by: charlie dot muldoon12 at gmail dot com
Summary: cal_days_in_month function give error undefined
function in php 7.0.26
Status: Feedback
Type: Bug
Package: Date/time related
Operating System: Windows
PHP Version: 7.0.26
Block user comment: N
Private report: N
New Comment:
This problem occurs with php version 7.0.26.
Check this online site http://sandbox.onlinephpfunctions.com/
Add here below code
<?php
echo cal_days_in_month(CAL_GREGORIAN, 12, 2017);
?>
And Select PHP version 5.0.2
It will give fatal error Function undefined.
Previous Comments:
------------------------------------------------------------------------
[2017-12-09 10:40:16] kelunik@php.net
I cannot reproduce it.
cal_days_in_month(CAL_GREGORIAN, 12, 2017) correctly returns 31.
------------------------------------------------------------------------
[2017-12-09 10:10:34] charlie dot muldoon12 at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/function.cal-days-in-month
---
cal_days_in_month(CAL_GREGORIAN, 12, 2017);
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=75658&edit=1