ID: 13900
Updated by: jeroen
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Date/time related
Operating System: Windows NT/XP
PHP Version: 4.0.6
New Comment:

On my w2k 4.0.4pl1, it returns 1, which is wrong now, since Daylight saving time ended 
a week ago in Europe. Same for debian-linux. Both are correctly configured.


What's your output with this script:

<?php
var_dump(date("I", mktime(0,0,0,5,1,2001)));
?>

On my system, it returns string(1) "1"

--Jeroen


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

[2001-11-03 01:09:15] [EMAIL PROTECTED]

I downloaded 4.06 again and installed it manually.  I have a feeling that my php.ini 
is somehow different than the standard because when I tried to use the optimized 
php.ini file I couldn't even load my script.  But when I used the dist version the 
script worked (except for the date(I) part).  I must have my PHP configured 
incorrectly.  But why would it do it on two different computers and two different 
versions of PHP???

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

[2001-11-02 21:56:52] [EMAIL PROTECTED]

Tried it from the command line and got all zeros.

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

[2001-11-01 15:44:10] [EMAIL PROTECTED]

You said you were running it as a CGI therefore my test should be equivalent without 
me having to use Apache.

I don't see how the CGI being called through Apache could do this.  BUT jic, please 
try executing your PHP CGI from the command line against those test scripts and see if 
you get the same results.

-Chris

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

[2001-11-01 15:32:35] [EMAIL PROTECTED]

Well, I am getting zeros...  I get in on PHP 4.06 on Windows XP pro and I get zeros on 
PHP 4.05 on Windows NT 4.0.  both are running on Apache.  Maybe that is the issue.  
Are you running PHP on Apache?

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

[2001-11-01 14:13:27] [EMAIL PROTECTED]

See http://bugs.php.net/bug.php?id=13888 for why the months are doubled.

Here is my result from first script

C:\php>php t.php
X-Powered-By: PHP/4.0.6
Content-type: text/html

111111

All 1's not 0's.

Second script 1111110

I have NO clue what it is doing on your box, mine is Windows XP RC2 I don't have 
access to any other windows version right now only Linux.  Can someone else verify 
this on NT4?  I am using the exact same PHP on XP as you.

-Chris

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

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/?id=13900


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


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to