summaryrefslogtreecommitdiff
path: root/src/snuffleupagus.c
diff options
context:
space:
mode:
authorjvoisin2018-07-09 07:37:58 +0000
committerxXx-caillou-xXx2018-07-09 09:37:58 +0200
commit5da3a92492bf169e62367d954cfa7432bee51fed (patch)
tree2e094ed1a5a8400269c48c520539b7dac28ced27 /src/snuffleupagus.c
parentca3be84076521c4bb053511775c94c0b195aeac8 (diff)
Trying to fix sloppy comparison (#186)
* Trying to fix sloppy comparison https://github.com/nbs-system/snuffleupagus/issues/10 by modifying php's opcode
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 }