From 0a74da385dd1cf25cf7870fdc82cbe1c7256fab3 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Tue, 19 May 2020 15:01:18 +0200 Subject: Add support for replaying warnings in opcache If opcache.record_warnings is enabled, opcache will record compilation warnings and replay them when the file is included again. The primary use case I have in mind for this is automated testing of the opcache file cache. This resolves bug #76535. --- php.ini-production | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'php.ini-production') diff --git a/php.ini-production b/php.ini-production index fd9cffa639..761b0c2107 100644 --- a/php.ini-production +++ b/php.ini-production @@ -1778,6 +1778,11 @@ ldap.max_links = -1 ; size of the optimized code. ;opcache.save_comments=1 +; If enabled, compilation warnings (including notices and deprecations) will +; be recorded and replayed each time a file is included. Otherwise, compilation +; warnings will only be emitted when the file is first cached. +;opcache.record_warnings=0 + ; Allow file existence override (file_exists, etc.) performance feature. ;opcache.enable_file_override=0 -- cgit v1.2.1