Bug #73871 [Com]: Strange opcache behavior

From: Date: Fri, 06 Jan 2017 22:06:33 +0000
Subject: Bug #73871 [Com]: Strange opcache behavior
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-206337@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=73871&edit=1 ID: 73871 Comment by: pagescene at gmail dot com Reported by: xstreid at gmail dot com Summary: Strange opcache behavior Status: Open Type: Bug Package: opcache Operating System: Ubuntu 16.04\Debian 8 (64bit) PHP Version: 7.1.0 Block user comment: N Private report: N New Comment: There is indeed some issue with opcache under PHP 7.1. Drupal's 7 Webform module (stable release) works perfectly on all previous PHP releases (5.4, 5.6 7.0), with opcache enabled. However, this module (and thus the whole CMS) fails under PHP 7.1 with opcache enabled. There is no error message, site simply return no response and Nginx returns 502. Previous Comments: ------------------------------------------------------------------------ [2017-01-05 11:42:42] xstreid at gmail dot com Description: ------------ Hello everyone! This bug reproduced only on PHP 7.1.0 with enabled Opcache (PHP 5.6 and PHP 7.0 not affected). See test script. (Run twice or more for reproduce. First run begin not from cache and the script will work correctly). Test script: --------------- <?php class Test { public function didIt() { $v = 2; $v = array($v); var_dump($v); } } (new Test())->didIt(); // RETURN array(1) { [0]=> array(1) { [0]=> *RECURSION* } } $testFunction = function () { $v = 2; $v = array($v); var_dump($v); }; $testFunction(); // RETURN array(1) { [0]=> array(1) { [0]=> *RECURSION* } } $v = 2; $v = array($v); var_dump($v); // RETURN array(1) { [0]=> int(2) } ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=73871&edit=1

« previous php.bugs (#206337) next »