Bug #81046 [Ver->Ana]: constant overwrite class method
| From: | nikic@php.net | Date: | Mon, 17 May 2021 13:09:41 +0000 |
| Subject: | Bug #81046 [Ver->Ana]: constant overwrite class method | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-233866@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: nikic@php.net
Reported by: felix at felix-kolbe dot de
Summary: constant overwrite class method
-Status: Verified
+Status: Analyzed
Type: Bug
Package: opcache
Operating System: Linux
PHP Version: 8.0.6
Block user comment: N
Private report: N
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[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
------------------------------------------------------------------------
[2021-05-17 11:56:57] cmb@php.net
I cannot reproduce[1]. Is there some "special" extension
involved?
[1] <https://3v4l.org/JuaDl>
------------------------------------------------------------------------
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