Bug #76937 [Fbk->NoF]: Drupal tests fail with opcache on
| From: | php-bugs at lists dot php dot net | Date: | Sun, 18 Jul 2021 04:22:24 +0000 |
| Subject: | Bug #76937 [Fbk->NoF]: Drupal tests fail with opcache on | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-235132@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=76937&edit=1
ID: 76937
Updated by: php-bugs@lists.php.net
Reported by: alex dot a dot pott at gmail dot com
Summary: Drupal tests fail with opcache on
-Status: Feedback
+Status: No Feedback
Type: Bug
Package: opcache
Operating System: OSX
PHP Version: 7.3.0RC1
Assigned To: cmb
Private report: N
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2021-07-08 14:01:44] cmb@php.net
Is the Drupal test still failing with any of the actively
supported PHP versions[1]?
[1] <https://www.php.net/supported-versions.php>
------------------------------------------------------------------------
[2018-12-20 15:13:02] cmb@php.net
Related To: Bug #77310
------------------------------------------------------------------------
[2018-12-17 10:36:07] matias at avusto dot fi
Yes, I just confirmed that the issue gets fixed by adding this option to php.ini:
opcache.optimization_level=0x7FFFBBFF
Thank you @nikic!
------------------------------------------------------------------------
[2018-12-17 10:05:50] nikic@php.net
@matias: At least in your case, you're probably hitting bug #77275, which will be fixed in the
next release.
------------------------------------------------------------------------
[2018-12-17 10:02:06] matias at avusto dot fi
Also Grav (www.getgrav.org) unit tests fail if opcache is turned on, but run just fine if opcache is
turned off. Similar issues can be seen in the sites as well (which also work without opcache just
fine).
All the issues seem to be related to Pimple, or offsetGet($id) call which seems to have more or less
random value $id passed to it. Sometimes $id = '', sometimes the value of the $id comes
from a previous offsetGet() call and once it even had value from the following method call
$this->initializeController().. Meaning that the $id = 'initializeController', not $id
= 'task' as written in the code. For some reason in the last case making a random change
(adding a whitespace) in the affected file fixes the issue until opcache gets cleared.
I'm not sure if the issues are related, is $units an ArrayAccess object?
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=76937
--
Edit this bug report at https://bugs.php.net/bug.php?id=76937&edit=1