From 0d579eea43f821d5687091f23f08f062ce6edf89 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 19 Sep 2013 13:18:41 +0200 Subject: PHP 5.5.4 --- php-5.5.4-date.patch | 63 ---------------------------------------------------- php-fpm-www.conf | 3 ++- php.conf | 1 + php.ini | 19 +++++++++------- php55.spec | 16 ++++++++----- 5 files changed, 25 insertions(+), 77 deletions(-) delete mode 100644 php-5.5.4-date.patch diff --git a/php-5.5.4-date.patch b/php-5.5.4-date.patch deleted file mode 100644 index 5f9bffe..0000000 --- a/php-5.5.4-date.patch +++ /dev/null @@ -1,63 +0,0 @@ ---- php5.5-201308300430/ext/date/php_date.c.old 2013-08-30 10:04:46.963985553 +0200 -+++ php5.5-201308300430/ext/date/php_date.c 2013-08-30 10:05:54.664183035 +0200 -@@ -2198,13 +2198,13 @@ - /* 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) { -@@ -2227,7 +2227,7 @@ - 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; -@@ -2305,7 +2305,7 @@ - - MAKE_STD_ZVAL(zv); - ZVAL_LONG(zv, tzobj->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 (tzobj->type) { -@@ -2327,7 +2327,7 @@ - ZVAL_STRING(zv, tzobj->tzi.z.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; - } -@@ -2394,7 +2394,7 @@ - #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); -@@ -2411,7 +2411,7 @@ - } 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/php-fpm-www.conf b/php-fpm-www.conf index 9cdbb4f..502feff 100644 --- a/php-fpm-www.conf +++ b/php-fpm-www.conf @@ -222,5 +222,6 @@ php_admin_flag[log_errors] = on ; Set session path to a directory owned by process user php_value[session.save_handler] = files -php_value[session.save_path] = /var/lib/php/session +php_value[session.save_path] = /var/lib/php/session +php_value[soap.wsdl_cache_dir] = /var/lib/php/wsdlcache diff --git a/php.conf b/php.conf index 64eb5fd..7000043 100644 --- a/php.conf +++ b/php.conf @@ -30,3 +30,4 @@ DirectoryIndex index.php # php_value session.save_handler "files" php_value session.save_path "/var/lib/php/session" +php_value soap.wsdl_cache_dir "/var/lib/php/wsdlcache" diff --git a/php.ini b/php.ini index 7210341..539f961 100644 --- a/php.ini +++ b/php.ini @@ -197,13 +197,12 @@ engine = On ; This directive determines whether or not PHP will recognize code between -; tags as PHP source which should be processed as such. It's been -; recommended for several years that you not use the short tag "short cut" and -; instead to use the full tag combination. With the wide spread use -; of XML and use of these tags by other languages, the server can become easily -; confused and end up parsing the wrong code in the wrong context. But because -; this short cut has been a feature for such a long time, it's currently still -; supported for backwards compatibility, but we recommend you don't use them. +; tags as PHP source which should be processed as such. It is +; generally recommended that should be used and that this feature +; should be disabled, as enabling it may result in issues when generating XML +; documents, however this remains supported for backward compatibility reasons. +; Note that this directive does not control the = 16 || 0%{?rhel} >= 5 +%if 0%{?fedora} >= 18 || 0%{?rhel} >= 5 --with-system-tzdata \ %endif --with-mhash \ @@ -1427,6 +1425,7 @@ install -m 755 -d $RPM_BUILD_ROOT%{_sysconfdir}/php-zts.d %endif install -m 755 -d $RPM_BUILD_ROOT%{_localstatedir}/lib/php install -m 700 -d $RPM_BUILD_ROOT%{_localstatedir}/lib/php/session +install -m 700 -d $RPM_BUILD_ROOT%{_localstatedir}/lib/php/wsdlcache # PHP-FPM stuff # Log @@ -1600,7 +1599,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} <= 17 +%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 @@ -1689,6 +1688,7 @@ fi %{_httpd_moddir}/libphp5-zts.so %endif %attr(0770,root,apache) %dir %{_localstatedir}/lib/php/session +%attr(0770,root,apache) %dir %{_localstatedir}/lib/php/wsdlcache %config(noreplace) %{_httpd_confdir}/php.conf %if "%{_httpd_modconfdir}" != "%{_httpd_confdir}" %config(noreplace) %{_httpd_modconfdir}/10-php.conf @@ -1822,6 +1822,12 @@ fi %changelog +* Thu Sep 19 2013 Remi Collet - 5.5.4-1 +- update to 5.5.4 +- improve security, use specific soap.wsdl_cache_dir + use /var/lib/php/wsdlcache for mod_php and php-fpm +- sync short_tag comments in php.ini with upstream + * Fri Aug 30 2013 Remi Collet - 5.5.4.0.1-201308300430 - test build with -fsanitize=address - test build for https://bugs.php.net/65564 -- cgit