cellog Sun Mar 1 06:58:23 2009 UTC Modified files: /php-src/ext/phar zip.c Log: MFB: fix swapping of time/date in timestamp saving for zip, which can cause crash on windows http://cvs.php.net/viewvc.cgi/php-src/ext/phar/zip.c?r1=1.65&r2=1.66&diff_format=u Index: php-src/ext/phar/zip.c diff -u php-src/ext/phar/zip.c:1.65 php-src/ext/phar/zip.c:1.66 --- php-src/ext/phar/zip.c:1.65 Sat Feb 21 02:34:01 2009 +++ php-src/ext/phar/zip.c Sun Mar 1 06:58:23 2009 @@ -147,8 +147,8 @@ struct tm *tm, tmbuf; tm = php_localtime_r(&time, &tmbuf); - ctime = ((tm->tm_year+1900-1980)<<9) + ((tm->tm_mon+1)<<5) + tm->tm_mday; - cdate = ((tm->tm_hour)<<11) + ((tm->tm_min)<<5) + ((tm->tm_sec)>>1); + cdate = ((tm->tm_year+1900-1980)<<9) + ((tm->tm_mon+1)<<5) + tm->tm_mday; + ctime = ((tm->tm_hour)<<11) + ((tm->tm_min)<<5) + ((tm->tm_sec)>>1); PHAR_SET_16(dtime, ctime); PHAR_SET_16(ddate, cdate); }
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php