cvs: php-src(PHP_5_3) / NEWS /ext/phar zip.c
| From: | Greg Beaver | Date: | Sun, 01 Mar 2009 06:58:01 +0000 |
| Subject: | cvs: php-src(PHP_5_3) / NEWS /ext/phar zip.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-56394@lists.php.net to get a copy of this message | ||
cellog Sun Mar 1 06:58:01 2009 UTC
Modified files: (Branch: PHP_5_3)
/php-src NEWS
/php-src/ext/phar zip.c
Log:
update NEWS with phar enabling, fix swapping of time/date in timestamp saving for zip, which can
cause crash on windows
http://cvs.php.net/viewvc.cgi/php-src/NEWS?r1=1.2027.2.547.2.965.2.503&r2=1.2027.2.547.2.965.2.504&diff_format=u
Index: php-src/NEWS
diff -u php-src/NEWS:1.2027.2.547.2.965.2.503 php-src/NEWS:1.2027.2.547.2.965.2.504
--- php-src/NEWS:1.2027.2.547.2.965.2.503 Wed Feb 18 22:35:32 2009
+++ php-src/NEWS Sun Mar 1 06:58:01 2009
@@ -3,6 +3,8 @@
?? ??? 2009, PHP 5.3.0 Beta 2
- Upgraded bundled sqlite to version 3.6.11. (Scott)
+- Re-enabled phar for big-endian systems after fixing problems. (Greg)
+
- Fixed Bug #47443 (metaphone('scratch') returns wrong result). (Felipe)
- Fixed bug #47438 (mysql_fetch_field ignores zero offset). (Johannes)
- Fixed bug #47398 (PDO_Firebird doesn't implements quoter correctly). (Felipe)
http://cvs.php.net/viewvc.cgi/php-src/ext/phar/zip.c?r1=1.47.2.30&r2=1.47.2.31&diff_format=u
Index: php-src/ext/phar/zip.c
diff -u php-src/ext/phar/zip.c:1.47.2.30 php-src/ext/phar/zip.c:1.47.2.31
--- php-src/ext/phar/zip.c:1.47.2.30 Sat Feb 21 02:32:16 2009
+++ php-src/ext/phar/zip.c Sun Mar 1 06:58:01 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);
}