php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27866 mktime() returns invalid value
Submitted: 2004-04-05 06:35 UTC Modified: 2004-04-11 12:14 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: andrew at mansionproductions dot com Assigned:
Status: No Feedback Package: Date/time related
PHP Version: 4.3.5 OS: FreeBSD 4.8
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:
12 + 41 = ?
Subscribe to this entry?

 
 [2004-04-05 06:35 UTC] andrew at mansionproductions dot com
Description:
------------
mktime(0,0,0,4,4,2004)
returns -7262

Reproduce code:
---------------
<?php
$time = mktime(0,0,0,4,4,2004)
?>

Expected result:
----------------
$test should be 1081026000

Actual result:
--------------
$time is -7262

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-04-05 06:46 UTC] abies@php.net
$ uname -mrs 
FreeBSD 4.8-RELEASE alpha 
$ php -r 'var_dump(mktime(0,0,0,4,4,2004));' 
int(1081029600) 
 
Make sure you have set up your locales and timezones 
correctly. 
 
 
 [2004-04-11 12:14 UTC] iliaa@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 19:01:31 2024 UTC