From:             nathan dot kessler at hushmail dot me
Operating system: SuSE 7.3 i386 / gcc version 2.95
PHP version:      5.2.12
PHP Bug Type:     Date/time related
Bug description:  wrong date by php_date.c patch

Description:
------------
Right after updating 5.2.11 to 5.2.12 all phpscripts using date(function
showed wrong years:

   2008 is 8624294332376
   2009 is 8628589299673
   2010 is 8632884266970
   2011 is 8637179234267
   2012 is 8641474201564

I reviewed patches of 5.2.12 and identified patch #50266 / revision
291371. If I compile without revision 291371 all years are fine. I see no
definition of llabs in my systems /usr/include/stdlib.h like described in
#50266. Perhaps this function is defined only under solaris?


Reproduce code:
---------------
<?php echo date( 'Y' ); ?>

Expected result:
----------------
2010

Actual result:
--------------
8632884266970

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

Reply via email to