Activity log for bug #1572841

Date Who What changed Old value New value Message
2016-04-21 05:50:12 ironstorm bug added bug
2016-04-21 05:50:12 ironstorm attachment added Ignore removed flag always_populate_raw_post_data for versions of PHP > 7.0 https://bugs.launchpad.net/bugs/1572841/+attachment/4641162/+files/CFrontendSetup.php.patch
2016-04-22 04:31:08 Ubuntu Foundations Team Bug Bot tags patch
2016-04-22 04:31:16 Ubuntu Foundations Team Bug Bot bug added subscriber Ubuntu Review Team
2016-04-22 17:49:01 Launchpad Janitor zabbix (Ubuntu): status New Confirmed
2016-04-22 20:09:18 westicles bug added subscriber westicles
2016-06-27 22:15:45 Nish Aravamudan nominated for series Ubuntu Xenial
2016-06-27 22:15:49 Nish Aravamudan zabbix (Ubuntu): status Confirmed Fix Released
2016-06-28 00:04:13 Nish Aravamudan zabbix (Ubuntu): assignee Nish Aravamudan (nacc)
2016-07-03 10:40:57 Mathew Hodson zabbix (Ubuntu): importance Undecided High
2016-07-16 23:28:15 Mathew Hodson tags patch patch php7
2016-07-19 08:11:10 Robie Basak bug task added zabbix (Ubuntu Xenial)
2016-07-20 06:29:48 Mathew Hodson zabbix (Ubuntu Xenial): importance Undecided High
2016-10-12 09:37:24 Launchpad Janitor zabbix (Ubuntu Xenial): status New Confirmed
2016-10-12 21:18:31 Nish Aravamudan zabbix (Ubuntu): assignee Nish Aravamudan (nacc)
2016-10-12 21:18:33 Nish Aravamudan zabbix (Ubuntu Xenial): assignee Nish Aravamudan (nacc)
2016-10-12 21:18:36 Nish Aravamudan zabbix (Ubuntu Xenial): status Confirmed In Progress
2016-10-12 21:21:13 Nish Aravamudan description always_populate_raw_post_data was deprecated in PHP 5.3 at which time zabbix frontend setup began to insist that it be set to always_populate_raw_post_data = -1 in the PHP.ini In PHP 7.0, which Ubuntu 16.04 LTS ships with, always_populate_raw_post_data has been removed completely. Due to this PHP frontend setup gets stuck on always_populate_raw_post_data not being disabled. The solution is to apply the following patch to the PHP frontend code to ignore PHP 7.0: --- /usr/share/zabbix/include/classes/setup/CFrontendSetup.php 2016-04-21 01:06:25.603388814 -0400 +++ /usr/share/zabbix/include/classes/setup/CFrontendSetup.php 2016-04-21 01:06:59.980485531 -0400 @@ -72,7 +72,7 @@ } // check for deprecated PHP 5.6.0 option 'always_populate_raw_post_data' - if (version_compare(PHP_VERSION, '5.6', '>=')) { + if (version_compare(PHP_VERSION, '5.6', '>=') && version_compare(PHP_VERSION, '7.0', '<') ) { $result[] = $this->checkPhpAlwaysPopulateRawPostData(); } $result[] = $this->checkPhpSockets(); [Impact] * The zabbix web frontend has one incompatibility and some missing dependencies with PHP7.0. * End-users are unable to use the web-frontend due to these issues. [Test Case] * Install zabbix-frontend-php. Without the fix, the frontend will not load properly. With the fix, it will. [Regression Potential] * The code change is identical to the upstream change; given that the frontend won't load with the code as-is, I believe there is no regression potential there. * The dependency changes allow for the web frontend to work properly without extra packages needing to be manually installed by end-users. Again, no chance for regression. --- always_populate_raw_post_data was deprecated in PHP 5.3 at which time zabbix frontend setup began to insist that it be set to always_populate_raw_post_data = -1 in the PHP.ini In PHP 7.0, which Ubuntu 16.04 LTS ships with, always_populate_raw_post_data has been removed completely. Due to this PHP frontend setup gets stuck on always_populate_raw_post_data not being disabled. The solution is to apply the following patch to the PHP frontend code to ignore PHP 7.0: --- /usr/share/zabbix/include/classes/setup/CFrontendSetup.php 2016-04-21 01:06:25.603388814 -0400 +++ /usr/share/zabbix/include/classes/setup/CFrontendSetup.php 2016-04-21 01:06:59.980485531 -0400 @@ -72,7 +72,7 @@                 }                 // check for deprecated PHP 5.6.0 option 'always_populate_raw_post_data' - if (version_compare(PHP_VERSION, '5.6', '>=')) { + if (version_compare(PHP_VERSION, '5.6', '>=') && version_compare(PHP_VERSION, '7.0', '<') ) {                         $result[] = $this->checkPhpAlwaysPopulateRawPostData();                 }                 $result[] = $this->checkPhpSockets();
2016-10-13 14:08:53 Martin Pitt zabbix (Ubuntu Xenial): status In Progress Fix Committed
2016-10-13 14:08:55 Martin Pitt bug added subscriber Ubuntu Stable Release Updates Team
2016-10-13 14:08:57 Martin Pitt bug added subscriber SRU Verification
2016-10-13 14:09:02 Martin Pitt tags patch php7 patch php7 verification-needed
2016-10-21 20:23:47 Nish Aravamudan tags patch php7 verification-needed patch php7 verification-done
2016-10-26 12:41:56 Chris J Arges removed subscriber Ubuntu Stable Release Updates Team
2016-10-26 12:42:10 Launchpad Janitor zabbix (Ubuntu Xenial): status Fix Committed Fix Released