#34052 [Asn]: date('U') returns %ld not unix timestamp

2005-09-05 Thread nlopess
 ID:   34052
 Updated by:   [EMAIL PROTECTED]
 Reported By:  ash at theleys dot net
 Status:   Assigned
 Bug Type: Date/time related
 Operating System: win32 only
 PHP Version:  5CVS-2005-09-03
 Assigned To:  derick
 New Comment:

I couldn't test this patch because I haven't installed MSVC yet, but I
think it should work.
http://mega.ist.utl.pt/~ncpl/php_34052_patch.txt


Previous Comments:


[2005-09-05 08:58:11] [EMAIL PROTECTED]

Derick, you got to be kidding? I know you have a windows machine to
test with at work, so TEST it..




[2005-09-05 08:06:25] [EMAIL PROTECTED]

Don't assign things to me which I can't test. This is a bug in the port
to Windows.



[2005-09-04 23:42:25] [EMAIL PROTECTED]

s/brakes/breaks/




[2005-09-04 23:42:05] [EMAIL PROTECTED]

Derick brakes, Derick fixes. :)




[2005-09-04 22:10:04] [EMAIL PROTECTED]

OK, now I see you are using PHP's sprintf implementation.
The problem is there. It only accepts  %lld if SIZEOF_LONG_LONG is
true. However, config.w32.h defines it as 0, so %lld is disabled on
windows.



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/34052

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


#34052 [Asn]: date('U') returns %ld not unix timestamp

2005-09-04 Thread sniper
 ID:   34052
 Updated by:   [EMAIL PROTECTED]
 Reported By:  ash at theleys dot net
 Status:   Assigned
 Bug Type: Date/time related
 Operating System: win32 only
 PHP Version:  5CVS-2005-09-03
 Assigned To:  derick
 New Comment:

s/brakes/breaks/



Previous Comments:


[2005-09-04 23:42:05] [EMAIL PROTECTED]

Derick brakes, Derick fixes. :)




[2005-09-04 22:10:04] [EMAIL PROTECTED]

OK, now I see you are using PHP's sprintf implementation.
The problem is there. It only accepts  %lld if SIZEOF_LONG_LONG is
true. However, config.w32.h defines it as 0, so %lld is disabled on
windows.



[2005-09-04 20:04:51] [EMAIL PROTECTED]

We (should) use PHP's internal printing routines, this has nothing to
do with the platform. It works fine here.



[2005-09-04 19:58:44] [EMAIL PROTECTED]

Bah, forget my last post.
As timelib_sll is defined as __int64, we should use printf(%I64d) on
windows.



[2005-09-04 19:01:29] ash at theleys dot net

Hi, have tried snapshot. Still same. date('u') on PHP 4.3 still works
(on another server) on IIS6 (so Windows Server 2003).
Thanks for looking in to this, Alan



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/34052

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