Bug #62610 [Com]: date('l, F m, Y') function outputs wrong date

2012-07-20 Thread jason at jasonbutz dot info
Edit report at https://bugs.php.net/bug.php?id=62610edit=1

 ID: 62610
 Comment by: jason at jasonbutz dot info
 Reported by:jason at jasonbutz dot info
 Summary:date('l, F m, Y') function outputs wrong date
 Status: Feedback
 Type:   Bug
 Package:Date/time related
 Operating System:   Linux
 PHP Version:5.3.2-1ubuntu4.17 with Suhosin-Patch (cli) (built:
 Jun 19 2012 03:21:35)
 Block user comment: N
 Private report: N

 New Comment:

aharvey:
Both your examples show the bug. The second and third dates both shows July 7, 
when it is not July 7.


Previous Comments:

[2012-07-20 01:25:42] ahar...@php.net

I can't reproduce this at all on current versions of PHP 5.3 or 5.4. Is that 
really the output you're getting with that exact script?

Also, please see if you can replicate this without Suhosin on the current 
version of PHP 5.3; ie 5.3.15.

Pastebins of working code:

5.3: http://codepad.viper-7.com/DIzp07
5.4: http://codepad.viper-7.com/uXv3EY


[2012-07-19 13:32:30] jason at jasonbutz dot info

Correcting PHP version


[2012-07-19 13:31:04] jason at jasonbutz dot info

Description:

When I use the date function with the included arguments the date is always 
output 
as Thursday, July 07, 2012 when using the default timestamp.

Test script:
---
?php
echo Today is .date('m/d/Y').\n;
echo date('l, F m, Y').\n;
echo date('l, F m, Y', time()).\n;
echo date('l, F m, Y', strtotime(01/01/2012));
?

Expected result:

date('l, F m, Y') to show the current date, not Thursday, July 07, 2012







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


Bug #62610 [Fbk-Csd]: date('l, F m, Y') function outputs wrong date

2012-07-20 Thread jason at jasonbutz dot info
Edit report at https://bugs.php.net/bug.php?id=62610edit=1

 ID: 62610
 User updated by:jason at jasonbutz dot info
 Reported by:jason at jasonbutz dot info
 Summary:date('l, F m, Y') function outputs wrong date
-Status: Feedback
+Status: Closed
 Type:   Bug
 Package:Date/time related
 Operating System:   Linux
 PHP Version:5.3.2-1ubuntu4.17 with Suhosin-Patch (cli) (built:
 Jun 19 2012 03:21:35)
 Block user comment: N
 Private report: N

 New Comment:

Nevermind, I see what I did. Sorry.


Previous Comments:

[2012-07-20 14:29:52] jason at jasonbutz dot info

aharvey:
Both your examples show the bug. The second and third dates both shows July 7, 
when it is not July 7.


[2012-07-20 01:25:42] ahar...@php.net

I can't reproduce this at all on current versions of PHP 5.3 or 5.4. Is that 
really the output you're getting with that exact script?

Also, please see if you can replicate this without Suhosin on the current 
version of PHP 5.3; ie 5.3.15.

Pastebins of working code:

5.3: http://codepad.viper-7.com/DIzp07
5.4: http://codepad.viper-7.com/uXv3EY


[2012-07-19 13:32:30] jason at jasonbutz dot info

Correcting PHP version


[2012-07-19 13:31:04] jason at jasonbutz dot info

Description:

When I use the date function with the included arguments the date is always 
output 
as Thursday, July 07, 2012 when using the default timestamp.

Test script:
---
?php
echo Today is .date('m/d/Y').\n;
echo date('l, F m, Y').\n;
echo date('l, F m, Y', time()).\n;
echo date('l, F m, Y', strtotime(01/01/2012));
?

Expected result:

date('l, F m, Y') to show the current date, not Thursday, July 07, 2012







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


[PHP-BUG] Bug #62610 [NEW]: date('l, F m, Y') function outputs wrong date

2012-07-19 Thread jason at jasonbutz dot info
From: jason at jasonbutz dot info
Operating system: Linux
PHP version:  5.3Git-2012-07-19 (Git)
Package:  *General Issues
Bug Type: Bug
Bug description:date('l, F m, Y') function outputs wrong date

Description:

When I use the date function with the included arguments the date is always
output 
as Thursday, July 07, 2012 when using the default timestamp.

Test script:
---
?php
echo Today is .date('m/d/Y').\n;
echo date('l, F m, Y').\n;
echo date('l, F m, Y', time()).\n;
echo date('l, F m, Y', strtotime(01/01/2012));
?

Expected result:

date('l, F m, Y') to show the current date, not Thursday, July 07, 2012


-- 
Edit bug report at https://bugs.php.net/bug.php?id=62610edit=1
-- 
Try a snapshot (PHP 5.4):
https://bugs.php.net/fix.php?id=62610r=trysnapshot54
Try a snapshot (PHP 5.3):
https://bugs.php.net/fix.php?id=62610r=trysnapshot53
Try a snapshot (trunk):  
https://bugs.php.net/fix.php?id=62610r=trysnapshottrunk
Fixed in SVN:
https://bugs.php.net/fix.php?id=62610r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=62610r=needdocs
Fixed in release:
https://bugs.php.net/fix.php?id=62610r=alreadyfixed
Need backtrace:  
https://bugs.php.net/fix.php?id=62610r=needtrace
Need Reproduce Script:   
https://bugs.php.net/fix.php?id=62610r=needscript
Try newer version:   
https://bugs.php.net/fix.php?id=62610r=oldversion
Not developer issue: 
https://bugs.php.net/fix.php?id=62610r=support
Expected behavior:   
https://bugs.php.net/fix.php?id=62610r=notwrong
Not enough info: 
https://bugs.php.net/fix.php?id=62610r=notenoughinfo
Submitted twice: 
https://bugs.php.net/fix.php?id=62610r=submittedtwice
register_globals:
https://bugs.php.net/fix.php?id=62610r=globals
PHP 4 support discontinued:  
https://bugs.php.net/fix.php?id=62610r=php4
Daylight Savings:https://bugs.php.net/fix.php?id=62610r=dst
IIS Stability:   
https://bugs.php.net/fix.php?id=62610r=isapi
Install GNU Sed: 
https://bugs.php.net/fix.php?id=62610r=gnused
Floating point limitations:  
https://bugs.php.net/fix.php?id=62610r=float
No Zend Extensions:  
https://bugs.php.net/fix.php?id=62610r=nozend
MySQL Configuration Error:   
https://bugs.php.net/fix.php?id=62610r=mysqlcfg



Bug #62610 [Opn]: date('l, F m, Y') function outputs wrong date

2012-07-19 Thread jason at jasonbutz dot info
Edit report at https://bugs.php.net/bug.php?id=62610edit=1

 ID: 62610
 User updated by:jason at jasonbutz dot info
 Reported by:jason at jasonbutz dot info
 Summary:date('l, F m, Y') function outputs wrong date
 Status: Open
 Type:   Bug
 Package:*General Issues
 Operating System:   Linux
-PHP Version:5.3Git-2012-07-19 (Git)
+PHP Version:5.3.2-1ubuntu4.17 with Suhosin-Patch (cli) (built:
 Jun 19 2012 03:21:35)
 Block user comment: N
 Private report: N

 New Comment:

Correcting PHP version


Previous Comments:

[2012-07-19 13:31:04] jason at jasonbutz dot info

Description:

When I use the date function with the included arguments the date is always 
output 
as Thursday, July 07, 2012 when using the default timestamp.

Test script:
---
?php
echo Today is .date('m/d/Y').\n;
echo date('l, F m, Y').\n;
echo date('l, F m, Y', time()).\n;
echo date('l, F m, Y', strtotime(01/01/2012));
?

Expected result:

date('l, F m, Y') to show the current date, not Thursday, July 07, 2012







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