php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #40342 date() function not parsing complete string format
Submitted: 2007-02-03 14:18 UTC Modified: 2007-02-13 01:00 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: garmoan at gmail dot com Assigned:
Status: No Feedback Package: Date/time related
PHP Version: 6CVS-2007-02-03 (CVS) OS: Mac OS X 10.4
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
37 - 10 = ?
Subscribe to this entry?

 
 [2007-02-03 14:18 UTC] garmoan at gmail dot com
Description:
------------
date() does not seem to return the entire formatting string.
It seems to only parse the first character in the string and ignores the rest.

Reproduce code:
---------------
echo date('H:i:s');

Expected result:
----------------
01:16:45

Actual result:
--------------
01

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-02-03 14:31 UTC] garmoan at gmail dot com
Ah, this seems to occur when unicode.semantics is on.
 [2007-02-04 07:38 UTC] judas dot iscariote at gmail dot com
Works for me, with current CVS HEAD, Linux with unicode.semantics on/off..
 [2007-02-05 09:29 UTC] tony2001@php.net
Works just fine here (tested on MacOS).
 [2007-02-13 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 09:01:27 2024 UTC