From: Zeev Suraski Date: Wed, 3 Jan 2001 22:45:11 +0000 (+0000) Subject: Fix last couple of problematic execution paths that could corrupt the INI values X-Git-Tag: php-4.0.5RC1~744 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=43a7643453bf9ef0b32f4505781a45b7b393bf71;p=php Fix last couple of problematic execution paths that could corrupt the INI values --- diff --git a/sapi/apache/mod_php4.c b/sapi/apache/mod_php4.c index 7d9fc511a7..eef777848a 100644 --- a/sapi/apache/mod_php4.c +++ b/sapi/apache/mod_php4.c @@ -475,13 +475,20 @@ int send_php(request_rec *r, int display_source_mode, char *filename) /* Apache 1.2 has a more complex mechanism for reading POST data */ #if MODULE_MAGIC_NUMBER > 19961007 - if ((retval = setup_client_block(r, REQUEST_CHUNKED_ERROR))) + if ((retval = setup_client_block(r, REQUEST_CHUNKED_ERROR))) { + if (setjmp(EG(bailout))==0) { + zend_ini_deactivate(ELS_C); + } return retval; + } #endif if (AP(last_modified)) { #if MODULE_MAGIC_NUMBER < 19970912 if ((retval = set_last_modified(r, r->finfo.st_mtime))) { + if (setjmp(EG(bailout))==0) { + zend_ini_deactivate(ELS_C); + } return retval; } #else