|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2019-05-15 11:15 UTC] nikic@php.net
-Status: Open
+Status: Verified
[2019-05-15 11:15 UTC] nikic@php.net
[2019-05-15 11:36 UTC] nikic@php.net
-Assigned To:
+Assigned To: nikic
[2019-05-15 12:32 UTC] nikic@php.net
-Summary: Fatal error when Opcache enabled on PHP 7.3.5 under
Linux
+Summary: Incorrect evaluation of expressions involving
partials array in SCCP
[2019-05-15 12:37 UTC] nikic@php.net
[2019-05-15 12:37 UTC] nikic@php.net
-Status: Verified
+Status: Closed
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 04:00:01 2025 UTC |
Description: ------------ PHP 7.3.5 throws a "Fatal error: Uncaught Error: Unsupported operand types ..." when opcache is enabled in php.ini on Ubuntu Linux 16.04, 18.04, 19.04. Notes: - The error is only thrown on a first http request after server started or restarted (the following requests work as expected). - The error is thrown on Apache web server as well as on a PHP built-in web server. - The error is not present on Windows. Workaround: Set opcache.optimization_level=0x7FFFBFDF in php.ini (instead of the default value 0x7FFFBFFF). Test script: --------------- index.php: <?php require_once 'simple.php'; ?> simple.php: <?php $x = 1; function f() { global $x; $a = ['b' => [$x], 'c' => [$x]]; $d = $a['b'] + $a['c']; } Expected result: ---------------- Empty output, no PHP errors. Actual result: -------------- Fatal error: Uncaught Error: Unsupported operand types in /var/www/html/index.php:1 Stack trace: #0 {main} thrown in /var/www/html/index.php on line 1