summaryrefslogtreecommitdiff
path: root/src/tests/broken_conf_config_regexp.phpt
diff options
context:
space:
mode:
authorxXx-caillou-xXx2018-08-30 15:02:22 +0200
committerjvoisin2018-08-30 13:02:22 +0000
commitb3f67a16094168cc334f5da93a86f09476e01601 (patch)
treede533b00c850ba1b64173a1d777f366a12f098df /src/tests/broken_conf_config_regexp.phpt
parentf61a4772bfc33e08e7b06250e2f0f640bcae875f (diff)
Change how we're handling invalid configurations
Since our configuration format is a bit more complex than php's one, we have a `sp.allow_broken_configuration` parameter (`false` by default), that you can set to `true` if you want PHP to carry on if your Snuffleupagus' configuration contains syntax errors. You'll still get a big scary message in your logs of course. We do **not** recommend to use it of course, but sometimes it might be useful to be able to "debug in production" without breaking your website.
Diffstat (limited to 'src/tests/broken_conf_config_regexp.phpt')
-rw-r--r--src/tests/broken_conf_config_regexp.phpt3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tests/broken_conf_config_regexp.phpt b/src/tests/broken_conf_config_regexp.phpt
index c4e788e..2977e3a 100644
--- a/src/tests/broken_conf_config_regexp.phpt
+++ b/src/tests/broken_conf_config_regexp.phpt
@@ -12,3 +12,6 @@ PHP Fatal error: [snuffleupagus][config] '.filename_r()' is expecting a valid r
12Fatal error: [snuffleupagus][config] Failed to compile '*.': %s on line 1. in Unknown on line 0 12Fatal error: [snuffleupagus][config] Failed to compile '*.': %s on line 1. in Unknown on line 0
13 13
14Fatal error: [snuffleupagus][config] '.filename_r()' is expecting a valid regexp, and not '"*."' on line 1 in Unknown on line 0 14Fatal error: [snuffleupagus][config] '.filename_r()' is expecting a valid regexp, and not '"*."' on line 1 in Unknown on line 0
15
16Fatal error: [snuffleupagus][config] Invalid configuration file in Unknown on line 0
17Could not startup.