php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6728 mktime / date misbehaving around 1964 nd earlier
Submitted: 2000-09-13 22:07 UTC Modified: 2000-09-14 03:03 UTC
From: david at broadowler dot co dot uk Assigned:
Status: Closed Package: *General Issues
PHP Version: 3.0.16 OS: Linux 2.2.14 (Redhat6.2)
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: david at broadowler dot co dot uk
New email:
PHP Version: OS:

 

 [2000-09-13 22:07 UTC] david at broadowler dot co dot uk
Date functions erratic in 1960's - perhaps too many drugs around at the time ? Causes me grief with age validation routines. Checked reports - can't see similar report.

All kit local - Apache and PHP build from source trees, no modifications to source (I wouldn't dare!)

Script to cause failure:
<?php
$d4=mktime(0,0,0,09,01,1961);$d4s=date("D d F Y", $d4);
echo "Date was $d4 [$d4s] <br>";
?>

result (should be sep 1st 1961) is Date was -286675200 [Thu 01 December 1960] 

Configure Line:
Configure command: ./configure '--with-apxs=/local/apache/bin/apxs' '--with-apache=/tmp/apache' '--with-gd=no' '--with-mysql' '--enable-sysvshm=yes' '--enable-sysvsem=yes' '--with-config-file-path=/local/apache/conf' '--enable-track-vars=yes' '--enable-force-cgi-redirect=yes' '--enable-short-tags=no'

Apache Details:
Apache Version: Apache/1.3.12
Apache Release: 10312100
Apache API Version: 19990320
Loaded modules: mod_php3, mod_setenvif, mod_so, mod_unique_id, mod_usertrack, mod_headers, mod_expires, mod_cern_meta, mod_proxy, mod_digest, mod_auth_dbm, mod_auth_anon, mod_auth, mod_access, mod_rewrite, mod_alias, mod_userdir, mod_speling, mod_actions, mod_imap, mod_asis, mod_cgi, mod_dir, mod_autoindex, mod_include, mod_info, mod_status, mod_negotiation, mod_mime, mod_mime_magic, mod_log_config, mod_env, mod_vhost_alias, http_core

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-09-14 03:03 UTC] rasmus@php.net
09 is not a valid number.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 23:01:28 2024 UTC