summaryrefslogtreecommitdiff
path: root/src/snuffleupagus.c
diff options
context:
space:
mode:
authorBen Fuhrmannek2021-09-15 20:26:02 +0200
committerBen Fuhrmannek2021-09-15 20:26:02 +0200
commit31d6a3cddd18cef447698ba2beaa7b5d9ab9dd94 (patch)
tree015c69027703d17061d429375de84a86cc51186a /src/snuffleupagus.c
parent8e42064026906f0f25caca237e4624b5b3c5087e (diff)
implemented execution depth limit
Diffstat (limited to 'src/snuffleupagus.c')
-rw-r--r--src/snuffleupagus.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/snuffleupagus.c b/src/snuffleupagus.c
index dab5dca..d2f81ff 100644
--- a/src/snuffleupagus.c
+++ b/src/snuffleupagus.c
@@ -251,6 +251,8 @@ static PHP_GSHUTDOWN_FUNCTION(snuffleupagus) {
251} 251}
252 252
253PHP_RINIT_FUNCTION(snuffleupagus) { 253PHP_RINIT_FUNCTION(snuffleupagus) {
254 SNUFFLEUPAGUS_G(execution_depth) = 0;
255
254 const sp_config_wrapper *const config_wrapper = 256 const sp_config_wrapper *const config_wrapper =
255 SNUFFLEUPAGUS_G(config).config_wrapper; 257 SNUFFLEUPAGUS_G(config).config_wrapper;
256#if defined(COMPILE_DL_SNUFFLEUPAGUS) && defined(ZTS) 258#if defined(COMPILE_DL_SNUFFLEUPAGUS) && defined(ZTS)