summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--php-5.4.19-date.patch47
-rw-r--r--php54.spec13
2 files changed, 7 insertions, 53 deletions
diff --git a/php-5.4.19-date.patch b/php-5.4.19-date.patch
deleted file mode 100644
index 6b97cd3..0000000
--- a/php-5.4.19-date.patch
+++ /dev/null
@@ -1,47 +0,0 @@
-diff --git a/ext/date/php_date.c b/ext/date/php_date.c
-index 1c97781..70960b1 100644
---- a/ext/date/php_date.c
-+++ b/ext/date/php_date.c
-@@ -2113,13 +2113,13 @@ static HashTable *date_object_get_properties(zval *object TSRMLS_DC)
- /* first we add the date and time in ISO format */
- MAKE_STD_ZVAL(zv);
- ZVAL_STRING(zv, date_format("Y-m-d H:i:s", 12, dateobj->time, 1), 0);
-- zend_hash_update(props, "date", 5, &zv, sizeof(zval), NULL);
-+ zend_hash_update(props, "date", 5, &zv, sizeof(zv), NULL);
-
- /* then we add the timezone name (or similar) */
- if (dateobj->time->is_localtime) {
- MAKE_STD_ZVAL(zv);
- ZVAL_LONG(zv, dateobj->time->zone_type);
-- zend_hash_update(props, "timezone_type", 14, &zv, sizeof(zval), NULL);
-+ zend_hash_update(props, "timezone_type", 14, &zv, sizeof(zv), NULL);
-
- MAKE_STD_ZVAL(zv);
- switch (dateobj->time->zone_type) {
-@@ -2142,7 +2142,7 @@ static HashTable *date_object_get_properties(zval *object TSRMLS_DC)
- ZVAL_STRING(zv, dateobj->time->tz_abbr, 1);
- break;
- }
-- zend_hash_update(props, "timezone", 9, &zv, sizeof(zval), NULL);
-+ zend_hash_update(props, "timezone", 9, &zv, sizeof(zv), NULL);
- }
-
- return props;
-@@ -2265,7 +2265,7 @@ static HashTable *date_object_get_properties_interval(zval *object TSRMLS_DC)
- #define PHP_DATE_INTERVAL_ADD_PROPERTY(n,f) \
- MAKE_STD_ZVAL(zv); \
- ZVAL_LONG(zv, (long)intervalobj->diff->f); \
-- zend_hash_update(props, n, strlen(n) + 1, &zv, sizeof(zval), NULL);
-+ zend_hash_update(props, n, strlen(n) + 1, &zv, sizeof(zv), NULL);
-
- PHP_DATE_INTERVAL_ADD_PROPERTY("y", y);
- PHP_DATE_INTERVAL_ADD_PROPERTY("m", m);
-@@ -2282,7 +2282,7 @@ static HashTable *date_object_get_properties_interval(zval *object TSRMLS_DC)
- } else {
- MAKE_STD_ZVAL(zv);
- ZVAL_FALSE(zv);
-- zend_hash_update(props, "days", 5, &zv, sizeof(zval), NULL);
-+ zend_hash_update(props, "days", 5, &zv, sizeof(zv), NULL);
- }
- PHP_DATE_INTERVAL_ADD_PROPERTY("special_type", special.type);
- PHP_DATE_INTERVAL_ADD_PROPERTY("special_amount", special.amount);
diff --git a/php54.spec b/php54.spec
index 04b0396..af23d17 100644
--- a/php54.spec
+++ b/php54.spec
@@ -75,11 +75,11 @@
Summary: PHP scripting language for creating dynamic web sites
Name: php
-Version: 5.4.19
+Version: 5.4.20
%if 0%{?snapdate:1}%{?rcver:1}
Release: 0.5.%{?snapdate}%{?rcver}%{?dist}
%else
-Release: 2%{?dist}
+Release: 1%{?dist}
%endif
# All files licensed under PHP version 3.01, except
# Zend is licensed under Zend
@@ -109,7 +109,6 @@ Patch5: php-5.2.0-includedir.patch
Patch6: php-5.2.4-embed.patch
Patch7: php-5.3.0-recode.patch
Patch8: php-5.4.7-libdb.patch
-Patch9: php-5.4.19-date.patch
# Fixes for extension modules
# https://bugs.php.net/63171 no odbc call during timeout
@@ -766,7 +765,6 @@ httpd -V | grep -q 'threaded:.*yes' && exit 1
%patch6 -p1 -b .embed
%patch7 -p1 -b .recode
%patch8 -p1 -b .libdb
-%patch9 -p1 -b .date
rm -f ext/json/utf8_to_utf16.*
@@ -971,7 +969,7 @@ ln -sf ../configure
--enable-calendar \
--with-libxml-dir=%{_prefix} \
--enable-xml \
-%if 0%{?fedora} >= 17 || 0%{?rhel} >= 5
+%if 0%{?fedora} >= 18 || 0%{?rhel} >= 5
--with-system-tzdata \
%endif
--with-mhash \
@@ -1424,7 +1422,7 @@ echo -e "\nWARNING : These %{name}-* RPM are not official Fedora / Red Hat build
echo -e "overrides the official ones. Don't file bugs on Fedora Project nor Red Hat.\n"
echo -e "Use dedicated forums http://forums.famillecollet.com/\n"
-%if %{?fedora}%{!?fedora:99} <= 16
+%if %{?fedora}%{!?fedora:99} < 18
echo -e "WARNING : Fedora %{fedora} is now EOL :"
echo -e "You should consider upgrading to a supported release.\n"
%endif
@@ -1634,6 +1632,9 @@ fi
%changelog
+* Wed Sep 18 2013 Remi Collet <rcollet@redhat.com> - 5.4.20-1
+- update to 5.4.20
+
* Fri Aug 30 2013 Remi Collet <rcollet@redhat.com> - 5.4.19-2
- test build for https://bugs.php.net/65564