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/php_snuffleupagus.h | |
| 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/php_snuffleupagus.h')
| -rw-r--r-- | src/php_snuffleupagus.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/php_snuffleupagus.h b/src/php_snuffleupagus.h index 41d9b77..50957e5 100644 --- a/src/php_snuffleupagus.h +++ b/src/php_snuffleupagus.h | |||
| @@ -65,6 +65,7 @@ ZEND_BEGIN_MODULE_GLOBALS(snuffleupagus) | |||
| 65 | size_t in_eval; | 65 | size_t in_eval; |
| 66 | sp_config config; | 66 | sp_config config; |
| 67 | bool is_config_valid; | 67 | bool is_config_valid; |
| 68 | bool allow_broken_configuration; | ||
| 68 | HashTable *disabled_functions_hook; | 69 | HashTable *disabled_functions_hook; |
| 69 | HashTable *sp_internal_functions_hook; | 70 | HashTable *sp_internal_functions_hook; |
| 70 | HashTable *sp_eval_blacklist_functions_hook; | 71 | HashTable *sp_eval_blacklist_functions_hook; |
