ID:               45359
 Updated by:       [EMAIL PROTECTED]
 Reported By:      ovidiu dot leferman at gmail dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Date/time related
 Operating System: Vista Ultimate 32B Sp1
 PHP Version:      5.2.6
 New Comment:

THis is not a bug, it simply parses this as "12:13:43 1948"):

[EMAIL PROTECTED]:~$ php -r 'var_dump(date_parse("1214431944"));'
array(12) {
  ["year"]=>
  int(1944)
  ["month"]=>
  bool(false)
  ["day"]=>
  bool(false)
  ["hour"]=>
  int(12)
  ["minute"]=>
  int(14)
  ["second"]=>
  int(43)
  ["fraction"]=>
  float(0)
  ["warning_count"]=>
  int(0)
  ["warnings"]=>
  array(0) {
  }
  ["error_count"]=>
  int(0)
  ["errors"]=>
  array(0) {
  }
  ["is_localtime"]=>
  bool(false)
}



Previous Comments:
------------------------------------------------------------------------

[2008-06-25 20:03:19] ovidiu dot leferman at gmail dot com

Description:
------------
var_dump(strtotime('1214431944'));
returning int(-805297517)




Reproduce code:
---------------
var_dump(strtotime('1214431944'));

Expected result:
----------------
false / -1

Actual result:
--------------
int(-805297517)


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


-- 
Edit this bug report at http://bugs.php.net/?id=45359&edit=1

Reply via email to