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_no_exec.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_no_exec.phpt')
| -rw-r--r-- | src/tests/upload_validation_no_exec.phpt | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/src/tests/upload_validation_no_exec.phpt b/src/tests/upload_validation_no_exec.phpt index ca52017..a6cde10 100644 --- a/src/tests/upload_validation_no_exec.phpt +++ b/src/tests/upload_validation_no_exec.phpt | |||
| @@ -14,20 +14,6 @@ Content-Disposition: form-data; name="test"; filename="test.php" | |||
| 14 | var_dump($_FILES); | 14 | var_dump($_FILES); |
| 15 | ?> | 15 | ?> |
| 16 | --EXPECTF-- | 16 | --EXPECTF-- |
| 17 | array(1) { | 17 | Fatal error: [snuffleupagus][config] Invalid configuration file in Unknown on line 0 |
| 18 | ["test"]=> | ||
| 19 | array(5) { | ||
| 20 | ["name"]=> | ||
| 21 | string(8) "test.php" | ||
| 22 | ["type"]=> | ||
| 23 | string(0) "" | ||
| 24 | ["tmp_name"]=> | ||
| 25 | string(0) "" | ||
| 26 | ["error"]=> | ||
| 27 | int(3) | ||
| 28 | ["size"]=> | ||
| 29 | int(0) | ||
| 30 | } | ||
| 31 | } | ||
| 32 | 18 | ||
| 33 | Fatal error: [snuffleupagus][config] The `script` (tests/data/upload_no_exec.sh) isn't executable on line 1 in Unknown on line 0 | 19 | Fatal error: [snuffleupagus][config] The `script` (tests/data/upload_no_exec.sh) isn't executable on line 1 in Unknown on line 0 |
