ID:               34052
 Updated by:       [EMAIL PROTECTED]
 Reported By:      ash at theleys dot net
-Status:           Feedback
+Status:           Verified
 Bug Type:         Date/time related
-Operating System: Server 2003, IIS6
+Operating System: windows
 PHP Version:      5.1RC1
 New Comment:

Yep, I can reproduce this on windows.
This seems to be a microsoft bug, because it %ld is stated as
supported:
http://msdn.microsoft.com/library/en-us/vclib/html/_crt_format_specification_fields_.2d_.printf_and_wprintf_functions.asp


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

[2005-09-04 14:52:54] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip

Please try the snapshot then.

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

[2005-09-04 14:00:04] ash at theleys dot net

Tried again with RC1 and same result. time() WORKS correctly. date('U')
still returns %ld.  Can not try CVS as I can't build PHP from source,
hence waited for RC1.

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

[2005-08-09 18:33:49] [EMAIL PROTECTED]

Works fine with latest CVS.


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

[2005-08-09 18:10:10] ash at theleys dot net

Description:
------------
date('U') returns %ld not unix timestamp

Straight CGI (Fast CGI), ini set by installer, unchanged otherwise,
worked under 5.04

Reproduce code:
---------------
<?php
echo date('U');
?>

Expected result:
----------------
Unix timestamp, not, what looks like, an uninterpreted sprintf

Actual result:
--------------
%ld


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


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

Reply via email to