diff options
| author | xXx-caillou-xXx | 2018-08-30 15:02:22 +0200 |
|---|---|---|
| committer | jvoisin | 2018-08-30 13:02:22 +0000 |
| commit | b3f67a16094168cc334f5da93a86f09476e01601 (patch) | |
| tree | de533b00c850ba1b64173a1d777f366a12f098df /src/tests/upload_validation.phpt | |
| parent | f61a4772bfc33e08e7b06250e2f0f640bcae875f (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/upload_validation.phpt')
| -rw-r--r-- | src/tests/upload_validation.phpt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tests/upload_validation.phpt b/src/tests/upload_validation.phpt index bdcbc60..1daebb6 100644 --- a/src/tests/upload_validation.phpt +++ b/src/tests/upload_validation.phpt | |||
| @@ -13,5 +13,6 @@ Content-Disposition: form-data; name="test"; filename="test.php" | |||
| 13 | echo 1; | 13 | echo 1; |
| 14 | ?> | 14 | ?> |
| 15 | --EXPECTF-- | 15 | --EXPECTF-- |
| 16 | 1 | 16 | Fatal error: [snuffleupagus][config] Invalid configuration file in Unknown on line 0 |
| 17 | Fatal error: [snuffleupagus][config] A rule can't be enabled and disabled on line 1 in Unknown on line 0 \ No newline at end of file | 17 | |
| 18 | Fatal error: [snuffleupagus][config] A rule can't be enabled and disabled on line 1 in Unknown on line 0 | ||
