Bug #79040 [Opn]: Warning Opcode handlers are unusable due to ASLR (fall-back to file cache)
| From: | requinix@php.net | Date: | Fri, 27 Dec 2019 21:42:29 +0000 |
| Subject: | Bug #79040 [Opn]: Warning Opcode handlers are unusable due to ASLR (fall-back to file cache) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-224568@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=79040&edit=1
ID: 79040
Updated by: requinix@php.net
Reported by: ASchmidt at Anamera dot net
Summary: Warning Opcode handlers are unusable due to ASLR
(fall-back to file cache)
Status: Open
Type: Bug
Package: opcache
Operating System: Win x64 IIS
PHP Version: 7.3.13
Block user comment: N
Private report: N
New Comment:
Ah. What you're seeing is the result of a fix for 7.4.0 that was backported to 7.3.13:
https://www.php.net/ChangeLog-7.php#7.3.13
> Fixed potential ASLR related invalid opline handler issues
Previous Comments:
------------------------------------------------------------------------
[2019-12-27 21:29:19] ASchmidt at Anamera dot net
I don't understand - there was NO problem with 7.3.12 and prior versions - no warning, and the
OpCache GUI never complained about memory stats not existing etc.?
------------------------------------------------------------------------
[2019-12-27 21:24:45] requinix@php.net
Right.
What are you asking for here? To disable the warning on Windows because it'll never work
anyways? Unless ASLR is disabled, but people shouldn't do that.
------------------------------------------------------------------------
[2019-12-27 20:53:17] ASchmidt at Anamera dot net
>> And what if you set file_cache_only=1? <<
As expected, if memory caching is disabled from the onset, then there are no error messages about it
being disabled dynamically due to ASLR !?
------------------------------------------------------------------------
[2019-12-27 19:54:12] requinix@php.net
And what if you set file_cache_only=1?
------------------------------------------------------------------------
[2019-12-27 19:17:42] ASchmidt at Anamera dot net
Description:
------------
Prior to upgrading from 7.3.12 to 7.3.13, OpCache had been functioning (incl. the previous 7.3.x
versions).
After installing 7.3.13 (even after reboot), the following messages are now logged:
"Warning Opcode handlers are unusable due to ASLR (fall-back to file cache)"
PHPinfo reports:
Zend OPcache
Opcode Caching = Up and Running
Optimization = Enabled
SHM Cache = Disabled
File Cache = Enabled
Startup = OK
opcache.file_cache = C:\Windows\Temp\PHP\OpCache
opcache.file_cache_fallback = 1
opcache.file_cache_only = 0
opcache_get_status() reports:
array (size=3)
'opcache_enabled' => false
'file_cache' => 'C:\Windows\Temp\PHP\OpCache'
'file_cache_only' => true
php.ini contains:
[opcache]
opcache.enable=1
opcache.enable_cli=1
opcache.memory_consumption=256
opcache.interned_strings_buffer=16
opcache.max_accelerated_files=3907
opcache.revalidate_freq=30
opcache.enable_file_override=1
opcache.error_log = "C:\Logfiles\PHP\x64_OPcache.log"
opcache.log_verbosity_level=2
opcache.file_cache=C:\Windows\Temp\PHP\OpCache
opcache.file_update_protection=10
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=79040&edit=1