summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXinchen Hui <laruence@php.net>2011-10-19 15:08:50 +0000
committerXinchen Hui <laruence@php.net>2011-10-19 15:08:50 +0000
commit380a1ea142884b8b57584ce1e37c8d08d408c57e (patch)
treeef243c2607c891567e9f02804f81d52fa8aa65ab
parentefb68d93995a0969b448743900f48a8d7e1cc1d3 (diff)
downloadphp-git-380a1ea142884b8b57584ce1e37c8d08d408c57e.tar.gz
Fixed bug #60094 (C++ comment fails in c89)
-rw-r--r--NEWS8
-rw-r--r--ext/fileinfo/libmagic.patch11
-rw-r--r--ext/fileinfo/libmagic/cdf_time.c2
3 files changed, 16 insertions, 5 deletions
diff --git a/NEWS b/NEWS
index 9c8c2f5e71..c3e2340ea9 100644
--- a/NEWS
+++ b/NEWS
@@ -5,7 +5,6 @@ PHP NEWS
. Improve the warning message of incompatible arguments. (Laruence)
. Improve ternary operator performance when returning arrays. (Arnaud, Dmitry)
-
- Core:
. Fixed bug #55749 (TOCTOU issue in getenv() on Windows builds). (Pierre)
. Fixed bug #55707 (undefined reference to `__sync_fetch_and_add_4' on Linux
@@ -19,8 +18,8 @@ PHP NEWS
. Fixed bug #60038 (SIGALRM cause segfault in php_error_cb). (Laruence)
- Openssl
-- Revert r313616 (When we have a blocking SSL socket, respect the timeout
- option, scottmac), breaks ssl support as described in bugs #55283 and #55848
+ . Revert r313616 (When we have a blocking SSL socket, respect the timeout
+ option, scottmac), breaks ssl support as described in bugs #55283 and #55848
- PDO DBlib driver:
. Fixed bug #60033 (Incorrectly merged PDO dblib patches break
@@ -49,6 +48,9 @@ PHP NEWS
- Litespeed SAPI:
. Fixed bug #55769 (Make Fails with "Missing Separator" error). (Adam)
+- Fileinfo:
+ . Fixed bug #60094 (C++ comment fails in c89). (Laruence)
+
15 Sep 2011, PHP 5.4.0 Beta
- General improvements:
. Added callable typehint. (Hannes)
diff --git a/ext/fileinfo/libmagic.patch b/ext/fileinfo/libmagic.patch
index 2e791f37a3..3b99ce5dcf 100644
--- a/ext/fileinfo/libmagic.patch
+++ b/ext/fileinfo/libmagic.patch
@@ -853,7 +853,7 @@ diff -u libmagic.orig/cdf.h libmagic/cdf.h
void cdf_unpack_header(cdf_header_t *, char *);
diff -u libmagic.orig/cdf_time.c libmagic/cdf_time.c
--- libmagic.orig/cdf_time.c 2011-09-15 23:28:13.000000000 +0800
-+++ libmagic/cdf_time.c 2011-09-15 23:28:26.000000000 +0800
++++ libmagic/cdf_time.c 2011-10-19 22:51:40.000000000 +0800
@@ -96,7 +96,7 @@
}
@@ -874,6 +874,15 @@ diff -u libmagic.orig/cdf_time.c libmagic/cdf_time.c
t /= CDF_TIME_PREC;
tm.tm_sec = t % 60;
+@@ -117,7 +117,7 @@
+ tm.tm_hour = t % 24;
+ t /= 24;
+
+- // XXX: Approx
++ /* XXX: Approx */
+ tm.tm_year = CDF_BASE_YEAR + (t / 365);
+
+ rdays = cdf_getdays(tm.tm_year);
@@ -143,7 +143,7 @@
}
diff --git a/ext/fileinfo/libmagic/cdf_time.c b/ext/fileinfo/libmagic/cdf_time.c
index 36372966a7..750c5986a0 100644
--- a/ext/fileinfo/libmagic/cdf_time.c
+++ b/ext/fileinfo/libmagic/cdf_time.c
@@ -117,7 +117,7 @@ cdf_timestamp_to_timespec(struct timeval *ts, cdf_timestamp_t t)
tm.tm_hour = t % 24;
t /= 24;
- // XXX: Approx
+ /* XXX: Approx */
tm.tm_year = CDF_BASE_YEAR + (t / 365);
rdays = cdf_getdays(tm.tm_year);