summaryrefslogtreecommitdiff
path: root/php.ini-development
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-development
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-development')
-rw-r--r--php.ini-development5
1 files changed, 5 insertions, 0 deletions
diff --git a/php.ini-development b/php.ini-development
index 5ef32525b1..1fcd0e45a2 100644
--- a/php.ini-development
+++ b/php.ini-development
@@ -1776,6 +1776,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