Bug #72698 [Opn]: Function started giving "expected to be a reference, value given"

From: Date: Thu, 28 Jul 2016 09:49:58 +0000
Subject: Bug #72698 [Opn]: Function started giving "expected to be a reference, value given"
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-202661@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=72698&edit=1 ID: 72698 Updated by: cmb@php.net Reported by: daniel dot k at siteground dot com Summary: Function started giving "expected to be a reference, value given" Status: Open Type: Bug Package: Variables related Operating System: CentOS PHP Version: 7.0.9 -Assigned To: +Assigned To: nikic Block user comment: N Private report: N New Comment: It seems to me that's caused by <https://github.com/php/php-src/commit/fafe01b>. Shouldn't we add info about that in NEWS and/or UPGRADING, Nikita? Previous Comments: ------------------------------------------------------------------------ [2016-07-28 08:06:37] daniel dot k at siteground dot com I forgot to mentioned that we tested the latest commits from Github and the issue is still present with 7.0.9. ------------------------------------------------------------------------ [2016-07-28 07:58:20] daniel dot k at siteground dot com Description: ------------ After an upgrade from PHP 7.0.8 to 7.0.9 several sites hosted on our infrastructure stopped working. One of the sites is a WordPress site which uses a plugin called W3 Total Cache. The plugin works just fine with PHP 7.0.8 and when PHP 7.0.9 is used the site just gives a blank page. The entries in the logs are: Warning: Parameter 1 to W3_Plugin_Minify::ob_callback() expected to be a reference, value given in /wp-content/plugins/w3-total-cache/inc/functions/plugin.php on line 23 Warning: Parameter 1 to W3_Plugin_Cdn::ob_callback() expected to be a reference, value given in /wp-content/plugins/w3-total-cache/inc/functions/plugin.php on line 23 Warning: Parameter 1 to W3_PgCache::ob_callback() expected to be a reference, value given in /wp-content/plugins/w3-total-cache/inc/functions/plugin.php on line 23 Warning: Parameter 1 to W3_Plugin_Minify::ob_callback() expected to be a reference, value given in /wp-content/plugins/w3-total-cache/inc/functions/plugin.php on line 23 Warning: Parameter 1 to W3_Plugin_Cdn::ob_callback() expected to be a reference, value given in /wp-content/plugins/w3-total-cache/inc/functions/plugin.php on line 23 Warning: Parameter 1 to W3_PgCache::ob_callback() expected to be a reference, value given in /wp-content/plugins/w3-total-cache/inc/functions/plugin.php on line 23 Warning: Parameter 1 to W3_Plugin_Minify::ob_callback() expected to be a reference, value given in /wp-content/plugins/w3-total-cache/inc/functions/plugin.php on line 23 Warning: Parameter 1 to W3_Plugin_Cdn::ob_callback() expected to be a reference, value given in /wp-content/plugins/w3-total-cache/inc/functions/plugin.php on line 23 Warning: Parameter 1 to W3_PgCache::ob_callback() expected to be a reference, value given in /wp-content/plugins/w3-total-cache/inc/functions/plugin.php on line 23 The issue and the solution are also explained in this blog post: https://www.itnota.com/fixing-php7-compatibility-issue-w3-total-cache/ Other applications such as vBulletin and Joomla! are also experiencing similar issues. The question here is why 7.0.9 causes the sites to go down and the same code works with 7.0.8. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=72698&edit=1

« previous php.bugs (#202661) next »