diff --git a/.gitignore b/.gitignore index ef31f53..6ab1141 100644 --- a/.gitignore +++ b/.gitignore @@ -68,3 +68,5 @@ php-5.5.*.xz /php-5.6.19-strip.tar.xz /php-5.6.20RC1-strip.tar.xz /php-5.6.20-strip.tar.xz +/php-5.6.21RC1-strip.tar.xz +/php-5.6.21-strip.tar.xz diff --git a/php-5.4.7-odbctimer.patch b/php-5.4.7-odbctimer.patch deleted file mode 100644 index 88c4da4..0000000 --- a/php-5.4.7-odbctimer.patch +++ /dev/null @@ -1,58 +0,0 @@ -From 657494235eafe048e9fa6a19dcdb3c73a0cbe6ec Mon Sep 17 00:00:00 2001 -From: Remi Collet -Date: Thu, 27 Sep 2012 13:45:32 +0200 -Subject: [PATCH] Fixed bug #63171, script hangs if odbc call during timeout - ---- - ext/odbc/php_odbc.c | 21 ++++++++++++++------- - 1 file changed, 14 insertions(+), 7 deletions(-) - -diff --git a/ext/odbc/php_odbc.c b/ext/odbc/php_odbc.c -index 52d46b2..2169e65 100644 ---- a/ext/odbc/php_odbc.c -+++ b/ext/odbc/php_odbc.c -@@ -431,7 +431,8 @@ static void _free_odbc_result(zend_rsrc_list_entry *rsrc TSRMLS_DC) - efree(res->values); - res->values = NULL; - } -- if (res->stmt) { -+ /* If aborted via timer expiration, don't try to call any unixODBC function */ -+ if (res->stmt && !(PG(connection_status) & PHP_CONNECTION_TIMEOUT)) { - #if defined(HAVE_SOLID) || defined(HAVE_SOLID_30) || defined(HAVE_SOLID_35) - SQLTransact(res->conn_ptr->henv, res->conn_ptr->hdbc, - (SQLUSMALLINT) SQL_COMMIT); -@@ -484,9 +485,12 @@ static void _close_odbc_conn(zend_rsrc_list_entry *rsrc TSRMLS_DC) - } - } - -- safe_odbc_disconnect(conn->hdbc); -- SQLFreeConnect(conn->hdbc); -- SQLFreeEnv(conn->henv); -+ /* If aborted via timer expiration, don't try to call any unixODBC function */ -+ if (!(PG(connection_status) & PHP_CONNECTION_TIMEOUT)) { -+ safe_odbc_disconnect(conn->hdbc); -+ SQLFreeConnect(conn->hdbc); -+ SQLFreeEnv(conn->henv); -+ } - efree(conn); - ODBCG(num_links)--; - } -@@ -512,9 +516,12 @@ static void _close_odbc_pconn(zend_rsrc_list_entry *rsrc TSRMLS_DC) - } - } - -- safe_odbc_disconnect(conn->hdbc); -- SQLFreeConnect(conn->hdbc); -- SQLFreeEnv(conn->henv); -+ /* If aborted via timer expiration, don't try to call any unixODBC function */ -+ if (!(PG(connection_status) & PHP_CONNECTION_TIMEOUT)) { -+ safe_odbc_disconnect(conn->hdbc); -+ SQLFreeConnect(conn->hdbc); -+ SQLFreeEnv(conn->henv); -+ } - free(conn); - - ODBCG(num_links)--; --- -1.7.10 - diff --git a/php.spec b/php.spec index a9e95ea..b3a7555 100644 --- a/php.spec +++ b/php.spec @@ -69,7 +69,7 @@ Summary: PHP scripting language for creating dynamic web sites Name: php -Version: 5.6.20 +Version: 5.6.21 %if 0%{?rcver:1} Release: 0.%{rpmrel}.%{rcver}%{?dist} %else @@ -108,10 +108,6 @@ Patch6: php-5.6.3-embed.patch Patch7: php-5.3.0-recode.patch Patch8: php-5.6.17-libdb.patch -# Fixes for extension modules -# https://bugs.php.net/63171 no odbc call during timeout -Patch21: php-5.4.7-odbctimer.patch - # Functional changes Patch40: php-5.4.0-dlopen.patch Patch42: php-5.6.13-systzdata-v12.patch @@ -716,8 +712,6 @@ httpd -V | grep -q 'threaded:.*yes' && exit 1 %patch7 -p1 -b .recode %patch8 -p1 -b .libdb -%patch21 -p1 -b .odbctimer - %patch40 -p1 -b .dlopen %patch42 -p1 -b .systzdata %patch43 -p1 -b .headers @@ -1484,6 +1478,10 @@ rm -f README.{Zeus,QNX,CVS-RULES} %changelog +* Thu Apr 28 2016 Remi Collet 5.6.21-1 +- Update to 5.6.21 + http://www.php.net/releases/5_6_21.php + * Thu Mar 31 2016 Remi Collet 5.6.20-1 - Update to 5.6.20 http://www.php.net/releases/5_6_20.php diff --git a/sources b/sources index 48cc890..94c6d95 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -2674685c36600dbd90e84485b8502183 php-5.6.20-strip.tar.xz +ff44f25a2cd63a9a153a67fd96244c26 php-5.6.21-strip.tar.xz