php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16517 strtotime no longer converts output of UNIX command 'date'
Submitted: 2002-04-09 13:42 UTC Modified: 2003-07-28 04:56 UTC
Votes:3
Avg. Score:4.0 ± 0.8
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: joseph dot p dot weigel at aexp dot com Assigned:
Status: Closed Package: Date/time related
PHP Version: 4.1.2 OS: Solaris
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: joseph dot p dot weigel at aexp dot com
New email:
PHP Version: OS:

 

 [2002-04-09 13:42 UTC] joseph dot p dot weigel at aexp dot com
-------------------- Test Script --------------------
$testTS = 'Tue Apr  9 11:37:21 MDT 2002'; # Output of UNIX command 'date'
print strtotime ($testTS);

-------------------- Yields --------------------
-1

-------------------- PHP Info --------------------
PHP Version
  4.1.2 

System
  SunOS slc-sun4 5.7 Generic_106541-15 sun4u sparc SUNW,Ultra-Enterprise 

Build Date
  Apr  2 2002 

Configure Command
  'configure' '--with-jpeg-dir=/usr/local' '--with-gd=/usr/local' '--with-ibm-db2=/home/slcd0005/sqllib' '--with-apache=/home/tc2876a/stage/apache/apache_1.3.12' 

Server API
  Apache 

Virtual Directory Support
  disabled 

Configuration File (php.ini) Path
  /usr/local/lib/php.ini 

ZEND_DEBUG
  disabled 

Thread Safety
  disabled 

-------------------- Notes --------------------
Worked in 4.0.2

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-09 14:24 UTC] joseph dot p dot weigel at aexp dot com
After reviewing the details of other open bugs, seems similar to Bug #13142 and Bug #15123.
 [2002-05-05 15:55 UTC] topside at topside dot org
----- Linux Test Script ------
echo strtotime("2002 Fri Apr 26 16:40:13");
echo strtotime("Fri Apr 26 16:40:13 EDT 2002");
echo strtotime("Fri Apr 26 16:40:13 2002");

------------------------------

-------- Yields --------------
-1
-1
-1
-------- PHP Info ------------
PHP Version
  4.1.1

System
  Linux 2.4.18-preempt-1

Server API
  Apache
 [2002-07-04 13:21 UTC] eru@php.net
Duplicate of #13142 

 [2003-07-28 04:56 UTC] sniper@php.net
Fixed in CVS.

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue May 13 14:01:28 2025 UTC