Bug #76937 [Com]: Drupal tests fail with opcache on
| From: | alex dot a dot pott at gmail dot com | Date: | Wed, 26 Sep 2018 14:44:48 +0000 |
| Subject: | Bug #76937 [Com]: Drupal tests fail with opcache on | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-217250@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
Comment by: alex dot a dot pott at gmail dot com
Reported by: alex dot a dot pott at gmail dot com
Summary: Drupal tests fail with opcache on
Status: Open
Type: Bug
Package: opcache
Operating System: OSX
PHP Version: 7.3.0RC1
Block user comment: N
Private report: N
New Comment:
If I change code in EntityQueryTest:141 from
list($field_name, $langcode, $values) = $units[$key];
$entity->getTranslation($langcode)->{$field_name}[] = $values;
to
list($field_name, $langcode, $values) = $units[$key];
$entity->getTranslation($units[$key][1])->{$units[$key][0]}[] = $units[$key][2];
It works fine. I've tried to produce a snippet that just does the list() and cause the error
but I've not been successful yet.
Previous Comments:
------------------------------------------------------------------------
[2018-09-26 11:55:30] alex dot a dot pott at gmail dot com
Description:
------------
When running a Drupal test on PHP 7.3 built from PHP-7.3 branch (ie.PHP 7.3.0-dev (cli) (built: Sep
26 2018 11:27:28) ( NTS )) it fails when opcache.enable_cli is 1 and it does not when it is 0.
I've tried to isolate the problem in a smaller script with no Drupal but I've not managed
yet.
The script below fails when the opcache settings are:
opcache.enable=1
opcache.enable_cli=1
But passes when they are
opcache.enable=1
opcache.enable_cli=0
Test script:
---------------
git clone --depth 1 --branch 8.7.x https://git.drupal.org/project/drupal.git
cd drupal
composer install
composer run-script drupal-phpunit-upgrade
SIMPLETEST_DB=sqlite://localhost//tmp/drupal.sqlite ./vendor/bin/phpunit -v -c ./core
core/tests/Drupal/KernelTests/Core/Entity/EntityQueryTest.php
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=76937&edit=1