diff options
-rw-r--r-- | sapi/apache/mod_php5.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sapi/apache/mod_php5.c b/sapi/apache/mod_php5.c index 481178195f..408ad2ed2e 100644 --- a/sapi/apache/mod_php5.c +++ b/sapi/apache/mod_php5.c @@ -837,6 +837,9 @@ static int php_xbithack_handler(request_rec * r) } if(!AP(xbithack)) { r->allowed |= (1 << METHODS) - 1; + zend_try { + zend_ini_deactivate(TSRMLS_C); + } zend_end_try(); return DECLINED; } return send_parsed_php(r); |