From b3f67a16094168cc334f5da93a86f09476e01601 Mon Sep 17 00:00:00 2001 From: xXx-caillou-xXx Date: Thu, 30 Aug 2018 15:02:22 +0200 Subject: 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.--- src/tests/inexistent_conf_file.phpt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/tests/inexistent_conf_file.phpt') diff --git a/src/tests/inexistent_conf_file.phpt b/src/tests/inexistent_conf_file.phpt index ebe2aaa..a68ca9e 100644 --- a/src/tests/inexistent_conf_file.phpt +++ b/src/tests/inexistent_conf_file.phpt @@ -9,4 +9,7 @@ sp.configuration_file={PWD}/config/unexistent_configuration_file.ini --EXPECTF-- PHP Fatal error: [snuffleupagus][config] Could not open configuration file %a/config/unexistent_configuration_file.ini : No such file or directory in Unknown on line 0 -Fatal error: [snuffleupagus][config] Could not open configuration file %a/config/unexistent_configuration_file.ini : No such file or directory in Unknown on line 0 \ No newline at end of file +Fatal error: [snuffleupagus][config] Could not open configuration file %a/config/unexistent_configuration_file.ini : No such file or directory in Unknown on line 0 + +Fatal error: [snuffleupagus][config] Invalid configuration file in Unknown on line 0 +Could not startup. \ No newline at end of file -- cgit v1.3