summaryrefslogtreecommitdiff
path: root/src/snuffleupagus.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/snuffleupagus.c')
-rw-r--r--src/snuffleupagus.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/snuffleupagus.c b/src/snuffleupagus.c
index c3fc686..08b2083 100644
--- a/src/snuffleupagus.c
+++ b/src/snuffleupagus.c
@@ -72,6 +72,7 @@ PHP_GINIT_FUNCTION(snuffleupagus) {
72 72
73 SP_INIT(snuffleupagus_globals->config.config_unserialize); 73 SP_INIT(snuffleupagus_globals->config.config_unserialize);
74 SP_INIT(snuffleupagus_globals->config.config_random); 74 SP_INIT(snuffleupagus_globals->config.config_random);
75 SP_INIT(snuffleupagus_globals->config.config_sloppy);
75 SP_INIT(snuffleupagus_globals->config.config_readonly_exec); 76 SP_INIT(snuffleupagus_globals->config.config_readonly_exec);
76 SP_INIT(snuffleupagus_globals->config.config_global_strict); 77 SP_INIT(snuffleupagus_globals->config.config_global_strict);
77 SP_INIT(snuffleupagus_globals->config.config_auto_cookie_secure); 78 SP_INIT(snuffleupagus_globals->config.config_auto_cookie_secure);
@@ -212,6 +213,10 @@ static PHP_INI_MH(OnUpdateConfiguration) {
212 213
213 SNUFFLEUPAGUS_G(is_config_valid) = true; 214 SNUFFLEUPAGUS_G(is_config_valid) = true;
214 215
216 if ((SNUFFLEUPAGUS_G(config).config_sloppy->enable)) {
217 hook_sloppy();
218 }
219
215 if (SNUFFLEUPAGUS_G(config).config_random->enable) { 220 if (SNUFFLEUPAGUS_G(config).config_random->enable) {
216 hook_rand(); 221 hook_rand();
217 } 222 }