php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #34792 Date() function bug
Submitted: 2005-10-09 12:44 UTC Modified: 2005-10-09 13:25 UTC
From: kallesommer at ofir dot dk Assigned:
Status: Not a bug Package: Date/time related
PHP Version: 4.4.0 OS: UNIX/Windows
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: kallesommer at ofir dot dk
New email:
PHP Version: OS:

 

 [2005-10-09 12:44 UTC] kallesommer at ofir dot dk
Description:
------------
If you look up at the manual on date() it says that "l (lowercase 'L') would give A full textual representation of the day of the week Sunday through Saturday" but if you look lower it also says "Year: L Whether it's a leap year 1 if it is a leap year, 0 otherwise."

So if you run your script you would get '1 or 0'...

Reproduce code:
---------------
<?= date('L'); ?>

Expected result:
----------------
I expect to see the name of the weekday.. 


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-10-09 13:25 UTC] sniper@php.net
Please try understand the documentation first before claiming something is a bug. And check your dictionary for "lowercase" :)

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 15 05:01:33 2025 UTC