ID:               34052
 User updated by:  ash at theleys dot net
 Reported By:      ash at theleys dot net
-Status:           Closed
+Status:           Open
 Bug Type:         Date/time related
 Operating System: Server 2003, IIS6
-PHP Version:      5.1.0b3
+PHP Version:      5.1RC1
 New Comment:

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.


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

[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