From: undoluck at gmail dot com
Operating system: win server2003
PHP version: 5.2SVN-2009-07-31 (snap)
PHP Bug Type: Unknown/Other Function
Bug description: strftime
Description:
------------
strftime -- strtotime
Reproduce code:
---------------
---
>From manual page: function.strftime
---
<?php
date_default_timezone_set('PRC');
$str1 = "07/31/2009 12:00:00 AM";
$t1 = strtotime($str1);
var_dump($t1);
echo "\nt1: ".strftime("%I:%M:%S %p", $t1);
echo "\nt1: ".strftime("%H:%M:%S", $t1);
echo "\n ".date('m/d/Y H:i:s', $t1);
?>
Expected result:
----------------
t1: 12:00:00 AM
t1: 12:00:00
07/31/2009 12:00:00
Actual result:
--------------
int(1248969600)
t1: 12:00:00 AM
t1: 00:00:00
07/31/2009 00:00:00
--
Edit bug report at http://bugs.php.net/?id=49116&edit=1
--
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=49116&r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=49116&r=trysnapshot53
Try a snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=49116&r=trysnapshot60
Fixed in SVN:
http://bugs.php.net/fix.php?id=49116&r=fixed
Fixed in SVN and need be documented:
http://bugs.php.net/fix.php?id=49116&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=49116&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=49116&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=49116&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=49116&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=49116&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=49116&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=49116&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=49116&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=49116&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49116&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=49116&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=49116&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=49116&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=49116&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=49116&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=49116&r=mysqlcfg