From a61c2d667c93eb13c0677328194cffbd6847618d Mon Sep 17 00:00:00 2001 From: Rasmus Lerdorf Date: Wed, 28 Jan 2004 17:59:07 +0000 Subject: [PATCH] Fix applies to apache_hooks sapi as well. See bug #25753 for details. --- sapi/apache_hooks/mod_php5.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sapi/apache_hooks/mod_php5.c b/sapi/apache_hooks/mod_php5.c index 8551ad0dd8f..b15f3604752 100644 --- a/sapi/apache_hooks/mod_php5.c +++ b/sapi/apache_hooks/mod_php5.c @@ -1175,6 +1175,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);