Bug #76711 [Opn->Ver]: OPcache enabled triggers false-positive "Illegal string offset"

From: Date: Mon, 06 Aug 2018 14:11:13 +0000
Subject: Bug #76711 [Opn->Ver]: OPcache enabled triggers false-positive "Illegal string offset"
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-216637@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=76711&edit=1 ID: 76711 Updated by: jpauli@php.net Reported by: nicolas dot grekas+php at gmail dot com Summary: OPcache enabled triggers false-positive "Illegal string offset" -Status: Open +Status: Verified Type: Bug Package: opcache PHP Version: 7.3Git-2018-08-06 (Git) Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [2018-08-06 14:08:38] nicolas dot grekas+php at gmail dot com Description: ------------ when running the Symfony test suite on PHP 7.3 with opcache.enable_cli=1, some tests fail with "Illegal string offset '...'" errors, which make no sense: Example build is: https://travis-ci.org/nicolas-grekas/symfony/builds/411802579#L2508 The reported line reads as such: > if (!$uri || '#' == $uri[0] || '?' == $uri[0]) { See https://github.com/symfony/symfony/blob/master/src/Symfony/Component/BrowserKit/Client.php#L668 It looks like there is a leak from L649 to L668: https://github.com/symfony/symfony/blob/master/src/Symfony/Component/BrowserKit/Client.php#L649 Test script: --------------- No better reproducer sorry: git clone https://github.com/symfony/symfony cd symfony composer install ./phpunit install php -dopcache.enable_cli=1 ./phpunit src/Symfony/Component/BrowserKit ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=76711&edit=1

« previous php.bugs (#216637) next »