summaryrefslogtreecommitdiff
path: root/src/tests/encrypt_cookies_no_env.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/encrypt_cookies_no_env.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/encrypt_cookies_no_env.phpt')
-rw-r--r--src/tests/encrypt_cookies_no_env.phpt3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tests/encrypt_cookies_no_env.phpt b/src/tests/encrypt_cookies_no_env.phpt
index c3aeaef..d9d9138 100644
--- a/src/tests/encrypt_cookies_no_env.phpt
+++ b/src/tests/encrypt_cookies_no_env.phpt
@@ -16,5 +16,6 @@ EOF;
16--FILE-- 16--FILE--
17<?php echo "1"; ?> 17<?php echo "1"; ?>
18--EXPECT-- 18--EXPECT--
191 19Fatal error: [snuffleupagus][config] Invalid configuration file in Unknown on line 0
20
20Fatal error: [snuffleupagus][config] You're trying to use the cookie encryption featureon line 2 without having set the `.cookie_env_var` option in`sp.global`: please set it first in Unknown on line 0 21Fatal error: [snuffleupagus][config] You're trying to use the cookie encryption featureon line 2 without having set the `.cookie_env_var` option in`sp.global`: please set it first in Unknown on line 0