summaryrefslogtreecommitdiff
path: root/php.ini-production
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2020-05-19 15:01:18 +0200
committerNikita Popov <nikita.ppv@gmail.com>2020-05-20 11:20:21 +0200
commit0a74da385dd1cf25cf7870fdc82cbe1c7256fab3 (patch)
tree8c6efa7e8435c45a24d8bd3df99690679b557061 /php.ini-production
parent1b1d313275c132dcfe03314933e4cdb996cea543 (diff)
downloadphp-git-0a74da385dd1cf25cf7870fdc82cbe1c7256fab3.tar.gz
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.
Diffstat (limited to 'php.ini-production')
-rw-r--r--php.ini-production5
1 files changed, 5 insertions, 0 deletions
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