From:             hamilton at laughland dot biz
Operating system: Windows XP SP2
PHP version:      5.1.0RC1
PHP Bug Type:     *General Issues
Bug description:  date("U") is not returning a valid date stamp

Description:
------------
The problem is is as per the summary.

date("U") is not returning a valid datestamp.

In my case it is returning "%ld" (without quotes).

The date function is returning the expected results for other pattern
strings I have tried.

Reproduce code:
---------------
$today = date("U");

Returns %ld

Expected result:
----------------
A valid timestamp should have been returned.


-- 
Edit bug report at http://bugs.php.net/?id=34283&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=34283&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=34283&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=34283&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=34283&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=34283&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=34283&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=34283&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=34283&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=34283&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=34283&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=34283&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=34283&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=34283&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=34283&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=34283&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=34283&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=34283&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=34283&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=34283&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=34283&r=mysqlcfg

Reply via email to