php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #79198 Incorrect abbrv. MONTH
Submitted: 2020-01-30 18:20 UTC Modified: 2020-01-30 19:04 UTC
From: fullershane9376 at gmail dot com dot com Assigned:
Status: Not a bug Package: Date/time related
PHP Version: 7.2.27 OS: Windows 10
Private report: No CVE-ID: None
 [2020-01-30 18:20 UTC] fullershane9376 at gmail dot com dot com
Description:
------------
Incorrect output from specific input

Test script:
---------------
strtoupper(date("M", mktime(0, 0, 0, 2, $cur_date, $four_digit_year)));

Expected result:
----------------
expected result FEB


Actual result:
--------------
actual result MAR

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-01-30 18:22 UTC] requinix@php.net
-Status: Open +Status: Feedback
 [2020-01-30 18:22 UTC] requinix@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc. If the script requires a
database to demonstrate the issue, please make sure it creates
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.


 [2020-01-30 18:59 UTC] fullershane9376 at gmail dot com dot com
-Status: Feedback +Status: Open
 [2020-01-30 18:59 UTC] fullershane9376 at gmail dot com dot com
<? php
$abrv_month =  strtoupper(date("M", mktime(0, 0, 2, $numeric_month, $cur_date, $four_digit_year)));

echo "$abrv_month";

?>
 [2020-01-30 19:01 UTC] requinix@php.net
-Status: Open +Status: Feedback
 [2020-01-30 19:01 UTC] requinix@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc. If the script requires a
database to demonstrate the issue, please make sure it creates
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.

https://3v4l.org/Za8No
 [2020-01-30 19:03 UTC] fullershane9376 at gmail dot com dot com
-Status: Feedback +Status: Open
 [2020-01-30 19:03 UTC] fullershane9376 at gmail dot com dot com
this is somerwhere on my end. thanks
 [2020-01-30 19:04 UTC] requinix@php.net
-Status: Open +Status: Not a bug
 [2020-01-30 19:04 UTC] requinix@php.net
No problem.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 06 15:01:31 2024 UTC