diff options
| author | Ben Fuhrmannek | 2021-09-15 20:26:02 +0200 |
|---|---|---|
| committer | Ben Fuhrmannek | 2021-09-15 20:26:02 +0200 |
| commit | 31d6a3cddd18cef447698ba2beaa7b5d9ab9dd94 (patch) | |
| tree | 015c69027703d17061d429375de84a86cc51186a /src/snuffleupagus.c | |
| parent | 8e42064026906f0f25caca237e4624b5b3c5087e (diff) | |
implemented execution depth limit
Diffstat (limited to 'src/snuffleupagus.c')
| -rw-r--r-- | src/snuffleupagus.c | 2 |
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 | ||
| 253 | PHP_RINIT_FUNCTION(snuffleupagus) { | 253 | PHP_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) |
