Bug #81046 [Ana->Csd]: Literal compaction merges non-equal related literals
| From: | git@php.net | Date: | Mon, 17 May 2021 13:47:28 +0000 |
| Subject: | Bug #81046 [Ana->Csd]: Literal compaction merges non-equal related literals | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-233868@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=81046&edit=1
ID: 81046
Updated by: git@php.net
Reported by: felix at felix-kolbe dot de
Summary: Literal compaction merges non-equal related literals
-Status: Analyzed
+Status: Closed
Type: Bug
Package: opcache
Operating System: Linux
PHP Version: 8.0.6
Assigned To: nikic
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of nikic
Revision: https://github.com/php/php-src/commit/c446d68f7c9de6da8dc614ca4e065d81130d3956
Log: Fixed bug #81046
Previous Comments:
------------------------------------------------------------------------
[2021-05-17 13:09:41] nikic@php.net
This is a bug in literal compaction. We merge a literal fuN/fuN for the constant with a literal
fuN/fun for the method. It looks like the code currently assumes that literals with the same base
literal and the same number of related literals must be the same, which is not the case here.
I'm surprised this hasn't come up earlier, presumably it does hold for all the other
literals.
------------------------------------------------------------------------
[2021-05-17 12:34:18] felix at felix-kolbe dot de
OK, switching off OPCache prevents the error.
------------------------------------------------------------------------
[2021-05-17 12:25:02] cmb@php.net
Thanks for the further information. This might be an OPcache
issue.
------------------------------------------------------------------------
[2021-05-17 12:23:25] felix at felix-kolbe dot de
as eval its work also but as script in Apache Environment(CGI) its produce the error as described
above
------------------------------------------------------------------------
[2021-05-17 12:15:02] felix at felix-kolbe dot de
OK on bash its work, But not in Apache
https://www.file-upload.net/download-14586850/PHP8.0.5-phpinfo.pdf.html
php -m
[PHP Modules]
Core
ctype
curl
date
dom
filter
gd
gmp
hash
iconv
json
libxml
mbstring
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
Reflection
session
SimpleXML
sockets
SPL
sqlite3
standard
tokenizer
xml
xmlreader
xmlwriter
Zend OPcache
zip
zlib
[Zend Modules]
Zend OPcache
------------------------------------------------------------------------
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=81046
--
Edit this bug report at https://bugs.php.net/bug.php?id=81046&edit=1